Skip to content

Commit 7a89f53

Browse files
tiwaigregkh
authored andcommitted
ALSA: hda: Fix build error without CONFIG_SND_DEBUG
commit 0ddf278 upstream. 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 <[email protected]> Closes: https://lore.kernel.org/[email protected] Fixes: 5b1913a ("ALSA: hda: Use own quirk lookup helper") Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 2daba7d commit 7a89f53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)