diff mbox

drm: bridge: dw-hdmi: add ASoC dependency

Message ID 20161125205411.1157522-1-arnd@arndb.de (mailing list archive)
State New, archived
Headers show

Commit Message

Arnd Bergmann Nov. 25, 2016, 8:53 p.m. UTC
The newly added sound driver depends on SND_SOC_HDMI_CODEC, which in
turn only makes sense when ASoC is enabled, as shown by this warning:

warning: (DRM_MSM && DRM_STI && DRM_MEDIATEK_HDMI && DRM_I2C_NXP_TDA998X && DRM_DW_HDMI_I2S_AUDIO) selects SND_SOC_HDMI_CODEC which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC)

Since the audio driver is probably useless without the audio subsystem,
adding a dependency here seems the right solution.

Fixes: 2761ba6c0925 ("drm: bridge: add DesignWare HDMI I2S audio support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/gpu/drm/bridge/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Kuninori Morimoto Nov. 28, 2016, 1:07 a.m. UTC | #1
Hi

> The newly added sound driver depends on SND_SOC_HDMI_CODEC, which in
> turn only makes sense when ASoC is enabled, as shown by this warning:
> 
> warning: (DRM_MSM && DRM_STI && DRM_MEDIATEK_HDMI && DRM_I2C_NXP_TDA998X && DRM_DW_HDMI_I2S_AUDIO) selects SND_SOC_HDMI_CODEC which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC)
> 
> Since the audio driver is probably useless without the audio subsystem,
> adding a dependency here seems the right solution.
> 
> Fixes: 2761ba6c0925 ("drm: bridge: add DesignWare HDMI I2S audio support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

>  drivers/gpu/drm/bridge/Kconfig | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig
> index 4980ecc55721..71db3e659be9 100644
> --- a/drivers/gpu/drm/bridge/Kconfig
> +++ b/drivers/gpu/drm/bridge/Kconfig
> @@ -41,6 +41,7 @@ config DRM_DW_HDMI_AHB_AUDIO
>  
>  config DRM_DW_HDMI_I2S_AUDIO
>  	tristate "Synopsis Designware I2S Audio interface"
> +	depends on SND_SOC
>  	depends on DRM_DW_HDMI
>  	select SND_SOC_HDMI_CODEC
>  	help
> -- 
> 2.9.0
> 


Best regards
---
Kuninori Morimoto
Archit Taneja Nov. 28, 2016, 8:43 a.m. UTC | #2
On 11/28/2016 06:37 AM, Kuninori Morimoto wrote:
>
> Hi
>
>> The newly added sound driver depends on SND_SOC_HDMI_CODEC, which in
>> turn only makes sense when ASoC is enabled, as shown by this warning:
>>
>> warning: (DRM_MSM && DRM_STI && DRM_MEDIATEK_HDMI && DRM_I2C_NXP_TDA998X && DRM_DW_HDMI_I2S_AUDIO) selects SND_SOC_HDMI_CODEC which has unmet direct dependencies (SOUND && !M68K && !UML && SND && SND_SOC)
>>
>> Since the audio driver is probably useless without the audio subsystem,
>> adding a dependency here seems the right solution.
>>
>> Fixes: 2761ba6c0925 ("drm: bridge: add DesignWare HDMI I2S audio support")
>> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>> ---
>
> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>


Added to drm-misc-next

Thanks for fixing this.

Archit

>
>>  drivers/gpu/drm/bridge/Kconfig | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig
>> index 4980ecc55721..71db3e659be9 100644
>> --- a/drivers/gpu/drm/bridge/Kconfig
>> +++ b/drivers/gpu/drm/bridge/Kconfig
>> @@ -41,6 +41,7 @@ config DRM_DW_HDMI_AHB_AUDIO
>>
>>  config DRM_DW_HDMI_I2S_AUDIO
>>  	tristate "Synopsis Designware I2S Audio interface"
>> +	depends on SND_SOC
>>  	depends on DRM_DW_HDMI
>>  	select SND_SOC_HDMI_CODEC
>>  	help
>> --
>> 2.9.0
>>
>
>
> Best regards
> ---
> Kuninori Morimoto
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/bridge/Kconfig b/drivers/gpu/drm/bridge/Kconfig
index 4980ecc55721..71db3e659be9 100644
--- a/drivers/gpu/drm/bridge/Kconfig
+++ b/drivers/gpu/drm/bridge/Kconfig
@@ -41,6 +41,7 @@  config DRM_DW_HDMI_AHB_AUDIO
 
 config DRM_DW_HDMI_I2S_AUDIO
 	tristate "Synopsis Designware I2S Audio interface"
+	depends on SND_SOC
 	depends on DRM_DW_HDMI
 	select SND_SOC_HDMI_CODEC
 	help