Commit b8758f7d authored by David Henningsson's avatar David Henningsson Committed by Greg Kroah-Hartman

ALSA: hda - Add missing terminating entry to SND_HDA_PIN_QUIRK macro

commit fb54a645 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: default avatarDavid Henningsson <david.henningsson@canonical.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0dfdfc11
...@@ -424,7 +424,7 @@ struct snd_hda_pin_quirk { ...@@ -424,7 +424,7 @@ struct snd_hda_pin_quirk {
.subvendor = _subvendor,\ .subvendor = _subvendor,\
.name = _name,\ .name = _name,\
.value = _value,\ .value = _value,\
.pins = (const struct hda_pintbl[]) { _pins } \ .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \
} }
#else #else
...@@ -432,7 +432,7 @@ struct snd_hda_pin_quirk { ...@@ -432,7 +432,7 @@ struct snd_hda_pin_quirk {
{ .codec = _codec,\ { .codec = _codec,\
.subvendor = _subvendor,\ .subvendor = _subvendor,\
.value = _value,\ .value = _value,\
.pins = (const struct hda_pintbl[]) { _pins } \ .pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment