diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2009-12-26 13:21:57 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:28 -0500 |
commit | 219f3027a8078148ddc2a75125afbb071a4d70c7 (patch) | |
tree | 613618dca66fe46c43cc7eae1ff57a3587ce4d62 /drivers/media/video/gspca/vc032x.c | |
parent | ff1cf4081244be0c84e90ab55a299c00d5a4d854 (diff) |
V4L/DVB (13892): gspca - vc032x: Add the H and V flip controls for sensor mi1320.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index 5cace3fda80e..531e9be13d52 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -2791,6 +2791,7 @@ static int sd_config(struct gspca_dev *gspca_dev, | |||
2791 | gspca_dev->ctrl_dis = (1 << LIGHTFREQ_IDX); | 2791 | gspca_dev->ctrl_dis = (1 << LIGHTFREQ_IDX); |
2792 | switch (sd->sensor) { | 2792 | switch (sd->sensor) { |
2793 | case SENSOR_MI1310_SOC: | 2793 | case SENSOR_MI1310_SOC: |
2794 | case SENSOR_MI1320: | ||
2794 | case SENSOR_MI1320_SOC: | 2795 | case SENSOR_MI1320_SOC: |
2795 | case SENSOR_OV7660: | 2796 | case SENSOR_OV7660: |
2796 | case SENSOR_OV7670: | 2797 | case SENSOR_OV7670: |
@@ -2834,6 +2835,7 @@ static void sethvflip(struct gspca_dev *gspca_dev) | |||
2834 | vflip = !vflip; | 2835 | vflip = !vflip; |
2835 | switch (sd->sensor) { | 2836 | switch (sd->sensor) { |
2836 | case SENSOR_MI1310_SOC: | 2837 | case SENSOR_MI1310_SOC: |
2838 | case SENSOR_MI1320: | ||
2837 | case SENSOR_MI1320_SOC: | 2839 | case SENSOR_MI1320_SOC: |
2838 | data[0] = data[1] = 0; /* select page 0 */ | 2840 | data[0] = data[1] = 0; /* select page 0 */ |
2839 | i2c_write(gspca_dev, 0xf0, data, 2); | 2841 | i2c_write(gspca_dev, 0xf0, data, 2); |