ALSA: hda - Make a SND_HDA_PIN_QUIRK macro
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 24 Jun 2014 12:46:53 +0000 (14:46 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 24 Jun 2014 12:48:31 +0000 (14:48 +0200)
This is cosmetical - it makes the new pin quirk table look better.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_local.h

index ebd1fa6f015cb432f568bcf8ce1c9a37c5f23324..4e2d4863daa19a7ade31dd5754fd7c7d3fdbfd0d 100644 (file)
@@ -417,6 +417,27 @@ struct snd_hda_pin_quirk {
        int value;                      /* quirk value */
 };
 
+#ifdef CONFIG_SND_DEBUG_VERBOSE
+
+#define SND_HDA_PIN_QUIRK(_codec, _subvendor, _name, _value, _pins...) \
+       { .codec = _codec,\
+         .subvendor = _subvendor,\
+         .name = _name,\
+         .value = _value,\
+         .pins = (const struct hda_pintbl[]) { _pins } \
+       }
+#else
+
+#define SND_HDA_PIN_QUIRK(_codec, _subvendor, _name, _value, _pins...) \
+       { .codec = _codec,\
+         .subvendor = _subvendor,\
+         .value = _value,\
+         .pins = (const struct hda_pintbl[]) { _pins } \
+       }
+
+#endif
+
+
 /* fixup types */
 enum {
        HDA_FIXUP_INVALID,