Yes, I am doin CVBS video, I want to be able to switch between 2 inputs.
About the input control register, I see that there is a configuration here
/*! ADV7180 Reset function.
*
* @return None.
*/
static void adv7180_hard_reset(bool cvbs)
{
dev_dbg(&adv7180_data.i2c_client->dev,
"In adv7180:adv7180_hard_reset\n");
if (cvbs) {
/* Set CVBS input on AIN1 */
adv7180_write_reg(ADV7180_INPUT_CTL, 0x00);
} else {
/*
* Set YPbPr input on AIN1,4,5 and normal
* operations(autodection of all stds).
*/
adv7180_write_reg(ADV7180_INPUT_CTL, 0x09);
}
/* Datasheet recommends */
adv7180_write_reg(ADV7180_VSYNC_FIELD_CTL_1, 0x02);
adv7180_write_reg(ADV7180_MANUAL_WIN_CTL, 0xa2);
}
But I can't figure out what this code means regarding the register fields from adv7180.pdf,
first he write 0x0 so
INPUT_CTL:
VID_SEL[3] VID_SEL[2] VID_SEL[1] VID_SEL[0] INSEL[3] INSEL[2] INSEL[1] INSEL[0]
0 0 0 0 0 0 0 0
and then 0x09
VID_SEL[3] VID_SEL[2] VID_SEL[1] VID_SEL[0] INSEL[3] INSEL[2] INSEL[1] INSEL[0]
0 0 0 0 1 0 0 1
Is that right ?
Thanks for you reply.