OSDN Git Service

ALSA: hda: hdmi - fix regression in connect list handling
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Wed, 27 Nov 2019 16:12:40 +0000 (18:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 27 Nov 2019 16:14:16 +0000 (17:14 +0100)
commitae254888f3c39f66d09920b459112ba3eadf1dc4
tree3f148194b3d217df65388aaccb3d6f08607ff46c
parent5061bb7065d05efbac35a660eb30ed4c3100690b
ALSA: hda: hdmi - fix regression in connect list handling

Fix regression in how intel_haswell_fixup_connect_list()
results are used in hda_read_pin_conn(). Use of
snd_hda_get_raw_connections() in hda_read_pin_conn() bypasses
the cache and thus also bypasses the overridden pin connection
list. On platforms that require the connection list fixup,
mux list will be empty and HDMI playback will fail to -EBUSY
at open.

Fix the regression in hda_read_pinn_conn(). Simplify code
as suggested by Takashi Iwai to remove old
intel_haswell_fixup_connect_list() and copy the cvt_nid list
directly and not use snd_hda_override_conn_list() at all.

Fixes: 9c32fea83692 ("ALSA: hda - Add DP-MST support for non-acomp codecs")
BugLink: https://github.com/thesofproject/linux/issues/1537
Cc: Nikhil Mahale <nmahale@nvidia.com>
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20191127161240.17026-1-kai.vehmanen@linux.intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c