]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: bridge/dw_hdmi: protect n/cts setting with a mutex
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 2 Feb 2015 11:01:08 +0000 (11:01 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 30 Mar 2015 18:42:35 +0000 (19:42 +0100)
commit6bcf495317857e4e4cfb2e6f57fa8230cedc1362
treee37ddd8b48b4527696ac242af4db7b95e1e8e606
parent351e1354fcd06e96245f8fda141ac3cc2f68f763
drm: bridge/dw_hdmi: protect n/cts setting with a mutex

The HDMI n/cts settings need to be updated whenever the audio sample
rate or the video pixel clock changes.  This needs to be protected
against concurrency as there is no synchronisation between these two
operations.  Introduce a mutex (called audio_mutex) to protect against
two threads trying to update the video clock rate and pixel clock
simultaneously.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/gpu/drm/bridge/dw_hdmi.c