aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2009-09-03 12:46:59 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-18 23:15:34 -0400
commitba624ce4adb408a1924e96993cccf8a8ffda3b9d (patch)
tree45939134e651a8a1d3796bc428f4c76f65563e02
parent285eb1a40242adb3feaf9c73d352cbfeee1bea1c (diff)
V4L/DVB (12953): gspca - vc032x: Bad GPIO of the Samsung Q1 on start/stop streaming.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/gspca/vc032x.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c
index 619250e70718..589042f6adbe 100644
--- a/drivers/media/video/gspca/vc032x.c
+++ b/drivers/media/video/gspca/vc032x.c
@@ -2946,7 +2946,8 @@ static int sd_start(struct gspca_dev *gspca_dev)
2946 reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000); 2946 reg_w(gspca_dev->dev, 0x89, 0x058c, 0x0000);
2947 break; 2947 break;
2948 default: 2948 default:
2949 reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff); 2949 if (!(sd->flags & FL_SAMSUNG))
2950 reg_w(gspca_dev->dev, 0x89, 0xffff, 0xfdff);
2950 break; 2951 break;
2951 } 2952 }
2952 msleep(100); 2953 msleep(100);
@@ -2964,7 +2965,7 @@ static void sd_stopN(struct gspca_dev *gspca_dev)
2964 2965
2965 if (sd->sensor == SENSOR_MI1310_SOC) 2966 if (sd->sensor == SENSOR_MI1310_SOC)
2966 reg_w(dev, 0x89, 0x058c, 0x00ff); 2967 reg_w(dev, 0x89, 0x058c, 0x00ff);
2967 else 2968 else if (!(sd->flags & FL_SAMSUNG))
2968 reg_w(dev, 0x89, 0xffff, 0xffff); 2969 reg_w(dev, 0x89, 0xffff, 0xffff);
2969 reg_w(dev, 0xa0, 0x01, 0xb301); 2970 reg_w(dev, 0xa0, 0x01, 0xb301);
2970 reg_w(dev, 0xa0, 0x09, 0xb003); 2971 reg_w(dev, 0xa0, 0x09, 0xb003);
@@ -2981,7 +2982,7 @@ static void sd_stop0(struct gspca_dev *gspca_dev)
2981/*fixme: is this useful?*/ 2982/*fixme: is this useful?*/
2982 if (sd->sensor == SENSOR_MI1310_SOC) 2983 if (sd->sensor == SENSOR_MI1310_SOC)
2983 reg_w(dev, 0x89, 0x058c, 0x00ff); 2984 reg_w(dev, 0x89, 0x058c, 0x00ff);
2984 else 2985 else if (!(sd->flags & FL_SAMSUNG))
2985 reg_w(dev, 0x89, 0xffff, 0xffff); 2986 reg_w(dev, 0x89, 0xffff, 0xffff);
2986} 2987}
2987 2988