Skip to content

Commit 0ddf278

Browse files
committed
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: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/20241011131046.5eb3905a@canb.auug.org.au Fixes: 5b1913a ("ALSA: hda: Use own quirk lookup helper") Link: https://patch.msgid.link/20241011072152.14657-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 0845b3e commit 0ddf278

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

sound/pci/hda/hda_local.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,15 @@ struct hda_quirk {
308308
#endif
309309
};
310310

311+
#ifdef CONFIG_SND_DEBUG_VERBOSE
311312
#define HDA_CODEC_QUIRK(vend, dev, xname, val) \
312313
{ _SND_PCI_QUIRK_ID(vend, dev), .value = (val), .name = (xname),\
313314
.match_codec_ssid = true }
315+
#else
316+
#define HDA_CODEC_QUIRK(vend, dev, xname, val) \
317+
{ _SND_PCI_QUIRK_ID(vend, dev), .value = (val), \
318+
.match_codec_ssid = true }
319+
#endif
314320

315321
struct snd_hda_pin_quirk {
316322
unsigned int codec; /* Codec vendor/device ID */

0 commit comments

Comments
 (0)