]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codec: hdac_hdmi: fix pin connections at cvt enable
authorKai Vehmanen <kai.vehmanen@linux.intel.com>
Thu, 13 Jun 2019 11:54:12 +0000 (14:54 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 13 Jun 2019 18:44:25 +0000 (19:44 +0100)
commitaca9aab939a731157827e4eb2703d099a547d5f1
treedea3a63588ec18412be7b3037bb7c74e95c5cc5c
parent15310095c3f5f1243aa5cf1a1bb54085664d3204
ASoC: codec: hdac_hdmi: fix pin connections at cvt enable

In display codecs supported by hdac_hdmi, the connection indices are
shared by all converters. At boot and resume from suspend,
the connection state may be reset to default values.

In case of multiple connected pins (multiple monitors connected
with audio capability), routing and mute status of pins that
are not connected to any PCM, may interfere with other pins.
E.g. after resume from S3 with multiple monitors, unless
all converters are in active use, playback to some PCMs may
be muted due to the default settings of unrelated converters.

Avoid this by ensuring all pin:cvt selections are correct
in codec whenever a converter is enabled for playback.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hdmi.c