]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: x86: hdmi: select CONFIG_SND_PCM
authorArnd Bergmann <arnd@arndb.de>
Tue, 21 Feb 2017 22:02:37 +0000 (23:02 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 21 Feb 2017 22:39:14 +0000 (23:39 +0100)
commit75bc4cf3242ad50ac1d2b6ab1f058aa948627569
tree61a265b8e37965f8c81a5c9c99a901940636e71e
parentc8bec7e11d40cd8e2e244b58c096d0e9bdbd79c5
ALSA: x86: hdmi: select CONFIG_SND_PCM

The newly added driver uses the PCM helpers and fails to link if they are disabled:

sound/built-in.o: In function `hdmi_lpe_audio_runtime_suspend':
intel_hdmi_audio.c:(.text+0x15906): undefined reference to `snd_pcm_suspend'
sound/built-in.o: In function `had_pcm_hw_params':
intel_hdmi_audio.c:(.text+0x15ac7): undefined reference to `snd_pcm_lib_malloc_pages'
sound/built-in.o: In function `had_pcm_open':
intel_hdmi_audio.c:(.text+0x15d49): undefined reference to `snd_pcm_hw_constraint_integer'

This uses a Kconfig 'select' statement to make sure they are enabled.

Fixes: ad02670093fe ("ALSA: x86: hdmi: Add audio support for BYT and CHT")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/Kconfig