]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: hdac_hdmi: Enable playback on all enumerated ports
authorSubhransu S. Prusty <subhransu.s.prusty@intel.com>
Fri, 12 Feb 2016 02:16:07 +0000 (07:46 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 15 Feb 2016 20:55:57 +0000 (20:55 +0000)
commit148569fddbc6d3ce97236c4344068b1293e51838
tree684c73bbbef1eff6e99a2af984500f105e94492d
parent9f2f232e2e5394be04b6a636898c64509bc8d5c1
ASoC: hdac_hdmi: Enable playback on all enumerated ports

Last patch added infrastructure to render over all the ports,
PCM<->cvt<- pin mapping and user selection of controls. But we
still have restriction of playback on the default port alone, so
remove that.

This patch removes the hardcoding of cvt<->pin map from the dai.
Cvt and pin for a dai are now derived from the already stored pcm
list of device opened.  We query connection list of a pin from
codec to validate the cvt<->pin map.

If connection list returns zero, then monitor is not connected so
fail playback.

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