ALSA: hda - Add DP-MST support for NVIDIA codecs
authorNikhil Mahale <nmahale@nvidia.com>
Tue, 19 Nov 2019 08:47:10 +0000 (14:17 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Nov 2019 10:51:12 +0000 (11:51 +0100)
commit5398e94fb753d022301825ebfa5f7cf8a660d8eb
tree729eac41f13aa8eed93cca1b1bfdc633e66eb543
parent9c32fea836928d7a25a83b337f268e533cfc5c3d
ALSA: hda - Add DP-MST support for NVIDIA codecs

This patch adds DP-MST support for GK104+ NVIDIA codecs.

GK104+ NVIDIA codecs support DP-MST audio. These codecs have 4
output converters and 4 pin widgets, with 4 device entries per pin
widget for a total of 16 device entries.

This patch moves the existing patch_nvhdmi() definition to
patch_nvhdmi_legacy(), used by pre-GK104 NVIDIA codecs. Redefine
patch_nvhdmi() to enable DP-MST support by setting codec->dp_mst and
spec->dyn_pcm_assign.

Introduce fresh logic for dynamic pcm assignment, making
sure that new pcm assignments are compatible with the legacy static
per_pin-pmc assignment that existed in the days before DP-MST.

Signed-off-by: Nikhil Mahale <nmahale@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Link: https://lore.kernel.org/r/20191119084710.29267-5-nmahale@nvidia.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c