[alsa-devel] [PATCH] ASoC: Make SND_SOC_STI_SAS depend on RESET_CONTROLLER
Takashi Iwai
tiwai at suse.de
Mon Aug 31 11:10:03 CEST 2015
On Mon, 31 Aug 2015 02:52:33 +0200,
Axel Lin wrote:
>
> (devm_)reset_control_get function is available only when RESET_CONTROLLER
> is set. Make SND_SOC_STI_SAS depend on RESET_CONTROLLER to fix build error
> if !RESET_CONTROLLER.
>
> Reported-by: Takashi Iwai <tiwai at suse.com>
> Signed-off-by: Axel Lin <axel.lin at ingics.com>
Thanks, this fixes, but it'd be better to have a proper dummy function
for devm_reset_control_get() with CONFIG_RESET_CONTROLLER=n, IMO.
Takashi
> ---
> sound/soc/codecs/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
> index 0c9733e..f8e0022 100644
> --- a/sound/soc/codecs/Kconfig
> +++ b/sound/soc/codecs/Kconfig
> @@ -106,7 +106,7 @@ config SND_SOC_ALL_CODECS
> select SND_SOC_STA350 if I2C
> select SND_SOC_STA529 if I2C
> select SND_SOC_STAC9766 if SND_SOC_AC97_BUS
> - select SND_SOC_STI_SAS
> + select SND_SOC_STI_SAS if RESET_CONTROLLER
> select SND_SOC_TAS2552 if I2C
> select SND_SOC_TAS5086 if I2C
> select SND_SOC_TAS571X if I2C
> @@ -634,6 +634,7 @@ config SND_SOC_STAC9766
>
> config SND_SOC_STI_SAS
> tristate "codec Audio support for STI SAS codec"
> + depends on RESET_CONTROLLER
>
> config SND_SOC_TAS2552
> tristate "Texas Instruments TAS2552 Mono Audio amplifier"
> --
> 1.9.1
>
>
>
>
More information about the Alsa-devel
mailing list