[go: nahoru, domu]

FROMLIST: 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>
(am from https://patchwork.kernel.org/patch/11120287/)
(also found at https://lkml.kernel.org/r/20190829042957.150929-1-cychiang@chromium.org)

BUG=chromium:998344
TEST=use repeat_sox.sh script in issue #2

Change-Id: Ib7fcae3080aaa195553b495467d082c010d81371
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1774430
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Tested-by: Douglas Anderson <dianders@chromium.org>
Commit-Queue: Cheng-Yi Chiang <cychiang@chromium.org>
(cherry picked from commit cadf8b3e0d52b16c63c286750a4626d7b0f663ce)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1782745
1 file changed