diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-10-24 10:00:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-30 09:43:12 -0700 |
commit | 27d0241a2fe69a2f0bc5b720979b1cfe6deb453e (patch) | |
tree | 605c8581652130d37fc49206290b610810f67fa8 | |
parent | ddcf6ee737e15936e63b8f827748bee0a138b99c (diff) | |
download | lwn-27d0241a2fe69a2f0bc5b720979b1cfe6deb453e.tar.gz lwn-27d0241a2fe69a2f0bc5b720979b1cfe6deb453e.zip |
ALSA: hda - Add missing terminating entry to SND_HDA_PIN_QUIRK macro
commit fb54a645b2739fb196446ffbbbe3f3589d117b55 upstream.
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.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 364bb413e02a..bb989ab316e8 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h @@ -425,7 +425,7 @@ struct snd_hda_pin_quirk { .subvendor = _subvendor,\ .name = _name,\ .value = _value,\ - .pins = (const struct hda_pintbl[]) { _pins } \ + .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \ } #else @@ -433,7 +433,7 @@ struct snd_hda_pin_quirk { { .codec = _codec,\ .subvendor = _subvendor,\ .value = _value,\ - .pins = (const struct hda_pintbl[]) { _pins } \ + .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \ } #endif |