CHROMIUM: ALSA: ASoC: exynos hdmi - disable audio in DVI mode
authorYuly Novikov <ynovikov@chromium.org>
Thu, 9 May 2013 22:47:53 +0000 (18:47 -0400)
committerChromeBot <chrome-bot@google.com>
Fri, 10 May 2013 18:12:54 +0000 (11:12 -0700)
commit1819d3da10dd1ee0c398a98e36d5ea0625855d3b
tree12b6a618f7c711783b78be580f4f5234edebf6d9
parenteb70122f00f2746884d82f4f014d68a9432b66ab
CHROMIUM: ALSA: ASoC: exynos hdmi - disable audio in DVI mode

exynos-hdmi-audio used to configure HDMI to send ACR and AUI infoframes
even when DVI sink was plugged using HDMI-DVI cable.
This would cause monitor to go to sleep.

So, don't configure audio if HDMI is in DVI mode,
assuming the graphics driver already disabled it.

Also, if HDMI audio jack hotplugging was previously reported,
report that it was unplugged when DVI mode is detected.

BUG=chromium:222145
TEST=Unplug/plug HDMI-DVI cable, observe monitor working properly.
     Boot with HDMI-HDMI cable plugged in, unplug/plug,
     play sound and hear it on monitor's speakers.

Signed-off-by: Yuly Novikov <ynovikov@chromium.org>
Change-Id: Ia6d677ff82beb64ff53ed7c4bfb09658668fbd9b
Reviewed-on: https://gerrit.chromium.org/gerrit/50726
Reviewed-by: Dylan Reid <dgreid@chromium.org>
sound/soc/samsung/hdmi_audio.c