usbtv: usbtv_set_regs: the pipe is output
authorOliver Neukum <oneukum@suse.com>
Thu, 16 Mar 2023 13:15:07 +0000 (14:15 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 11 Apr 2023 15:10:10 +0000 (17:10 +0200)
We are setting a value. That is output and
the pipe has to match that.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/usb/usbtv/usbtv-core.c

index 2308c0b..1f7620c 100644 (file)
@@ -47,7 +47,7 @@
 int usbtv_set_regs(struct usbtv *usbtv, const u16 regs[][2], int size)
 {
        int ret;
-       int pipe = usb_rcvctrlpipe(usbtv->udev, 0);
+       int pipe = usb_sndctrlpipe(usbtv->udev, 0);
        int i;
 
        for (i = 0; i < size; i++) {