Re: [linux-usb-devel] libusb driver question: can't write to endpoint

2007-03-11 Thread Thomas Sailer
On Sat, 2007-03-10 at 15:39 -0800, Phil Dibowitz wrote: > while (bytes = read((int)fh, buf, SIZE)) { > printf("writing %d bytes (%d)\n",SIZE,++i); > if (usb_interrupt_write(udev, OUT_EP, buf, bytes, 2) < 0) { read can return -1, at which point you stuff -1 i

Re: [linux-usb-devel] Clock synchronisation using the frame counter

2007-03-03 Thread Thomas Sailer
On Sat, 2007-03-03 at 11:44 +0100, Laurent Pinchart wrote: > I'm trying to find a way to synchronise the Linux system clock with a device > clock using the USB frame counter as a shared clock. In a related scenario I have an USB device that periodically sends its device clock over USB and I want

Re: [linux-usb-devel] usbmon status codes

2006-12-19 Thread Thomas Sailer
On Wed, 2006-12-20 at 10:55 +1100, Aras Vaichas wrote: > I'm at a loss to understand the status code. Can someone point me to where I > can decode this? With the help of /usr/include/asm/errno.h, you can translate the error numbers to error names. Documentation/usb/error-codes.txt then documents

Re: [linux-usb-devel] [PATCH] Support for gzipped usb.ids files

2006-08-08 Thread Thomas Sailer
On Sun, 2006-08-06 at 14:10 -0700, Randy.Dunlap wrote: > It was just posted to the linux-pci m-l on Aug-04 and has not > been acted on. I'm a bit worried that just storing a gzipped file as usb.ids will confuse users. Storing it as usb.ids.gz would make it more clear that it is a compressed file,

Re: [linux-usb-devel] Unable to initialize USB when device works at (or less than) 4MHZ clock speed

2005-09-26 Thread Thomas Sailer
On Wed, 2005-09-21 at 15:35 +0800, Yu Zhenshen wrote: > I have tried all host controller interfaces: ohci, ehci and uhci, all of > them works the same, except the output messages differ: > For EHCI, the dmesg output is: This is obviously not ehci, as the P18F2455 only supports low and full sp

[linux-usb-devel] [PATCH,RESEND] usb: fix uss720 schedule with interrupts off

2005-09-09 Thread Thomas Sailer
control transaction requests required by save and restore asynchronously. Signed-off-by: Thomas Sailer, <[EMAIL PROTECTED]> diff --git a/drivers/usb/misc/uss720.c b/drivers/usb/misc/uss720.c --- a/drivers/usb/misc/uss720.c +++ b/drivers/usb/misc/uss720.c @@ -3,8 +3,8 @@ /* * us

[linux-usb-devel] uss720.c: timetravel from stone age closer to modern times...

2005-09-02 Thread Thomas Sailer
/* * uss720.c -- USS720 USB Parport Cable. * - * Copyright (C) 1999 - * Thomas Sailer ([EMAIL PROTECTED]) + * Copyright (C) 1999, 2005 + * Thomas Sailer ([EMAIL PROTECTED]) * * This program is free software; you can redistribute it and/or modify * it

Re: [linux-usb-devel] Byterunner USB 5.1 Channel Audio Adapter

2005-02-21 Thread Thomas Sailer
On Mon, 2005-02-21 at 12:36 -0500, John Leimgruber wrote: > It does say that only 2 channel playback works in on Mac systems... The OSS API usb audio driver also only supports two channels, if you want 5.1, use the ALSA usb audio driver > I attached some info below that might help if anyone is

Re: [linux-usb-devel] usb.ids patch [3/3]

2004-11-11 Thread Thomas Sailer
On Thu, 2004-11-11 at 13:03 +0100, Christian Iversen wrote: > Signed-off-by: Christian Iversen <[EMAIL PROTECTED]> All 3 applied to sf cvs --- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorl

Re: Culprit found? (was: [linux-usb-devel] Re: USB on Via KT600 massive trouble in Linux 2.6 (quite fresh BK version))

2004-03-22 Thread Thomas Sailer
On Fri, 2004-03-19 at 17:38, David Brownell wrote: > "usbbmodules" is part of "usbutils" though. I sent out a patch to > usbutils 0.11 a while ago that fixed the ridiculous timeouts for > the "lsusb" program, but it didn't touch "usbmodules" (which I've > just disabled on all my systems, since la

[linux-usb-devel] [PATCH] 2.4 (revised): USB OSS audio driver workaround for buggy descriptors

2004-02-27 Thread Thomas Sailer
All, the attached patch for the USB OSS audio driver works around an apparently common (because windows apparently works around it too) USB audio descriptor bug. I've tested it with a micronas UAC3556B eval board that features such buggy descriptors. Thanks, Tom --- drivers/usb/audio.c.orig 200

Re: [linux-usb-devel] Quirk for Micronas UAC355x USB Audio Chip

2004-02-24 Thread Thomas Sailer
On Tue, 2004-02-24 at 15:05, Clemens Ladisch wrote: > BTW: A Plantronics headset (0x047f/0x0ca1) and the Griffin iMic > (0x077d/0x07af) have a similar bug. Hm, haven't found this in alsa in the linux kernel 2.6.3. Also, I do have a Griffin iMic and it works for me without kludge... strange... T

[linux-usb-devel] Quirk for Micronas UAC355x USB Audio Chip

2004-02-24 Thread Thomas Sailer
All, the Mirconas UAC355x audio chips don't currently work with my driver (haven't tried alsa), because it announces both playback and capture being adaptive, while only playback is really adaptive, capture is asynchronous. So we need a quirk to handle this. How do we handle this best? In the dri

Re: [linux-usb-devel] Problems with Gamesurround Muse Pocket USB & 2.6.0-test11

2003-12-08 Thread Thomas Sailer
Thanks. > bNrChannels 6 Hm, the OSS driver doesn't really support more than 2 channels, as the OSS API is more or less stereo only. ALSA should be better suited for this, but I don't know too much about their USB driver... Tom -

Re: [linux-usb-devel] Problems with Gamesurround Muse Pocket USB & 2.6.0-test11

2003-12-08 Thread Thomas Sailer
please also post the decoded USB audio descriptor, using lsusb Tom --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything fro

Re: [linux-usb-devel] [patch usbutils 0.11] teach lsusb about CDC, fix timeouts, etc

2003-09-15 Thread Thomas Sailer
On Mon, 2003-09-15 at 05:25, David Brownell wrote: > Thomas, this goes on top of the other patch. It fixes several > other lint warnings/bugs in lsusb; it was the only file with > those problems. How correct is that HID parsing? :) I don't know :) I've applied most of your patch, thanks. Tom

[linux-usb-devel] USB audio.c: make trigger semantics more OSS compliant

2003-07-11 Thread Thomas Sailer
2003-06-30 17:08:26.0 +0200 @@ -105,6 +105,8 @@ * functionality. Tested and used in production with the emagic emi 2|6 * on PPC and Intel. Also fixed a few logic 'crash and burn' corner * cases. + * 2003-06-30: Thomas Sailer

Re: [linux-usb-devel] devio.c::usbdev_open

2002-07-10 Thread Thomas Sailer
On Wed, 2002-07-10 at 16:29, Oliver Neukum wrote: > Here: > spin_lock_init(&ps->lock); > INIT_LIST_HEAD(&ps->async_pending); > INIT_LIST_HEAD(&ps->async_completed); > init_waitqueue_head(&ps->wait); > init_rwsem(&ps->devsem); > > you unconditionally reinit locks ..

Re: [linux-usb-devel] devio.c::usbdev_open

2002-07-10 Thread Thomas Sailer
On Tue, 2002-07-09 at 23:48, Oliver Neukum wrote: > Here we have an open with no protection at all against reentrancy. > The comment is absolutely bogus as open can sleep. Very bad. What problem is there if usbdev_open is reentered? You failed to explain this. I agree that the GFP_KERNEL is a po

Re: [linux-usb-devel] Multiple Control URBs

2002-05-24 Thread Thomas Sailer
Johannes Erdfelt wrote: > usb_control_msg() is probably what he wants. It waits. Yes. But still we should probably have control queueing for the uhci's (possibly at the HCD level?) Think about multi-interface devices, where all interfaces have different drivers that do not know about each other

Re: [linux-usb-devel] usb microphone not work

2002-05-12 Thread Thomas Sailer
Brad Hards wrote: > The problem appears to be broken descriptors. You need a real developers to > help you with this: > usbaudio: warning: found 2 of 1 logical channels. > usbaudio: no idea what's going on..., contact > [EMAIL PROTECTED] doesn't look like a message I coded 8-) Anyway, if you su

[linux-usb-devel] Wrong sanity check in audio.c

2002-04-09 Thread Thomas Sailer
Even though I originally implemented it, the sanity check removed by the patch below seems wrong to me... Tom --- audio.c.origTue Apr 9 20:49:44 2002 +++ audio.c Tue Apr 9 20:50:14 2002 @@ -3524,7 +3524,7 @@ return; case PROCESSING_UNIT: - if

Re: [linux-usb-devel] Re: usbdevfs to device node mapping

2002-03-22 Thread Thomas Sailer
Greg KH wrote: > Oh, didn't realize that, sorry. Does anyone use it today? Yes, extensively. eg. usbstress on usb.in.tum.de, baycomusb (www.baycom.org) Tom ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.n

Re: [linux-usb-devel] disconnect/ioctl/probe races?

2001-11-03 Thread Thomas Sailer
Duncan Sands wrote: > races with disconnect. In usb.c there is the usb_disconnect > function which first calls driver->disconnect, then only later Ah ok, you're concerned about the driver ioctl getting called via usbdevfs. The proc_ioctl interface wasn't added by me, so I don't know the origina

Re: [linux-usb-devel] disconnect/ioctl/probe races?

2001-11-03 Thread Thomas Sailer
Oliver Neukum wrote: > A look through usbdevfs shows that there's no locking. ??? usbdevfs has devsem to prevent these races (it's a rwsem, reading used to access the device, disconnect requires taking the semaphore for writing, thus locking out readers). That's the way USB locking works. The

Re: [linux-usb-devel] usb-storage:probe() vs. usbdevfs:claim_interface()race?

2001-10-22 Thread Thomas Sailer
[EMAIL PROTECTED] schrieb: > Another problem with usbdevfs is that it really is an aggregate of three > seperable functions. > - The drivers and devices files, which should IMHO be in proc on their own > - Informing on connected drivers > - Access as generic devices I do not believe that separat

Re: [linux-usb-devel] usb-storage:probe() vs. usbdevfs:claim_interface() race?

2001-10-22 Thread Thomas Sailer
Oliver Neukum schrieb: > The only problem you have then is that a generic driver would need to give up > its devices whenever a new driver is probed. But that problem is not harder > than dealing with disconnect. A generic driver also prohibits things like lsusb. lsusb IMO has been useful so far

[linux-usb-devel] audio.c patch

2001-06-19 Thread Thomas Sailer
Bryce Nesbitt found a case where audio handled the OSS API wrongly. This is basically his patch fixing it. Please apply. Tom --- audio.c.origMon Jun 18 15:05:56 2001 +++ audio.c Tue Jun 19 10:47:49 2001 @@ -12,6 +12,8 @@ * the Free Software Foundation; either version 2 of the

[linux-usb-devel] [Fwd: uss720.c patch]

2001-06-08 Thread Thomas Sailer
JE, please apply oops, forgot to attach the patchfile On Thu, 7 Jun 2001, Steve Tell wrote: > > Greetings from Chapel Hill, North Carolina, USA... > > I recently bought a USB parallel-port adaptor cable and discovered that is > used a Lucent uss720 chip. Naturaly I had to get it working wi

[linux-usb-devel] Re: [patch] usbdevfs use mount options

2001-05-21 Thread Thomas Sailer
Dan Streetman schrieb: > Here is a patch which makes usbdevfs use the mount options. Thanks Tom ___ [EMAIL PROTECTED] To unsubscribe, use the last form field at: http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Re: [linux-usb-devel] [patch] adding (1-shot) interrupts to usbdevfs & HCDs

2001-05-18 Thread Thomas Sailer
Matt Eccleston schrieb: > > The particular problem I have is that the uhci driver refuses low speed bulk > transfers, thus you can't always submit interrupt packets as bulk packets. > > This check could of course be removed, but I don't think its prudent to have HCDs > worry that their BULK tran

Re: [linux-usb-devel] [patch] adding (1-shot) interrupts to usbdevfs & HCDs

2001-05-18 Thread Thomas Sailer
Roman Weissgaerber schrieb: > Also if a HCD would use static, typed Endpoint-Descriptors there > would be a type mismatch. > (OHCI uses different HW-queues for int > and bulk transfers so if you mix them there could be some quirks). Do you know how the WDM OHCI driver works? Because there the AP

Re: [linux-usb-devel] [patch] adding (1-shot) interrupts to usbdevfs& HCDs

2001-05-18 Thread Thomas Sailer
Dan Streetman schrieb: > 2.Polling interval > The polling interval for bulk URBs is as-fast-as-possible. The device must I thought in case of a NAK the HC should wait for the next frame to try again, but maybe I'm wrong > 3.Guaranteed polling > Interrupt URBs are (supposed to be) guarantee

Re: [linux-usb-devel] [patch] adding (1-shot) interrupts to usbdevfs & HCDs

2001-05-16 Thread Thomas Sailer
Dan Streetman schrieb: > The URB is not automatically resubmitted by the HCD. BTW, what is the difference between such a nonresubmitted interrupt and a bulk transfer? Unless I'm missing something they look exactly the same on the wire, so why add another redundant interface? Tom __

Re: [linux-usb-devel] [patch] adding (1-shot) interrupts to usbdevfs & HCDs

2001-05-16 Thread Thomas Sailer
Dan Streetman schrieb: > Ok, here is a patch that adds interrupts (via interrupt URBs, instead of bulk > URBs) to usbdevfs. This takes a different approach than the last > (usbdevfs-interrupt) patch. It allows using interrupt-type URBs via usbdevfs, > and maintains the correct polling interval

Re: [linux-usb-devel] Current support for user level USB drivers?

2001-04-02 Thread Thomas Sailer
"Adam J. Richter" wrote: > I noticed this as I was writing a patch to implement a > USBDEVFS_INTERRUPT ioctl for doing transfers from interrupt pipes > (like USBDEVFS_BULK). I have attached the patch, in case anybody is Why do you need this? You can already poll interrupt endpoints by u

Re: [linux-usb-devel] multiple identical USB devices

2001-03-27 Thread Thomas Sailer
matthew denner wrote: > i guess what this comes down to is: is this a problem within the USB support > under Linux or is it something incorrect in the quickcam driver in how it's > using the USB stuff? I don't think this is a general Linux USB problem, I can use two mice without problem. Tom