diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-10-24 04:00:38 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-10-24 04:04:29 -0400 |
commit | fb54a645b2739fb196446ffbbbe3f3589d117b55 (patch) | |
tree | edd5142702d8f578edf09be33a14b7ae69212911 /sound/pci/hda | |
parent | dde1c652d7b1e69a3f1959697f039ad6dfaeb5dd (diff) |
ALSA: hda - Add missing terminating entry to SND_HDA_PIN_QUIRK macro
Without this terminating entry, the pin matching would continue
across random memory until a zero or a non-matching entry was found.
The result being that in some cases, the pin quirk would not be
applied correctly.
Cc: stable@vger.kernel.org
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 7eb44e78e141..62658f2f8c9f 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -419,7 +419,7 @@ struct snd_hda_pin_quirk { | |||
419 | .subvendor = _subvendor,\ | 419 | .subvendor = _subvendor,\ |
420 | .name = _name,\ | 420 | .name = _name,\ |
421 | .value = _value,\ | 421 | .value = _value,\ |
422 | .pins = (const struct hda_pintbl[]) { _pins } \ | 422 | .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \ |
423 | } | 423 | } |
424 | #else | 424 | #else |
425 | 425 | ||
@@ -427,7 +427,7 @@ struct snd_hda_pin_quirk { | |||
427 | { .codec = _codec,\ | 427 | { .codec = _codec,\ |
428 | .subvendor = _subvendor,\ | 428 | .subvendor = _subvendor,\ |
429 | .value = _value,\ | 429 | .value = _value,\ |
430 | .pins = (const struct hda_pintbl[]) { _pins } \ | 430 | .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \ |
431 | } | 431 | } |
432 | 432 | ||
433 | #endif | 433 | #endif |