ALSA: hda: Fix build error without CONFIG_SND_DEBUG

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Takashi Iwai <tiwai@xxxxxxx>

commit 0ddf2784d6c29e59409a62b8f32dc5abe56135a4 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 <sfr@xxxxxxxxxxxxxxxx>
Closes: https://lore.kernel.org/20241011131046.5eb3905a@xxxxxxxxxxxxxxxx
Fixes: 5b1913a79c3e ("ALSA: hda: Use own quirk lookup helper")
Link: https://patch.msgid.link/20241011072152.14657-1-tiwai@xxxxxxx
Signed-off-by: Takashi Iwai <tiwai@xxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
 sound/pci/hda/hda_local.h |    6 ++++++
 1 file changed, 6 insertions(+)

--- 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 */


Patches currently in stable-queue which might be from tiwai@xxxxxxx are

queue-6.12/alsa-seq-ump-fix-seq-port-updates-per-fb-info-notify.patch
queue-6.12/alsa-hda-realtek-enable-mute-and-micmute-led-on-hp-probook-430-g8.patch
queue-6.12/alsa-hda-realtek-fix-micmute-leds-don-t-work-on-hp-laptops.patch
queue-6.12/alsa-hda-realtek-use-codec-ssid-matching-for-lenovo-.patch
queue-6.12/alsa-usb-audio-add-extra-pid-for-rme-digiface-usb.patch
queue-6.12/alsa-usb-audio-fix-a-dma-to-stack-memory-bug.patch
queue-6.12/alsa-usb-audio-notify-xrun-for-low-latency-mode.patch
queue-6.12/alsa-usb-audio-add-mixer-mapping-for-corsair-hs80.patch
queue-6.12/asoc-intel-avs-fix-return-status-of-avs_pcm_hw_constraints_init.patch
queue-6.12/alsa-hda-realtek-fix-spelling-mistake-firelfy-firefly.patch
queue-6.12/alsa-hda-conexant-use-the-new-codec-ssid-matching.patch
queue-6.12/alsa-usb-audio-make-mic-volume-workarounds-globally-.patch
queue-6.12/alsa-hda-realtek-add-support-for-samsung-galaxy-book3-360-np730qfg.patch
queue-6.12/alsa-hda-fix-build-error-without-config_snd_debug.patch
queue-6.12/alsa-hda-use-own-quirk-lookup-helper.patch




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux