Skip to content
Commit c7e661a1 authored by Nikhil Mahale's avatar Nikhil Mahale Committed by Takashi Iwai
Browse files

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: 5398e94f ("ALSA: hda - Add DP-MST support for NVIDIA codecs")
Reported-and-tested-by: default avatarMartin Regner <martin@larkos.de>
Signed-off-by: default avatarNikhil Mahale <nmahale@nvidia.com>
Reviewed-by: default avatarKai 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: default avatarTakashi Iwai <tiwai@suse.de>
parent 112e3f5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment