From: "Arnd Bergmann" <arnd@arndb.de>
To: "Mark Brown" <broonie@kernel.org>, "Arnd Bergmann" <arnd@kernel.org>
Cc: "Liam Girdwood" <lgirdwood@gmail.com>,
"Jaroslav Kysela" <perex@perex.cz>,
"Takashi Iwai" <tiwai@suse.com>,
"Charles Keepax" <ckeepax@opensource.cirrus.com>,
"Shuming Fan" <shumingf@realtek.com>,
"Richard Fitzgerald" <rf@opensource.cirrus.com>,
"Srinivas Kandagatla" <srinivas.kandagatla@oss.qualcomm.com>,
"Niranjan H Y" <niranjan.hy@ti.com>,
"Ajay Kumar Nandam" <ajay.nandam@oss.qualcomm.com>,
"Alexey Klimov" <alexey.klimov@linaro.org>,
"Julian Braha" <julianbraha@gmail.com>,
"Peng Fan" <peng.fan@nxp.com>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>,
linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ASoC: rt766: fix HID dependency for SND_SOC_SDCA_HID
Date: Wed, 16 Sep 2026 17:36:02 +0200 [thread overview]
Message-ID: <d09d7709-e537-472c-82d6-e532e955f137@app.fastmail.com> (raw)
In-Reply-To: <f9c9aef3-6e0b-4f7e-914e-35a82b5f962a@sirena.org.uk>
On Wed, Sep 16, 2026, at 17:10, Mark Brown wrote:
> On Tue, Sep 15, 2026 at 11:16:34PM +0200, Arnd Bergmann wrote:
>> From: Arnd Bergmann <arnd@arndb.de>
>
>> Selecting SND_SOC_SDCA_HID only works if HID is enabled:
>
>> --- a/sound/soc/codecs/Kconfig
>> +++ b/sound/soc/codecs/Kconfig
>> @@ -1992,6 +1992,7 @@ config SND_SOC_RT766_SDCA_SDW
>> tristate "Realtek RT766 SDCA Codec - SDW"
>> depends on SOUNDWIRE
>> depends on SND_SOC_SDCA
>> + depends on HID
>> select SND_SOC_SDCA_HID
>> select SND_SOC_SDCA_IRQ
>> select REGMAP_SOUNDWIRE
>
> Should that be HID=y || HID=SND_SOC_SDCA like for SND_SOC_SDCA_HID and
> SND_SOC_SDCA_CLASS? The dependencies on _CLASS should stop the
> problematic cases from actually occurring but I'm not sure if it stops
> the warning.
Yes. Just as I was trying to write up my presentation slides for next
week trying to explain how nobody ever gets this right, you have reminded
me that I can't do it either ;-)
How about this version?
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index 181ed1b8a6dc..f88381523ea3 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -1991,10 +1991,7 @@ config SND_SOC_RT715_SDCA_SDW
config SND_SOC_RT766_SDCA_SDW
tristate "Realtek RT766 SDCA Codec - SDW"
depends on SOUNDWIRE
- depends on SND_SOC_SDCA
- depends on HID
- select SND_SOC_SDCA_HID
- select SND_SOC_SDCA_IRQ
+ depends on SND_SOC_SDCA_CLASS
select REGMAP_SOUNDWIRE
select REGMAP_SOUNDWIRE_MBQ
I think this is much clearer than the original version or my
first patch, as it avoids the fragile 'select'. If you like this
one, I'll send a v2 after this passes some more randconfig testing,
or you can apply that directly.
Arnd
next prev parent reply other threads:[~2026-09-16 15:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-15 21:16 Arnd Bergmann
2026-09-16 15:10 ` Mark Brown
2026-09-16 15:29 ` Andy Shevchenko
2026-09-16 15:36 ` Arnd Bergmann [this message]
2026-09-16 15:54 ` Charles Keepax
2026-09-16 15:58 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d09d7709-e537-472c-82d6-e532e955f137@app.fastmail.com \
--to=arnd@arndb.de \
--cc=ajay.nandam@oss.qualcomm.com \
--cc=alexey.klimov@linaro.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=arnd@kernel.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.cirrus.com \
--cc=julianbraha@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=niranjan.hy@ti.com \
--cc=peng.fan@nxp.com \
--cc=perex@perex.cz \
--cc=rf@opensource.cirrus.com \
--cc=shumingf@realtek.com \
--cc=srinivas.kandagatla@oss.qualcomm.com \
--cc=tiwai@suse.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®