]> Pileus Git - ~andy/linux/blobdiff - sound/pci/hda/hda_codec.c
ALSA: hda - Fix leftover ifdef checks after modularization
[~andy/linux] / sound / pci / hda / hda_codec.c
index ec4536c8d8d43c0987d43fd0ef9d07fe9a417ef4..69acbf758bbb29e77b4539e45e6597de1fcef218 100644 (file)
@@ -932,7 +932,7 @@ int snd_hda_bus_new(struct snd_card *card,
 }
 EXPORT_SYMBOL_GPL(snd_hda_bus_new);
 
-#ifdef CONFIG_SND_HDA_GENERIC
+#if IS_ENABLED(CONFIG_SND_HDA_GENERIC)
 #define is_generic_config(codec) \
        (codec->modelname && !strcmp(codec->modelname, "generic"))
 #else
@@ -1570,7 +1570,7 @@ int snd_hda_codec_update_widgets(struct hda_codec *codec)
 EXPORT_SYMBOL_GPL(snd_hda_codec_update_widgets);
 
 
-#ifdef CONFIG_SND_HDA_CODEC_HDMI
+#if IS_ENABLED(CONFIG_SND_HDA_CODEC_HDMI)
 /* if all audio out widgets are digital, let's assume the codec as a HDMI/DP */
 static bool is_likely_hdmi_codec(struct hda_codec *codec)
 {
@@ -1622,7 +1622,7 @@ int snd_hda_codec_configure(struct hda_codec *codec)
                unload_parser(codec); /* to be sure */
                if (is_likely_hdmi_codec(codec))
                        patch = load_parser(codec, snd_hda_parse_hdmi_codec);
-#ifdef CONFIG_SND_HDA_GENERIC
+#if IS_ENABLED(CONFIG_SND_HDA_GENERIC)
                if (!patch)
                        patch = load_parser(codec, snd_hda_parse_generic_codec);
 #endif