Commit 0ddf2784 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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.

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Closes: https://lore.kernel.org/20241011131046.5eb3905a@canb.auug.org.au
Fixes: 5b1913a7 ("ALSA: hda: Use own quirk lookup helper")
Link: https://patch.msgid.link/20241011072152.14657-1-tiwai@suse.de


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0845b3e0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 */