ENGR00122043 v4l2 output: enable fb channel before buf select

Enable fb display channel before buffer select, it avoid display frame
lost for small windows between timming of buffer select and channel
enalbe.

Signed-off-by: Jason Chen <b02280@freescale.com>
This commit is contained in:
Jason Chen
2010-04-13 15:00:13 +08:00
committed by Matt Sealey
parent 2657b8a116
commit 678ca1e01f

View File

@@ -1441,6 +1441,13 @@ static int mxc_v4l2out_streamon(vout_data * vout)
vout->state = STATE_STREAM_PAUSED;
if (use_direct_adc == false) {
if (fbi) {
acquire_console_sem();
fb_blank(fbi, FB_BLANK_UNBLANK);
release_console_sem();
} else {
ipu_enable_channel(vout->display_ch);
}
if (!vout->ic_bypass) {
#ifndef CONFIG_MXC_IPU_V1
ipu_enable_channel(vout->post_proc_ch);
@@ -1472,14 +1479,6 @@ static int mxc_v4l2out_streamon(vout_data * vout)
ipu_select_buffer(vout->display_ch, IPU_INPUT_BUFFER, 1);
schedule_work(&vout->timer_work);
}
if (fbi) {
acquire_console_sem();
fb_blank(fbi, FB_BLANK_UNBLANK);
release_console_sem();
} else {
ipu_enable_channel(vout->display_ch);
}
} else {
ipu_select_buffer(vout->post_proc_ch, IPU_INPUT_BUFFER, 0);
ipu_select_buffer(vout->post_proc_ch, IPU_INPUT_BUFFER, 1);