Am 05.10.2010 09:21, schrieb Clemens Ladisch:
Felix Homann wrote:
Trying to log the value of f reveals that retire_playback_sync_urb() doesn't seem to be called at all.
The entire function or that part of the code?
The entire function. I had placed a printk at the very beginning of retire_playback_sync_urb() whose output doesn't show up.
Anyway, please try the patch below, which makes the driver autodetect the feedback format. (The actual format can be seen in /proc/asound/cardX/stream0 while running.)
Alex, please test this with your widget.
Here's what I get:
:~$ cat /proc/asound/card2/stream0 M-Audio Fast Track Ultra 8R at usb-0000:00:1a.7-4, high speed : USB Audio
Playback: Status: Running Interface = 1 Altset = 1 URBs = 3 [ 57 57 57 ] Packet Size = 312 Momentary freq = 48000 Hz (0x6.0000) Interface 1 Altset 1 Format: S24_3LE Channels: 8 Endpoint: 1 OUT (ADAPTIVE) Rates: 44100, 48000, 88200, 96000 Data packet interval: 125 us
Capture: Status: Running Interface = 2 Altset = 1 URBs = 8 [ 8 8 8 8 8 8 8 8 ] Packet Size = 312 Momentary freq = 48000 Hz (0x6.0000) Interface 2 Altset 1 Format: S24_3LE Channels: 8 Endpoint: 1 IN (ASYNC) Rates: 44100, 48000, 88200, 96000 Data packet interval: 125 us
Does it tell us anything?
Kind regards,
Felix