/* makes a connection between the input-pin 'i' and the output-pin 'o' */ staticint tea6415c_s_routing(struct v4l2_subdev *sd,
u32 i, u32 o, u32 config)
{ struct i2c_client *client = v4l2_get_subdevdata(sd);
u8 byte = 0; int ret;
v4l2_dbg(1, debug, sd, "i=%d, o=%d\n", i, o);
/* check if the pins are valid */ if (0 == ((1 == i || 3 == i || 5 == i || 6 == i || 8 == i || 10 == i || 20 == i || 11 == i)
&& (18 == o || 17 == o || 16 == o || 15 == o || 14 == o || 13 == o))) return -EINVAL;
/* to understand this, have a look at the tea6415c-specs (p.5) */ switch (o) { case18:
byte = 0x00; break; case14:
byte = 0x20; break; case16:
byte = 0x10; break; case17:
byte = 0x08; break; case15:
byte = 0x18; break; case13:
byte = 0x28; break;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.