Re: [Alsa-devel] USB audio devices

2004-03-11 Thread Clemens Ladisch
Karsten Wiese wrote: We can also vary the exact USB frame time. With UHCI 1.1 USB Hosts there is the SOF Register. ... It really works here already with the us428: The trick is: We first make the USB-Frame longer until we capture 1 Sample Frame more 45 (for 44100). then the USB-Frame is

Re: [Alsa-devel] USB audio devices

2004-03-11 Thread Clemens Ladisch
Clemens Ladisch wrote: Jaroslav Kysela wrote: I don't know much about USB 2.0, Not too much differences for the driver. Well, I should have read the specification before saying such things. The format of synchronization information has changed, too; it's not 10.14 bits but 12.13 packed

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Clemens Ladisch
Jaroslav Kysela wrote: On Tue, 9 Mar 2004, Takashi Iwai wrote: BTW, the USB audio is another headache. the current ALSA PCM model isn't perfectly suitable for the devices like USB audio. Unfortunately I don't see a better model. Conceptually, USB devices have variable-sized periods. The

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Jaroslav Kysela
On Wed, 10 Mar 2004, Clemens Ladisch wrote: Jaroslav Kysela wrote: On Tue, 9 Mar 2004, Takashi Iwai wrote: BTW, the USB audio is another headache. the current ALSA PCM model isn't perfectly suitable for the devices like USB audio. Unfortunately I don't see a better model.

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Clemens Ladisch
Jaroslav Kysela wrote: On Wed, 10 Mar 2004, Clemens Ladisch wrote: Conceptually, USB devices have variable-sized periods. The question is whether we actually want to allow this in the API. Probably not. What this does mean? I though that the period size is specified with time (1ms) for

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Takashi Iwai
At Wed, 10 Mar 2004 10:08:26 +0100 (CET), Jaroslav wrote: On Wed, 10 Mar 2004, Clemens Ladisch wrote: Jaroslav Kysela wrote: On Tue, 9 Mar 2004, Takashi Iwai wrote: BTW, the USB audio is another headache. the current ALSA PCM model isn't perfectly suitable for the devices

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Takashi Iwai
At Wed, 10 Mar 2004 09:26:27 +0100 (MET), Clemens Ladisch wrote: I don't know much about USB 2.0, Not too much differences for the driver. The main difference is that there are now 8000 microframes per second. I have written a patch (see below) and am about to test it. is there any

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Clemens Ladisch
Takashi Iwai wrote: Clemens Ladisch wrote: I don't know much about USB 2.0, Not too much differences for the driver. The main difference is that there are now 8000 microframes per second. I have written a patch (see below) and am about to test it. is there any real usb2-audio

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Karsten Wiese
We can also vary the exact USB frame time. With UHCI 1.1 USB Hosts there is the SOF Register. It is setable from 0 to 255, the default being 127. Using this SOF-Register, we can set the actual USB Frame Rate from ((12000 - 127) / 12000)ms to ((12000 + 128) / 12000)ms. That is about -/+ 1%: More

Re: [Alsa-devel] USB audio devices

2004-03-10 Thread Patrick Shirkey
Karsten Wiese wrote: We can also vary the exact USB frame time. With UHCI 1.1 USB Hosts there is the SOF Register. It is setable from 0 to 255, the default being 127. Using this SOF-Register, we can set the actual USB Frame Rate from ((12000 - 127) / 12000)ms to ((12000 + 128) / 12000)ms. That