adv7282m is a analog video decoder and my camera is ov7956,but I cannot get the right image.The image is green ,as follow.
The code about adv7282m in the file of /kernel/arch/arm/mach-tegra/board-ardbeg-sensors.c is as follws:
/* ADV7282M */
#if IS_ENABLED(CONFIG_SOC_CAMERA_ADV7282M_V4L2)
static struct i2c_board_info ardbeg_adv7282m_camera_i2c_device = {
I2C_BOARD_INFO(“adv7282m”, 0x21),
};
static int ardbeg_adv7282m_power(struct device *dev, int enable)
{
if(enable) {
tegra_io_dpd_disable(&csia_io);
}
else {
tegra_io_dpd_enable(&csia_io);
}
return 0;
}
static struct tegra_camera_platform_data ardbeg_adv7282m_camera_platform_data = {
.flip_v = 0,
.flip_h = 0,
.port = TEGRA_CAMERA_PORT_CSI_A,
.lanes = 1,
.continuous_clk = 0,
};
static struct soc_camera_link adv7282m_iclink = {
.bus_id = 0, /* This must match the .id of tegra_vi01_device */
.board_info = &ardbeg_adv7282m_camera_i2c_device,
.module_name = “adv7282m”,
.i2c_adapter_id = 2,
.power = ardbeg_adv7282m_power,
.priv = &ardbeg_adv7282m_camera_platform_data,
};
static struct platform_device ardbeg_adv7282m_soc_camera_device = {
.name = “soc-camera-pdrv”,
.id = 3,
.dev = {
.platform_data = &adv7282m_iclink,
},
};
#endif
Now,the image looks like well,but it is green.I guess that the parameters of adv7282m have not been configured right,esp.the order of YUV