Skip to content

Commit 4b49f0f

Browse files
arndbtiwai
authored andcommitted
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: 5dab11d ("ALSA: x86: hdmi: Add audio support for BYT and CHT") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 0b6b524 commit 4b49f0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sound/x86/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ if SND_X86
99
config HDMI_LPE_AUDIO
1010
tristate "HDMI audio without HDaudio on Intel Atom platforms"
1111
depends on DRM_I915
12+
select SND_PCM
1213
help
1314
Choose this option to support HDMI LPE Audio mode
1415

0 commit comments

Comments
 (0)