]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/bridge: dw-hdmi-i2s: reset audio fifo before applying new params
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 12 Aug 2019 12:07:24 +0000 (14:07 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 14 Aug 2019 13:03:28 +0000 (15:03 +0200)
commit46cecde310bba81243f906955f5fd6f64d5668f0
treefd7ab44c6be98dc2b2d39e8f02d59cbe4def7a77
parent0c6098859176ffa250b196498722dc7844e41048
drm/bridge: dw-hdmi-i2s: reset audio fifo before applying new params

When changing the audio hw params, reset the audio fifo to make sure
any old remaining data is flushed.

The databook mentions that such reset should be followed by a reset of
the i2s block to make sure the samples stay aligned

Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812120726.1528-7-jbrunet@baylibre.com
drivers/gpu/drm/bridge/synopsys/dw-hdmi-i2s-audio.c
drivers/gpu/drm/bridge/synopsys/dw-hdmi.h