linux/drivers/gpu/drm/bridge
Russell King b90120a966 drm: bridge/dw_hdmi: introduce interfaces to enable and disable audio
iMX6 devices suffer from an errata (ERR005174) where the audio FIFO can
be emptied while it is partially full, resulting in misalignment of the
audio samples.

To prevent this, the errata workaround recommends writing N as zero
until the audio FIFO has been loaded by DMA.  Writing N=0 prevents the
HDMI bridge from reading from the audio FIFO, effectively disabling
audio.

This means we need to provide the audio driver with a pair of functions
to enable/disable audio.  These are dw_hdmi_audio_enable() and
dw_hdmi_audio_disable().

A spinlock is introduced to ensure that setting the CTS/N values can't
race, ensuring that the audio driver calling the enable/disable
functions (which are called in an atomic context) can't race with a
modeset.

Tested-by: Yakir Yang <ykk@rock-chips.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-08-18 11:27:15 +01:00
..
dw_hdmi.c drm: bridge/dw_hdmi: introduce interfaces to enable and disable audio 2015-08-18 11:27:15 +01:00
dw_hdmi.h drm: bridge/dw_hdmi: add function dw_hdmi_phy_enable_spare 2015-01-07 18:31:59 +01:00
Kconfig drm/bridge: Add I2C based driver for ps8622/ps8625 bridge 2015-03-24 11:16:47 +01:00
Makefile drm/bridge: Add I2C based driver for ps8622/ps8625 bridge 2015-03-24 11:16:47 +01:00
ps8622.c drm/bridge: ps8622: Fix sparse warnings 2015-03-24 11:16:48 +01:00
ptn3460.c drm/bridge: ptn3460: Fix sparse warnings 2015-03-24 11:16:48 +01:00