ALSA: hda - Fix DP-MST support for NVIDIA codecs
authorNikhil Mahale <nmahale@nvidia.com>
Tue, 4 Feb 2020 10:27:46 +0000 (15:57 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Feb 2020 16:16:08 +0000 (17:16 +0100)
commitc7e661a1c2ae98a4754db6a85fc686b4a89322ad
tree710529a153404bd5888bbb1b67156c238102d327
parent112e3f5ac505ea0f1e3c59cc757db3c45252c41d
ALSA: hda - Fix DP-MST support for NVIDIA codecs

If dyn_pcm_assign is set, different jack objects are being created
for pcm and pins.

If dyn_pcm_assign is set, generic_hdmi_build_jack() calls into
add_hdmi_jack_kctl() to create and track separate jack object for
pcm. Like sync_eld_via_acomp(), hdmi_present_sense_via_verbs() also
need to report status change of the pcm jack.

Rename pin_idx_to_jack() to pin_idx_to_pcm_jack(). Update
hdmi_present_sense_via_verbs() to report plug state of pcm jack
object. Unlike sync_eld_via_acomp(), for !acomp drivers the pcm
jack's plug state must be consistent with plug state
of pin's jack.

Fixes: 5398e94fb753 ("ALSA: hda - Add DP-MST support for NVIDIA codecs")
Reported-and-tested-by: Martin Regner <martin@larkos.de>
Signed-off-by: Nikhil Mahale <nmahale@nvidia.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200204102746.1356-1-nmahale@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c