From 1dcbfae4c2be84c90b10a09f3df6301993de02dc Mon Sep 17 00:00:00 2001 From: Charles Keepax Date: Mon, 30 Oct 2023 10:18:15 +0000 Subject: [PATCH] fixup! ALSA: hda/hdmi: Add helper function to check if a device is HDMI codec Whether patch_hdmi.c is build into the kernel is controlled by SND_HDA_CODEC_HDMI, not SND_SOC_SOF_HDA_AUDIO_CODEC, update the if def to check this symbol to avoid undefined function issues: ERROR: modpost: "snd_hda_device_is_hdmi" [sound/soc/codecs/snd-soc-hdac-hda.ko] undefined! Fixes: 5762a2e74908 ("ALSA: hda/hdmi: Add helper function to check if a device is HDMI codec") Signed-off-by: Charles Keepax --- include/sound/hdaudio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sound/hdaudio.h b/include/sound/hdaudio.h index 7cb920d107cbe4..cf5483d6b5b774 100644 --- a/include/sound/hdaudio.h +++ b/include/sound/hdaudio.h @@ -159,7 +159,7 @@ bool snd_hdac_check_power_state(struct hdac_device *hdac, unsigned int snd_hdac_sync_power_state(struct hdac_device *hdac, hda_nid_t nid, unsigned int target_state); -#if IS_ENABLED(CONFIG_SND_SOC_SOF_HDA_AUDIO_CODEC) +#if IS_ENABLED(CONFIG_SND_HDA_CODEC_HDMI) bool snd_hda_device_is_hdmi(struct hdac_device *hdev); #else static inline bool snd_hda_device_is_hdmi(struct hdac_device *hdev)