Skip to content

Commit

Permalink
ALSA: hda - Make a SND_HDA_PIN_QUIRK macro
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Henningsson authored and tiwai committed Jun 24, 2014
1 parent 7a52cd7 commit a2d2fa0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions sound/pci/hda/hda_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a2d2fa0

Please sign in to comment.