linux/drivers/gpu/drm/i2c
Russell King 6d30c0f728 drm/i2c: tda998x: avoid race in tda998x_encoder_mode_set()
As priv->audio_params can now be changed at run time, we need to be more
careful about how we deal with a mode set.  We must take the audio lock
while checking if there's a valid audio configuration.

However, it's slightly worse than that - during mode set, we mute the
audio, and it must not be unmuted until we have finished the mode set.
It is possible that the audio side may start while a mode set is in
progress, so take the audio_mutex lock around the whole mode setting
procedure.

Tested-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Jon Medhurst <tixy@linaro.org>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
2016-11-18 00:00:40 +00:00
..
ch7006_drv.c drm/i2c/ch7006: Use helper to turn off CRTC 2016-06-24 08:49:37 +02:00
ch7006_mode.c drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
ch7006_priv.h drm/i2c/ch7006: Constify ch7006_tv_norms[] and ch7006_modes[] 2015-09-08 13:45:53 +02:00
Kconfig Merge branch 'drm-tda998x-mali' into drm-tda998x-devel 2016-11-01 09:17:57 +00:00
Makefile drm/i2c: adv7511: Move to bridge folder 2016-07-13 14:24:35 +05:30
sil164_drv.c drm/i2c/sil164: removed unnecessary code, mode_fixup is now optional. 2016-02-11 09:24:00 +01:00
tda998x_drv.c drm/i2c: tda998x: avoid race in tda998x_encoder_mode_set() 2016-11-18 00:00:40 +00:00