Hi,
This patch is the third version of PATCH 14 of this series: http://www.spinics.net/lists/linux-omap/msg69466.html
I send this patch separately to ease review, as the rest of the patches in the series were regarded as OK by the DSS maintainer.
Changes with respect to v2: *An improved locking strategy. The new strategy maintains an audio state machine. The audio state may only be transitioned if the panel is active. Audio can only be started if the previous state is AUDIO_ENABLED. Such state may only be reached if the panel is enabled. If the panel is disabled, it will also disable audio. As the panel and audio states are protected by a mutex and a spinlock, a video thread and audio thread cannot concurrently execute audio functions.
BR,
Ricardo
Ricardo Neri (1): OMAPDSS: HDMI: Implement DSS driver interface for audio
drivers/video/omap2/dss/dss.h | 8 ++ drivers/video/omap2/dss/hdmi.c | 42 ++++++++++ drivers/video/omap2/dss/hdmi_panel.c | 140 ++++++++++++++++++++++++++++++++++ 3 files changed, 190 insertions(+), 0 deletions(-)