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>
This commit is contained in:
parent
dde1c652d7
commit
fb54a645b2
1 changed files with 2 additions and 2 deletions
|
@ -419,7 +419,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
|
||||||
|
|
||||||
|
@ -427,7 +427,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
|
||||||
|
|
Loading…
Add table
Reference in a new issue