mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
@ 2024-12-05  8:40 Krzysztof Kozlowski
  2024-12-05  8:40 ` [PATCH 2/2] ASoC: codecs: wcd9335: Drop number of DAIs from the header Krzysztof Kozlowski
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-05  8:40 UTC (permalink / raw)
  To: Srinivas Kandagatla, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
	linux-sound, linux-arm-msm, devicetree, linux-kernel
  Cc: Krzysztof Kozlowski, Dzmitry Sankouski

Number of DAIs in the codec is not really a binding, because it could
grow, e.g. when we implement missing features.  Add the define to the
driver, which will replace the one in the binding header.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Cc: Dzmitry Sankouski <dsankouski@gmail.com>
---
 sound/soc/codecs/wcd9335.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sound/soc/codecs/wcd9335.c b/sound/soc/codecs/wcd9335.c
index a2521e16c099..d2604da619f6 100644
--- a/sound/soc/codecs/wcd9335.c
+++ b/sound/soc/codecs/wcd9335.c
@@ -159,6 +159,8 @@
 	{"AMIC MUX" #id, "ADC5", "ADC5"},		\
 	{"AMIC MUX" #id, "ADC6", "ADC6"}
 
+#define NUM_CODEC_DAIS          (AIF4_PB + 1)
+
 enum {
 	WCD9335_RX0 = 0,
 	WCD9335_RX1,
-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2024-12-10 13:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-05  8:40 [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Krzysztof Kozlowski
2024-12-05  8:40 ` [PATCH 2/2] ASoC: codecs: wcd9335: Drop number of DAIs from the header Krzysztof Kozlowski
2024-12-05 11:27 ` [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Mark Brown
2024-12-05 11:33   ` Krzysztof Kozlowski
2024-12-05 12:33 ` Mark Brown
2024-12-05 12:40   ` Krzysztof Kozlowski
2024-12-05 13:29   ` Dzmitry Sankouski
2024-12-05 13:31     ` Mark Brown
2024-12-06 20:42       ` Dzmitry Sankouski
2024-12-09  9:43         ` Krzysztof Kozlowski
2024-12-10 13:00 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®