summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorJean-Francois Moine <moinejf@free.fr>2008-10-17 04:45:27 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-17 17:40:43 -0300
commit0bc99b5cf71e5598a94a0e82b5e45b27c7a97ba1 (patch)
treed53b3edf50f7db29fe1d917deb048228b7d4acb6 /drivers/media
parentf89be036eb8db1fd1c152ee40a763f27fe0f0bb7 (diff)
downloadlinux-0bc99b5cf71e5598a94a0e82b5e45b27c7a97ba1.tar.gz
linux-0bc99b5cf71e5598a94a0e82b5e45b27c7a97ba1.tar.bz2
linux-0bc99b5cf71e5598a94a0e82b5e45b27c7a97ba1.zip
V4L/DVB (9288): gspca: Write to the USB device and not USB interface in t613.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/gspca/t613.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index 9c8562f23900..6aa3bca91b2f 100644
--- a/drivers/media/video/gspca/t613.c
+++ b/drivers/media/video/gspca/t613.c
@@ -385,7 +385,7 @@ static void reg_w(struct gspca_dev *gspca_dev,
usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),
0,
- USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+ USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
0, index,
NULL, 0, 500);
}
@@ -398,7 +398,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),
0,
- USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+ USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
0x01, 0,
gspca_dev->usb_buf, len, 500);
} else {
@@ -409,7 +409,7 @@ static void reg_w_buf(struct gspca_dev *gspca_dev,
usb_control_msg(gspca_dev->dev,
usb_sndctrlpipe(gspca_dev->dev, 0),
0,
- USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
+ USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_DEVICE,
0x01, 0,
tmpbuf, len, 500);
kfree(tmpbuf);