Skip to contentSkip to conversation

ALSA: hda: Fix build error without CONFIG_SND_DEBUG

PATCH New Takashi Iwai 1 participant 1 message Oct 11, 2024 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda: Fix build error without CONFIG_SND_DEBUG

The macro should have been defined without setting the non-existing name field in the case of CONFIG_SND_DEBUG=n.

Fixes 5b1913a79c3e ("ALSA: hda: Use own quirk lookup helper")
---
 sound/pci/hda/hda_local.h | 6 ++++++
 1 file changed, 6 insertions(+)
sound/pci/hda/hda_local.h +6 -0
index b7d926e9eb94..763f79f6f32e 100644
@@ -308,9 +308,15 @@ struct hda_quirk {
 #endif
 };
 
+#ifdef CONFIG_SND_DEBUG_VERBOSE
 #define HDA_CODEC_QUIRK(vend, dev, xname, val) \
 	{ _SND_PCI_QUIRK_ID(vend, dev), .value = (val), .name = (xname),\
 			.match_codec_ssid = true }
+#else
+#define HDA_CODEC_QUIRK(vend, dev, xname, val) \
+	{ _SND_PCI_QUIRK_ID(vend, dev), .value = (val), \
+			.match_codec_ssid = true }
+#endif
 
 struct snd_hda_pin_quirk {
 	unsigned int codec;             /* Codec vendor/device ID */
Signature · 1 line
2.43.0