Re: [PATCH] ASoC: rt766: fix HID dependency for SND_SOC_SDCA_HID

From: Andy Shevchenko

Date: Wed Sep 16 2026 - 13:02:07 EST


On Wed, Sep 16, 2026 at 04:10:08PM +0100, Mark Brown wrote:
> On Tue, Sep 15, 2026 at 11:16:34PM +0200, Arnd Bergmann wrote:

...

> > 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.

(Based just on this comment without looking into details) there is also
'depends on FOO if BAR' syntax that might be useful.


--
With Best Regards,
Andy Shevchenko