]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00306875-2 video: mxc_hdmi: Set hdmi cable state a bit earilier
authorNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 3 Apr 2014 12:36:55 +0000 (20:36 +0800)
committerNicolin Chen <Guangyu.Chen@freescale.com>
Thu, 3 Apr 2014 13:00:55 +0000 (21:00 +0800)
commit2917061c498a97e3c3b99ac616b6f3202f8a0499
tree3adb31f6ab1c38811a8b46fe91d05e3a53df2217
parentcb6cd68b00fbb52852101ca2f3bc93ae45310b66
ENGR00306875-2 video: mxc_hdmi: Set hdmi cable state a bit earilier

During hdmi hotplug test, there's a possibility that X-server unblanks
the frame buffer while HDMI-audio just gets the signal to start playback.
Then audio would get an unblanked state right before the playback and
bypassed the DMA enabling code. So this issue is caused by the race
between unblank and set_cable_state().

This patch sets the hdmi cable state a bit earilier so as to let audio
play first. If unblank happens later, the hdmi core and hdmi audio would
be robust enough to handle that case as long as it's not racing with the
other parts.

Acked-by: Sandor Yu <R01008@freescale.com>
Signed-off-by: Nicolin Chen <Guangyu.Chen@freescale.com>
drivers/video/mxc/mxc_hdmi.c