drm: dw-hdmi-i2s: enable audio clock in audio_startup
authorCheng-Yi Chiang <cychiang@chromium.org>
Mon, 2 Sep 2019 03:54:35 +0000 (11:54 +0800)
committerNeil Armstrong <narmstrong@baylibre.com>
Mon, 2 Sep 2019 09:42:29 +0000 (11:42 +0200)
commitc41784b042ac9cf97f2e871aceef3e06eff14140
treed2662ce1a0e8fec5a03306a9042fac21cb48775a
parent268de6530aa18fe5773062367fd119f0045f6e88
drm: dw-hdmi-i2s: enable audio clock in audio_startup

In the designware databook, the sequence of enabling audio clock and
setting format is not clearly specified.
Currently, audio clock is enabled in the end of hw_param ops after
setting format.

On some monitors, there is a possibility that audio does not come out.
Fix this by enabling audio clock in audio_startup ops
before hw_param ops setting format.

Signed-off-by: Cheng-Yi Chiang <cychiang@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Tested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190902035435.44463-1-cychiang@chromium.org
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c