Re: [PATCH 1/2] regmap: soundwire: fix Kconfig select/depend issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the reviews

The mechanism should be

config CODEC_XYX_SDW
        depends on SOUNDWIRE
        select REGMAP_SOUNDWIRE

config REGMAP_SOUNDWIRE
        depends on SOUNDWIRE
        select SOUNDWIRE_BUS

To be noted, in general you can't do put both depends-on and select.
The select always wins.  So the depends-on in REGMAP_SOUNDWIRE is more
or less moot.


ok. To double-check, the example below would be legit, yes?

 config CODEC_XYX_SDW
	 tristate "XYZ SDW Codec"
         depends on SOUNDWIRE
         select REGMAP_SOUNDWIRE

 config REGMAP_SOUNDWIRE
         select SOUNDWIRE_BUS

it'd follow the typical pattern seen in sound/soc/codecs/Kconfig:

config SND_SOC_CS4265
	tristate "Cirrus Logic CS4265 CODEC"
	depends on I2C
	select REGMAP_I2C

Thanks
-Pierre
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux