diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-06-24 16:46:53 +0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-06-24 16:48:31 +0400 |
commit | a2d2fa02b2ec87609295a5bf2391a52e6e7ae111 (patch) | |
tree | 16393284611b2c988f3ee8c0f39af3a1b4616592 /sound/pci/hda/hda_local.h | |
parent | 7a52cd79fa2a445f6a57e9122d579883e07214fb (diff) | |
download | linux-a2d2fa02b2ec87609295a5bf2391a52e6e7ae111.tar.xz |
ALSA: hda - Make a SND_HDA_PIN_QUIRK macro
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>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index ebd1fa6f015c..4e2d4863daa1 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h @@ -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, |