projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0845b3e
)
ALSA: hda: Fix build error without CONFIG_SND_DEBUG
author
Takashi Iwai
<tiwai@suse.de>
Fri, 11 Oct 2024 07:21:52 +0000
(09:21 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 11 Oct 2024 07:25:55 +0000
(09:25 +0200)
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:
5b1913a79c3e
("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>
sound/pci/hda/hda_local.h
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/hda_local.h
b/sound/pci/hda/hda_local.h
index b7d926e9eb947d51aef06f8b72041eb7d9c25cc4..763f79f6f32e708c822a406fb756e8679ce955d2 100644
(file)
--- a/
sound/pci/hda/hda_local.h
+++ b/
sound/pci/hda/hda_local.h
@@
-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 */