diff options
Diffstat (limited to 'drivers/media/video/gspca/vc032x.c')
-rw-r--r-- | drivers/media/video/gspca/vc032x.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index a39bcabe00e6..619250e70718 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -2937,21 +2937,22 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
2937 | put_tab_to_reg(gspca_dev, MatrixT, 9, 0xb82c); | 2937 | put_tab_to_reg(gspca_dev, MatrixT, 9, 0xb82c); |
2938 | 2938 | ||
2939 | /* set the led on 0x0892 0x0896 */ | 2939 | /* set the led on 0x0892 0x0896 */ |
2940 | if (sd->sensor == SENSOR_PO1200) { | 2940 | switch (sd->sensor) { |
2941 | setsharpness(gspca_dev); | 2941 | case SENSOR_PO1200: |
2942 | sethvflip(gspca_dev); | 2942 | case SENSOR_HV7131R: |
2943 | reg_w(gspca_dev->dev, 0x89, 0x0400, 0x1415); | 2943 | reg_w(gspca_dev->dev, 0x89, 0x0400, 0x1415); |
2944 | } else if (sd->sensor == SENSOR_MI1310_SOC) { | 2944 | break; |
2945 | case SENSOR_MI1310_SOC: | ||
2945 | reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000); | 2946 | reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000); |
2946 | msleep(100); | 2947 | break; |
2947 | sethvflip(gspca_dev); | 2948 | default: |
2948 | setlightfreq(gspca_dev); | ||
2949 | } else { | ||
2950 | reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff); | 2949 | reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff); |
2951 | msleep(100); | 2950 | break; |
2952 | sethvflip(gspca_dev); | ||
2953 | setlightfreq(gspca_dev); | ||
2954 | } | 2951 | } |
2952 | msleep(100); | ||
2953 | setsharpness(gspca_dev); | ||
2954 | sethvflip(gspca_dev); | ||
2955 | setlightfreq(gspca_dev); | ||
2955 | } | 2956 | } |
2956 | return 0; | 2957 | return 0; |
2957 | } | 2958 | } |