[alsa-devel] snd-usb-audio syncronisation problem

Adrian Stancu adrian.stancu.82 at gmail.com
Fri Feb 22 15:19:28 CET 2008


It seems that retire_playback_sync_urb_hs gets called, but 'subs->feqm
= f;' never gets called

Here is the content of /proc/asound/card1/stream0 during playback:

vader:~# cat /proc/asound/card1/stream0
E-MU Systems, Inc. E-MU 0404 | USB at usb-0000:00:1d.7-6, high speed : USB Audio

Playback:
  Status: Running
    Interface = 1
    Altset = 3
    URBs = 4 [ 8 8 8 5 ]
    Packet Size = 298
    Momentary freq = 48000 Hz (0x6.0000)
  Interface 1
    Altset 1
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 2
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 3
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 4
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 5
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 88200
  Interface 1
    Altset 6
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 88200
  Interface 1
    Altset 7
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 96000
  Interface 1
    Altset 8
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 96000
  Interface 1
    Altset 9
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 176400
  Interface 1
    Altset 10
    Format: 0x20
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 192000
  Interface 1
    Altset 11
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 12
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100
  Interface 1
    Altset 13
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 14
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 48000
  Interface 1
    Altset 15
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 88200
  Interface 1
    Altset 16
    Format: 0x20
    Channels: 4
    Endpoint: 1 OUT (ASYNC)
    Rates: 96000

Capture:
  Status: Stop
  Interface 2
    Altset 1
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 44100
  Interface 2
    Altset 2
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 44100
  Interface 2
    Altset 3
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 48000
  Interface 2
    Altset 4
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 48000
  Interface 2
    Altset 5
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 88200
  Interface 2
    Altset 6
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 88200
  Interface 2
    Altset 7
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 96000
  Interface 2
    Altset 8
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 96000
  Interface 2
    Altset 9
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 176400
  Interface 2
    Altset 10
    Format: 0x20
    Channels: 2
    Endpoint: 2 IN (ASYNC)
    Rates: 192000
  Interface 2
    Altset 11
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 44100
  Interface 2
    Altset 12
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 44100
  Interface 2
    Altset 13
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 48000
  Interface 2
    Altset 14
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 48000
  Interface 2
    Altset 15
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 88200
  Interface 2
    Altset 16
    Format: 0x20
    Channels: 4
    Endpoint: 2 IN (ASYNC)
    Rates: 96000


On Fri, Feb 22, 2008 at 3:57 PM, Clemens Ladisch <clemens at ladisch.de> wrote:
> Adrian Stancu wrote:
>  > Using the original module, the momentary frequency is always stalled
>  > at 48000Hz during playback:
>  > vader:~# while sleep 0.3; do grep "Momentary freq"
>  > /proc/asound/card1/stream0; done
>  >     Momentary freq = 48000 Hz (0x6.0000)
>  >     Momentary freq = 48000 Hz (0x6.0000)
>  >     Momentary freq = 48000 Hz (0x6.0000)
>  >     Momentary freq = 48000 Hz (0x6.0000)
>  >     Momentary freq = 48000 Hz (0x6.0000)
>  >
>  >  note: I started playback after issuing the command.
>  > So maybe this particular type of interface does not report back
>  > correctly, thus confusing the driver?
>
>  This is possible.  Please try to put printk's into
>  retire_playback_sync_urb(_hs) to see whether these functions ever get
>  called, and whether the line "subs->freqm = f;" is reached.
>
>  Please show the entire contents of /proc/asound/card1/stream0 while the
>  device is playing.
>
>
>  Regards,
>  Clemens
>


More information about the Alsa-devel mailing list