ASoC: hdac_hdmi: Add support for multiple ports to a PCM
authorJeeja KP <jeeja.kp@intel.com>
Tue, 7 Feb 2017 13:39:48 +0000 (19:09 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 16 Feb 2017 18:55:40 +0000 (18:55 +0000)
commite0e5d3e5a53b3bc354c18030b78b7ebcb33e004b
tree613359fe84984c564bc8820e7ccbf00c4ffbf244
parent1b46ebd136b3ad334762d6e66b0b96b432680e50
ASoC: hdac_hdmi: Add support for multiple ports to a PCM

Since we have the MST feature enabled and Pin-Port mux for user to
select the converter routing, multiple port mapping to same converter
needs to be supported.

To support multiple port mapped to same converter following changes are
done for this:.
o Add port list to pcm, so that multiple ports can be mapped to a PCM.
o Jack reporting in case where multiple port are attached to same PCM.
o Change hdac_hdmi_get_port_from_cvt(), channel_map, remove functions
to parse through all ports mapped to same the PCM.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c