diff options
author | Liu Ying <b17645@freescale.com> | 2010-11-03 17:50:00 +0800 |
---|---|---|
committer | Alan Tull <alan.tull@freescale.com> | 2011-02-03 16:30:38 -0600 |
commit | 8eac089536bff310646af11009d91cf23063454d (patch) | |
tree | 06edc233d9df33ecb3f3c9220019b400d3f4d9b9 /drivers/mxc | |
parent | 482306121c50b30bb073c28aad1f388d54b54a23 (diff) |
ENGR00133345-1 IPUv3 VDI:Support bottom field first setting
This patch supports bottom field first setting.
Signed-off-by: Liu Ying <b17645@freescale.com>
Diffstat (limited to 'drivers/mxc')
-rw-r--r-- | drivers/mxc/ipu3/ipu_ic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mxc/ipu3/ipu_ic.c b/drivers/mxc/ipu3/ipu_ic.c index 8bb28c929620..7f1dfe92332a 100644 --- a/drivers/mxc/ipu3/ipu_ic.c +++ b/drivers/mxc/ipu3/ipu_ic.c @@ -185,7 +185,10 @@ void _ipu_vdi_init(ipu_channel_t channel, ipu_channel_params_t *params) } __raw_writel(reg, VDI_C); - _ipu_vdi_set_top_field_man(false); + if (params->mem_prp_vf_mem.field_fmt == V4L2_FIELD_INTERLACED_TB) + _ipu_vdi_set_top_field_man(false); + else if (params->mem_prp_vf_mem.field_fmt == V4L2_FIELD_INTERLACED_BT) + _ipu_vdi_set_top_field_man(true); _ipu_vdi_set_motion(params->mem_prp_vf_mem.motion_sel); |