All of lore.kernel.org
 help / color / mirror / Atom feed
* correction: audiophile USB stream0 output
@ 2003-05-22 15:58 Jonathan Gage
  2003-05-23 10:21 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Gage @ 2003-05-22 15:58 UTC (permalink / raw)
  To: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 3600 bytes --]

agh, many apologies for my stupidity. posting cat /proc/asound/stream0 with nothing playing back was a silly, useless excercise :) here is stream0 while playing back, the problem seems to be that the later drivers (0.9.3c) are running the card at 96khz (which results it digital noise) while the older drivers (0.9.0rc5) are running it at 48khz. I guess this is what the difference in the "momentary frequency" between the two tests means... is there a way to make the card run at 48khz? (.asoundrc?)

here are the results:

_________alsa driver 0.9.3c

bash-2.05a# cat stream0 
M-Audio Audiophile USB (tm) at 002/003 : USB Audio 
 
Playback: 
  Status: Running 
    Interface = 2 
    Altset = 4 
    URBs = 2 [ 1 1 ] 
    Packet Size = 200 
    Momentary freq = 95,999 Hz 
  Interface 2 
    Altset 1 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 48001 - 96000 (continuous) 
  Interface 2 
    Altset 2 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ASYNC) 
    Rates: 8000 - 48000 (continuous) 
  Interface 2 
    Altset 3 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 8000 - 48000 (continuous) 
  Interface 2 
    Altset 4 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 3 OUT (ASYNC) 
    Rates: 8000 - 48000 (continuous) 
  Interface 2 
    Altset 5 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 8000 - 48000 (continuous) 
 
Capture: 
  Status: Running 
    Interface = 5 
    Altset = 3 
    URBs = 2 [ 1 1 ] 
    Packet Size = 200 
    Momentary freq = 44,099 Hz 
  Interface 5 
    Altset 1 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 48001 - 96000 (continuous) 
  Interface 5 
    Altset 2 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 8000 - 48000 (continuous) 
  Interface 5 
    Altset 3 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 8000 - 48000 (continuous) 


_________alsa driver 0.9.0rc5

bash-2.05a# cat stream0 
M-Audio Audiophile USB (tm) : USB Audio 
 
Playback: 
  Status: Running 
    Interface = 2 
    Altset = 4 
    URBs = 2 [ 1 1 ] 
    Packet Size = 200 
    Momentary freq = 48,001 Hz 
  Interface 2 
    Altset 1 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 48001 - 96000 (continous) 
  Interface 2 
    Altset 2 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ASYNC) 
    Rates: 8000 - 48000 (continous) 
  Interface 2 
    Altset 3 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 8000 - 48000 (continous) 
  Interface 2 
    Altset 4 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 3 OUT (ASYNC) 
    Rates: 8000 - 48000 (continous) 
  Interface 2 
    Altset 5 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 3 OUT (ADAPTIVE) 
    Rates: 8000 - 48000 (continous) 
 
Capture: 
  Status: Running 
    Interface = 5 
    Altset = 3 
    URBs = 2 [ 1 1 ] 
    Packet Size = 200 
    Momentary freq = 44,099 Hz 
  Interface 5 
    Altset 1 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 48001 - 96000 (continous) 
  Interface 5 
    Altset 2 
    Format: S24_3LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 8000 - 48000 (continous) 
  Interface 5 
    Altset 3 
    Format: S16_LE 
    Channels: 2 
    Endpoint: 6 IN (ASYNC) 
    Rates: 8000 - 48000 (continous) 





[-- Attachment #2: Type: text/html, Size: 6337 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: correction: audiophile USB stream0 output
  2003-05-22 15:58 correction: audiophile USB stream0 output Jonathan Gage
@ 2003-05-23 10:21 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2003-05-23 10:21 UTC (permalink / raw)
  To: Jonathan Gage; +Cc: alsa-devel

At Fri, 23 May 2003 01:58:54 +1000,
Jonathan Gage wrote:
> 
> agh, many apologies for my stupidity. posting cat /proc/asound/stream0 with nothing
> playing back was a silly, useless excercise :)

no, don't worry, it's still useful in many cases.  it shows better
view than reading the output of lsusb.

> here is stream0 while playing back, the
> problem seems to be that the later drivers (0.9.3c) are running the card at 96khz
> (which results it digital noise) while the older drivers (0.9.0rc5) are running it at
> 48khz. I guess this is what the difference in the "momentary frequency" between the
> two tests means... is there a way to make the card run at 48khz? (.asoundrc?)

what kind of audio (format, rate, channels) did you use?
i see the playback and the capture are running in different rates.

the reason to get a too high rate is that i disabled the error check
in on 0.9.3c (line 408).  please remove '#if 0/#endif' there and 
see what happens.  you'll get warning messages (if the driver is
compiled with --with-debug option).

also, an alternative workaround is to use adaptive out instead of
async out mode if both modes exist.  of course, it's better to fix the
bug of async out mode.


thanks,

Takashi


-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-23 10:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-22 15:58 correction: audiophile USB stream0 output Jonathan Gage
2003-05-23 10:21 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.