Skip to content

Commit 27d0241

Browse files
David Henningssongregkh
David Henningsson
authored andcommitted
ALSA: hda - Add missing terminating entry to SND_HDA_PIN_QUIRK macro
commit fb54a64 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 <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ddcf6ee commit 27d0241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sound/pci/hda/hda_local.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -425,15 +425,15 @@ struct snd_hda_pin_quirk {
425425
.subvendor = _subvendor,\
426426
.name = _name,\
427427
.value = _value,\
428-
.pins = (const struct hda_pintbl[]) { _pins } \
428+
.pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \
429429
}
430430
#else
431431

432432
#define SND_HDA_PIN_QUIRK(_codec, _subvendor, _name, _value, _pins...) \
433433
{ .codec = _codec,\
434434
.subvendor = _subvendor,\
435435
.value = _value,\
436-
.pins = (const struct hda_pintbl[]) { _pins } \
436+
.pins = (const struct hda_pintbl[]) { _pins, {0, 0}} \
437437
}
438438

439439
#endif

0 commit comments

Comments
 (0)