From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Jean-Francois Moine <moinejf@free.fr>
Cc: video4linux-list@redhat.com
Subject: PATCH: gspca-mercurial fix sonixb driver
Date: Wed, 02 Jul 2008 23:26:44 +0200 [thread overview]
Message-ID: <486BF294.7060500@hhs.nl> (raw)
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
Hi All,
This patch makes the sonixb gspca driver actually work (tested with
a sweex sn9c102 with tas5110 sensor).
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
Regards,
Hans
[-- Attachment #2: gspca-fix-sonixb.patch --]
[-- Type: text/x-patch, Size: 1027 bytes --]
This patch makes the sonixb gspca driver actually work (tested with
a sweex sn9c102 with tas5110 sensor).
Signed-off-by: Hans de Goede <j.w.r.degoede@hhs.nl>
--- gspca-2bbb47f61a95/linux/drivers/media/video/gspca/sonixb.c.dbg 2008-07-02 11:14:56.000000000 +0200
+++ gspca-2bbb47f61a95/linux/drivers/media/video/gspca/sonixb.c 2008-07-02 23:07:41.000000000 +0200
@@ -344,13 +344,17 @@ static void reg_w(struct usb_device *dev
const __u8 *buffer,
__u16 len)
{
+ __u8 tmpbuf[0x1f];
+
+ memcpy(tmpbuf, buffer, len);
+
usb_control_msg(dev,
usb_sndctrlpipe(dev, 0),
0x08, /* request */
USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_INTERFACE,
value,
0, /* index */
- (__u8 *) buffer, len,
+ tmpbuf, len,
500);
}
@@ -769,8 +773,8 @@ static void sd_pkt_scan(struct gspca_dev
LAST_PACKET,
frame,
data, 0);
- data += 12;
- len -= 12;
+ data += p + 12;
+ len -= p + 12;
gspca_frame_add(gspca_dev, FIRST_PACKET,
frame, data, len);
return;
[-- Attachment #3: Type: text/plain, Size: 164 bytes --]
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
reply other threads:[~2008-07-02 21:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=486BF294.7060500@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--cc=moinejf@free.fr \
--cc=video4linux-list@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox