* [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
* [PATCH 2/2] ASoC: codecs: wcd9335: Drop number of DAIs from the header
2024-12-05 8:40 [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Krzysztof Kozlowski
@ 2024-12-05 8:40 ` Krzysztof Kozlowski
2024-12-05 11:27 ` [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Mark Brown
` (2 subsequent siblings)
3 siblings, 0 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 constant, because it
could grow, e.g. when we implement missing features.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Cc: Dzmitry Sankouski <dsankouski@gmail.com>
---
include/dt-bindings/sound/qcom,wcd9335.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/include/dt-bindings/sound/qcom,wcd9335.h b/include/dt-bindings/sound/qcom,wcd9335.h
index f5e9f1db091e..4fc68aeb9e04 100644
--- a/include/dt-bindings/sound/qcom,wcd9335.h
+++ b/include/dt-bindings/sound/qcom,wcd9335.h
@@ -10,6 +10,5 @@
#define AIF3_PB 4
#define AIF3_CAP 5
#define AIF4_PB 6
-#define NUM_CODEC_DAIS 7
#endif
--
2.43.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
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 ` Mark Brown
2024-12-05 11:33 ` Krzysztof Kozlowski
2024-12-05 12:33 ` Mark Brown
2024-12-10 13:00 ` Mark Brown
3 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2024-12-05 11:27 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel,
Dzmitry Sankouski
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
On Thu, Dec 05, 2024 at 09:40:20AM +0100, Krzysztof Kozlowski wrote:
> sound/soc/codecs/wcd9335.c | 2 ++
> 1 file changed, 2 insertions(+)
> +#define NUM_CODEC_DAIS (AIF4_PB + 1)
Several other Qualcomm CODECs appear to use this define?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
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
0 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-05 11:33 UTC (permalink / raw)
To: Mark Brown
Cc: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel,
Dzmitry Sankouski
On 05/12/2024 12:27, Mark Brown wrote:
> On Thu, Dec 05, 2024 at 09:40:20AM +0100, Krzysztof Kozlowski wrote:
>
>> sound/soc/codecs/wcd9335.c | 2 ++
>> 1 file changed, 2 insertions(+)
>
>> +#define NUM_CODEC_DAIS (AIF4_PB + 1)
>
> Several other Qualcomm CODECs appear to use this define?
Each wcd93xx driver has it in the driver, not in the binding. All have
different values. wcd9335 was the first case when this was added to the
binding and I think it was a mistake (including my mistake of not
noticing it during review).
I am not sure if I got your comment or question correctly. I hope above
answers, but in it does not, please provide some context so I will
understand the question.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
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 12:33 ` Mark Brown
2024-12-05 12:40 ` Krzysztof Kozlowski
2024-12-05 13:29 ` Dzmitry Sankouski
2024-12-10 13:00 ` Mark Brown
3 siblings, 2 replies; 11+ messages in thread
From: Mark Brown @ 2024-12-05 12:33 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel,
Dzmitry Sankouski
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
On Thu, Dec 05, 2024 at 09:40:20AM +0100, Krzysztof Kozlowski wrote:
> 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.
This breaks an allmodconfig build:
/build/stage/linux/sound/soc/codecs/wcd9335.c:162: error: "NUM_CODEC_DAIS" redef
ined [-Werror]
162 | #define NUM_CODEC_DAIS (AIF4_PB + 1)
|
In file included from /build/stage/linux/sound/soc/codecs/wcd9335.c:28:
/build/stage/linux/include/dt-bindings/sound/qcom,wcd9335.h:13: note: this is th
e location of the previous definition
13 | #define NUM_CODEC_DAIS 7
|
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
2024-12-05 12:33 ` Mark Brown
@ 2024-12-05 12:40 ` Krzysztof Kozlowski
2024-12-05 13:29 ` Dzmitry Sankouski
1 sibling, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-05 12:40 UTC (permalink / raw)
To: Mark Brown
Cc: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel,
Dzmitry Sankouski
On 05/12/2024 13:33, Mark Brown wrote:
> On Thu, Dec 05, 2024 at 09:40:20AM +0100, Krzysztof Kozlowski wrote:
>> 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.
>
> This breaks an allmodconfig build:
>
> /build/stage/linux/sound/soc/codecs/wcd9335.c:162: error: "NUM_CODEC_DAIS" redef
> ined [-Werror]
> 162 | #define NUM_CODEC_DAIS (AIF4_PB + 1)
> |
> In file included from /build/stage/linux/sound/soc/codecs/wcd9335.c:28:
> /build/stage/linux/include/dt-bindings/sound/qcom,wcd9335.h:13: note: this is th
> e location of the previous definition
> 13 | #define NUM_CODEC_DAIS 7
> |
Apologies, last minute change hoping 6+1 equals 7, but obviously it does
not.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
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
1 sibling, 1 reply; 11+ messages in thread
From: Dzmitry Sankouski @ 2024-12-05 13:29 UTC (permalink / raw)
To: Mark Brown
Cc: Krzysztof Kozlowski, Srinivas Kandagatla, Liam Girdwood,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, linux-sound, linux-arm-msm, devicetree,
linux-kernel
чт, 5 дек. 2024 г. в 15:33, Mark Brown <broonie@kernel.org>:
>
> On Thu, Dec 05, 2024 at 09:40:20AM +0100, Krzysztof Kozlowski wrote:
> > 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.
>
> This breaks an allmodconfig build:
>
> /build/stage/linux/sound/soc/codecs/wcd9335.c:162: error: "NUM_CODEC_DAIS" redef
> ined [-Werror]
> 162 | #define NUM_CODEC_DAIS (AIF4_PB + 1)
> |
> In file included from /build/stage/linux/sound/soc/codecs/wcd9335.c:28:
> /build/stage/linux/include/dt-bindings/sound/qcom,wcd9335.h:13: note: this is th
> e location of the previous definition
> 13 | #define NUM_CODEC_DAIS 7
> |
This is the 1st patch in series, and NUM_CODEC_DAIS redefine from bindings
is deleted in the 2nd one.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
2024-12-05 13:29 ` Dzmitry Sankouski
@ 2024-12-05 13:31 ` Mark Brown
2024-12-06 20:42 ` Dzmitry Sankouski
0 siblings, 1 reply; 11+ messages in thread
From: Mark Brown @ 2024-12-05 13:31 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Krzysztof Kozlowski, Srinivas Kandagatla, Liam Girdwood,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, linux-sound, linux-arm-msm, devicetree,
linux-kernel
[-- Attachment #1: Type: text/plain, Size: 223 bytes --]
On Thu, Dec 05, 2024 at 04:29:45PM +0300, Dzmitry Sankouski wrote:
> This is the 1st patch in series, and NUM_CODEC_DAIS redefine from bindings
> is deleted in the 2nd one.
I know, that still means this change is broken.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
2024-12-05 13:31 ` Mark Brown
@ 2024-12-06 20:42 ` Dzmitry Sankouski
2024-12-09 9:43 ` Krzysztof Kozlowski
0 siblings, 1 reply; 11+ messages in thread
From: Dzmitry Sankouski @ 2024-12-06 20:42 UTC (permalink / raw)
To: Mark Brown
Cc: Krzysztof Kozlowski, Srinivas Kandagatla, Liam Girdwood,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela,
Takashi Iwai, linux-sound, linux-arm-msm, devicetree,
linux-kernel
чт, 5 дек. 2024 г. в 16:31, Mark Brown <broonie@kernel.org>:
>
> On Thu, Dec 05, 2024 at 04:29:45PM +0300, Dzmitry Sankouski wrote:
>
> > This is the 1st patch in series, and NUM_CODEC_DAIS redefine from bindings
> > is deleted in the 2nd one.
>
> I know, that still means this change is broken.
How to avoid broken change, when moving constant from dt-binding to*.c
file, given we have constraint of separate patch for bindings?
--
Best regards,
Dzmitry
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
2024-12-06 20:42 ` Dzmitry Sankouski
@ 2024-12-09 9:43 ` Krzysztof Kozlowski
0 siblings, 0 replies; 11+ messages in thread
From: Krzysztof Kozlowski @ 2024-12-09 9:43 UTC (permalink / raw)
To: Dzmitry Sankouski
Cc: Mark Brown, Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel
On Fri, Dec 06, 2024 at 11:42:24PM +0300, Dzmitry Sankouski wrote:
> чт, 5 дек. 2024 г. в 16:31, Mark Brown <broonie@kernel.org>:
> >
> > On Thu, Dec 05, 2024 at 04:29:45PM +0300, Dzmitry Sankouski wrote:
> >
> > > This is the 1st patch in series, and NUM_CODEC_DAIS redefine from bindings
> > > is deleted in the 2nd one.
> >
> > I know, that still means this change is broken.
>
> How to avoid broken change, when moving constant from dt-binding to*.c
> file, given we have constraint of separate patch for bindings?
There is no problem here, I just screwed, because 6+1 != 7.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
2024-12-05 8:40 [PATCH 1/2] ASoC: codecs: wcd9335: Add define for number of DAIs Krzysztof Kozlowski
` (2 preceding siblings ...)
2024-12-05 12:33 ` Mark Brown
@ 2024-12-10 13:00 ` Mark Brown
3 siblings, 0 replies; 11+ messages in thread
From: Mark Brown @ 2024-12-10 13:00 UTC (permalink / raw)
To: Srinivas Kandagatla, Liam Girdwood, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Jaroslav Kysela, Takashi Iwai,
linux-sound, linux-arm-msm, devicetree, linux-kernel,
Krzysztof Kozlowski
Cc: Dzmitry Sankouski
On Thu, 05 Dec 2024 09:40:20 +0100, Krzysztof Kozlowski wrote:
> 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.
>
>
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: codecs: wcd9335: Add define for number of DAIs
commit: 76c29db042e4f0fdea75c76cd4ad5f36080cd1c9
[2/2] ASoC: codecs: wcd9335: Drop number of DAIs from the header
(no commit info)
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ 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®