]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit02886077118aa7792991cec0e6e82a17a760cf62
tree710529a153404bd5888bbb1b67156c238102d327
parentb3b3e4160dde8510645892a539c7127a4701f159
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: 8452384ea91b ("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