mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
ENGR00124360 v4l2 output: rework v4l2 output
1. remove ADC support. 2. remove work queue for not ic bypass mode which improve the performance. Signed-off-by: Jason Chen <b02280@freescale.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -39,7 +39,6 @@
|
||||
|
||||
#define MXC_V4L2_OUT_NUM_OUTPUTS 6
|
||||
#define MXC_V4L2_OUT_2_SDC 0
|
||||
#define MXC_V4L2_OUT_2_ADC 1
|
||||
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -1655,27 +1655,27 @@ int32_t ipu_enable_channel(ipu_channel_t channel)
|
||||
spin_lock_irqsave(&ipu_lock, lock_flags);
|
||||
|
||||
ipu_conf = __raw_readl(IPU_CONF);
|
||||
if (ipu_di_use_count[0] == 1) {
|
||||
if (ipu_di_use_count[0] > 0) {
|
||||
ipu_conf |= IPU_CONF_DI0_EN;
|
||||
}
|
||||
if (ipu_di_use_count[1] == 1) {
|
||||
if (ipu_di_use_count[1] > 0) {
|
||||
ipu_conf |= IPU_CONF_DI1_EN;
|
||||
}
|
||||
if (ipu_dp_use_count == 1)
|
||||
if (ipu_dp_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_DP_EN;
|
||||
if (ipu_dc_use_count == 1)
|
||||
if (ipu_dc_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_DC_EN;
|
||||
if (ipu_dmfc_use_count == 1)
|
||||
if (ipu_dmfc_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_DMFC_EN;
|
||||
if (ipu_ic_use_count == 1)
|
||||
if (ipu_ic_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_IC_EN;
|
||||
if (ipu_vdi_use_count == 1) {
|
||||
if (ipu_vdi_use_count > 0) {
|
||||
ipu_conf |= IPU_CONF_VDI_EN;
|
||||
ipu_conf |= IPU_CONF_IC_INPUT;
|
||||
}
|
||||
if (ipu_rot_use_count == 1)
|
||||
if (ipu_rot_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_ROT_EN;
|
||||
if (ipu_smfc_use_count == 1)
|
||||
if (ipu_smfc_use_count > 0)
|
||||
ipu_conf |= IPU_CONF_SMFC_EN;
|
||||
__raw_writel(ipu_conf, IPU_CONF);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user