Commit 219f3027 authored by Jean-Francois Moine's avatar Jean-Francois Moine Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (13892): gspca - vc032x: Add the H and V flip controls for sensor mi1320.

parent ff1cf408
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2791,6 +2791,7 @@ static int sd_config(struct gspca_dev *gspca_dev,
		gspca_dev->ctrl_dis = (1 << LIGHTFREQ_IDX);
	switch (sd->sensor) {
	case SENSOR_MI1310_SOC:
	case SENSOR_MI1320:
	case SENSOR_MI1320_SOC:
	case SENSOR_OV7660:
	case SENSOR_OV7670:
@@ -2834,6 +2835,7 @@ static void sethvflip(struct gspca_dev *gspca_dev)
		vflip = !vflip;
	switch (sd->sensor) {
	case SENSOR_MI1310_SOC:
	case SENSOR_MI1320:
	case SENSOR_MI1320_SOC:
		data[0] = data[1] = 0;		/* select page 0 */
		i2c_write(gspca_dev, 0xf0, data, 2);