* [PATCH] dt-bindings: sound: qcom,sm8250: document widgets
@ 2026-12-02 0:31 Qianhui Xu
2026-12-02 8:50 ` Srinivas Kandagatla
2026-12-02 10:28 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Qianhui Xu @ 2026-12-02 0:31 UTC (permalink / raw)
To: srini, broonie, lgirdwood
Cc: robh, krzk+dt, conor+dt, linux-sound, linux-arm-msm, devicetree,
linux-kernel
The Qualcomm sound card common parser (sound/soc/qcom/common.c:198)
reads the "widgets" property via snd_soc_of_parse_audio_simple_widgets(),
and qcom,apq8016-sbc-sndcard.yaml already documents the same property
with the same wording. The qcom,sm8250 binding (which also covers
sc7280/sm8450/sm8650/sm8750 sndcards) never gained it, so sound cards
that declare widgets fail dtbs_check with "'widgets' does not match any
of the regexes: '.*-dai-link$', '^pinctrl-[0-9]+$'".
Document the property with the non-unique string array type, mirroring
the qcom,apq8016-sbc-sndcard.yaml declaration. No DT or driver change.
The patch has no dependency on any other change, so it is sent alone.
Found while auditing a qcom,sm8750-sndcard board.
Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
---
*** AI-assistance disclosure ***
This patch was prepared with the help of an LLM coding assistant. The
author reviewed every line, checked every quoted claim against the tree,
and ran the gates recorded in the send report; the design decisions and
any errors are the author's.
diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
index 1536fcd96..1745a8844 100644
--- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
+++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
@@ -73,6 +73,10 @@ properties:
$ref: /schemas/types.yaml#/definitions/string
description: User visible long sound card name
+ widgets:
+ description: User specified audio sound widgets.
+ $ref: /schemas/types.yaml#/definitions/non-unique-string-array
+
patternProperties:
".*-dai-link$":
description:
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: sound: qcom,sm8250: document widgets
2026-12-02 0:31 [PATCH] dt-bindings: sound: qcom,sm8250: document widgets Qianhui Xu
@ 2026-12-02 8:50 ` Srinivas Kandagatla
2026-12-02 10:28 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Srinivas Kandagatla @ 2026-12-02 8:50 UTC (permalink / raw)
To: Qianhui Xu, srini, broonie, lgirdwood
Cc: robh, krzk+dt, conor+dt, linux-sound, linux-arm-msm, devicetree,
linux-kernel
On 12/2/26 12:31 AM, Qianhui Xu wrote:
> The Qualcomm sound card common parser (sound/soc/qcom/common.c:198)
> reads the "widgets" property via snd_soc_of_parse_audio_simple_widgets(),
> and qcom,apq8016-sbc-sndcard.yaml already documents the same property
> with the same wording. The qcom,sm8250 binding (which also covers
> sc7280/sm8450/sm8650/sm8750 sndcards) never gained it, so sound cards
> that declare widgets fail dtbs_check with "'widgets' does not match any
> of the regexes: '.*-dai-link$', '^pinctrl-[0-9]+$'".
>
> Document the property with the non-unique string array type, mirroring
> the qcom,apq8016-sbc-sndcard.yaml declaration. No DT or driver change.
Thanks for the patch,
I guess you should have also audited the device trees aswell, because
none of SoCs that are part of this binding actually use such property.
NAK from my side on this bindings change, Unless there is usecase that
needs this property.
pl note that common.c is file that get used on all Qualcomm SoC's.
thanks,
Srini
> The patch has no dependency on any other change, so it is sent alone.
>
> Found while auditing a qcom,sm8750-sndcard board.
>
> Signed-off-by: Qianhui Xu <xiaqinghuan@mail.ustc.edu.cn>
> ---
> *** AI-assistance disclosure ***
> This patch was prepared with the help of an LLM coding assistant. The
> author reviewed every line, checked every quoted claim against the tree,
> and ran the gates recorded in the send report; the design decisions and
> any errors are the author's.
>
> diff --git a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> index 1536fcd96..1745a8844 100644
> --- a/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> +++ b/Documentation/devicetree/bindings/sound/qcom,sm8250.yaml
> @@ -73,6 +73,10 @@ properties:
> $ref: /schemas/types.yaml#/definitions/string
> description: User visible long sound card name
>
> + widgets:
> + description: User specified audio sound widgets.
> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array
> +
> patternProperties:
> ".*-dai-link$":
> description:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: sound: qcom,sm8250: document widgets
2026-12-02 0:31 [PATCH] dt-bindings: sound: qcom,sm8250: document widgets Qianhui Xu
2026-12-02 8:50 ` Srinivas Kandagatla
@ 2026-12-02 10:28 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2026-12-02 10:28 UTC (permalink / raw)
To: Qianhui Xu
Cc: srini, lgirdwood, robh, krzk+dt, conor+dt, linux-sound,
linux-arm-msm, devicetree, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 678 bytes --]
On Wed, Dec 02, 2026 at 08:31:54AM +0800, Qianhui Xu wrote:
> The Qualcomm sound card common parser (sound/soc/qcom/common.c:198)
> reads the "widgets" property via snd_soc_of_parse_audio_simple_widgets(),
> and qcom,apq8016-sbc-sndcard.yaml already documents the same property
> with the same wording. The qcom,sm8250 binding (which also covers
Please submit patches using subject lines reflecting the style for the
subsystem, this makes it easier for people to identify relevant patches.
Look at what existing commits in the area you're changing are doing and
make sure your subject lines visually resemble what they're doing.
There's no need to resubmit to fix this alone.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-12-02 10:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-02 0:31 [PATCH] dt-bindings: sound: qcom,sm8250: document widgets Qianhui Xu
2026-12-02 8:50 ` Srinivas Kandagatla
2026-12-02 10:28 ` 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®