All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: snd-usb-audio hacking
@ 2003-07-17 15:18 Andrew Burgess
  2003-07-17 18:21 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Burgess @ 2003-07-17 15:18 UTC (permalink / raw)
  To: alsa-devel

>Playback sort of works at this rate, using OSS emulation - it looks like 
>the device down-samples to 48kHz.  I occasionally get oopses under 
...
>Is this the right place to be asking these questions, (or should I go 
>off to the usb dev lists etc.?)..

My philosophy is to check the oops backtrace. If it dies in usb then
bug the usb guys to make it more robust so even if it is an alsa
bug, usb should print an error rather than oops. Vice versa if it
dies in alsa.

USB/ALSA bugs are tough because of two distinct developer camps.

I have a Griffin USB iMic that hard hangs 2.4.21ac just by running arecord and
then ^C. I got no response here a few weeks ago...



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: snd-usb-audio hacking
@ 2003-07-18 18:43 Andrew Burgess
  2003-07-21 15:03 ` Takashi Iwai
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Burgess @ 2003-07-18 18:43 UTC (permalink / raw)
  To: tiwai; +Cc: alsa-devel

Takashi said:

>> I have a Griffin USB iMic that hard hangs 2.4.21ac just by running arecord and
>> then ^C. I got no response here a few weeks ago...

>does this happen still with the latest cvs?

Yes. I just tried alsa 9.2, 9.4, 9.5 and cvs all with 2.4.22-pre6

I'm running:
  arecord -D imic --rate 44100 -f S16_LE - | aplay -
and then press ^C

I have gotten sound from this thing at one point. If I run arecord with
the -d <delay> and let it exit by itself it does not oops!!!!!

0.9.2 gives an error immediately, something about invalid sync pipe.
No oops but also no sound.

Others seem to give the same oops (always BUG in spinlock.h anyway) and then a hard lockup. 

>From my handwritten notes:

BUG ...include/asm/spinlock.h:86
process: aplay

I type in the backtrace by hand to ksymoops (this for alsa-cvs):

  >>EIP; c011b14f <__wake_up+8f/d0>   <=====
  Trace; e0972d8e <[usb-ohci]dl_del_list+4ce/520>
  Trace; c01e312f <scrup+14f/160>
  Trace; e09741e7 <[usb-ohci]hc_interrupt+1c7/350>
  Trace; c0109509 <handle_IRQ_event+69/a0>
  Trace; c01097fa <do_IRQ+ea/190>
  Trace; c0117149 <smp_apic_timer_interrupt+129/130>
  Trace; c010c718 <call_do_IRQ+5/d>
  Trace; e0bb15f2 <[snd-timer]snd_timer_open+192/1f0>
  Trace; e0bb25ac <[snd-timer]snd_timer_interrupt+34c/3f0>
  Trace; e0bb2a71 <[snd-timer]snd_timer_dev_register+1a1/1b0>
  Trace; c014c257 <fput+167/190>
  Trace; c0131734 <zap_page_range+1c4/1d0>
  Trace; c0134992 <unmap_fixup+1f2/200>
  Trace; c0134cce <do_munmap+27e/300>
  Trace; c0149f69 <filp_close+b9/120>
  Trace; c0134d93 <sys_munmap+43/70>
  Trace; c0107b0f <system_call+33/38>

I get some warnings from ksymoops so here is the full output FYI:


root@athlon:/root # ksymoops<oops
ksymoops 2.4.0 on i686 2.4.22-pre6.  Options used
     -V (default)
     -k /proc/ksyms (default)
     -l /proc/modules (default)
     -o /lib/modules/2.4.22-pre6/ (default)
     -m /boot/System.map-2.4.22-pre6 (default)

Warning: You did not tell me where to find symbol information.  I will
assume that the log matches the kernel and modules that are running
right now and I'll use the default options above for symbol resolution.
If the current kernel and/or modules do not match the log, you can get
more accurate output by telling me the kernel version and where to find
map, modules, ksyms etc.  ksymoops -h explains the options.

Warning (compare_maps): mismatch on symbol snd_pcm_devices  , snd-pcm says e0bd2f80, /lib/modules/2.4.22-pre6/kernel/sound/acore/snd-pcm.o says e0bd2b40.  Ignoring /lib/modules/2.4.22-pre6/kernel/sound/acore/snd-pcm.o entry
Warning (compare_maps): ip_conntrack symbol GPLONLY_ip_conntrack_expect_find_get not found in /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o.  Ignoring /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o entry
Warning (compare_maps): ip_conntrack symbol GPLONLY_ip_conntrack_expect_put not found in /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o.  Ignoring /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o entry
Warning (compare_maps): ip_conntrack symbol GPLONLY_ip_conntrack_find_get not found in /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o.  Ignoring /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o entry
Warning (compare_maps): ip_conntrack symbol GPLONLY_ip_conntrack_put not found in /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o.  Ignoring /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o entry
Warning (compare_maps): mismatch on symbol ip_conntrack_hash  , ip_conntrack says e098b034, /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o says e098aa80.  Ignoring /lib/modules/2.4.22-pre6/kernel/net/ipv4/netfilter/ip_conntrack.o entry
Warning (compare_maps): mismatch on symbol md_size  , md says e0a02040, /lib/modules/2.4.22-pre6/kernel/drivers/md/md.o says e0a01dc0.  Ignoring /lib/modules/2.4.22-pre6/kernel/drivers/md/md.o entry
Warning (compare_maps): mismatch on symbol mddev_map  , md says e0a01840, /lib/modules/2.4.22-pre6/kernel/drivers/md/md.o says e0a015c0.  Ignoring /lib/modules/2.4.22-pre6/kernel/drivers/md/md.o entry
Warning (compare_maps): mismatch on symbol snd_ecards_limit  , snd says e099f960, /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o says e099f6e0.  Ignoring /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o entry
Warning (compare_maps): mismatch on symbol snd_major  , snd says e099f964, /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o says e099f6e4.  Ignoring /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o entry
Warning (compare_maps): mismatch on symbol snd_mixer_oss_notify_callback  , snd says e099f9c0, /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o says e099f740.  Ignoring /lib/modules/2.4.22-pre6/kernel/sound/acore/snd.o entry
Warning (compare_maps): mismatch on symbol usb_devfs_handle  , usbcore says e096e678, /lib/modules/2.4.22-pre6/kernel/drivers/usb/usbcore.o says e096e0b8.  Ignoring /lib/modules/2.4.22-pre6/kernel/drivers/usb/usbcore.o entry
EIP:    0010:[<c011b14f>]
Using defaults from ksymoops -t elf32-i386 -a i386
Call Trace:    [<e0972d8e>] [<c01e312f>] [<e09741e7>] [<c0109509>] [<c01097fa>] [<c0117149>] [<c010c718>] [<e0bb15f2>] [<e0bb25ac>] [<e0bb2a71>] [<c014c257>] [<c0131734>] [<c0134992>] [<c0134cce>] [<c0149f69>] [<c0134d93>] [<c0107b0f>]
Warning (Oops_read): Code line not seen, dumping what data is available

>>EIP; c011b14f <__wake_up+8f/d0>   <=====
Trace; e0972d8e <[usb-ohci]dl_del_list+4ce/520>
Trace; c01e312f <scrup+14f/160>
Trace; e09741e7 <[usb-ohci]hc_interrupt+1c7/350>
Trace; c0109509 <handle_IRQ_event+69/a0>
Trace; c01097fa <do_IRQ+ea/190>
Trace; c0117149 <smp_apic_timer_interrupt+129/130>
Trace; c010c718 <call_do_IRQ+5/d>
Trace; e0bb15f2 <[snd-timer]snd_timer_open+192/1f0>
Trace; e0bb25ac <[snd-timer]snd_timer_interrupt+34c/3f0>
Trace; e0bb2a71 <[snd-timer]snd_timer_dev_register+1a1/1b0>
Trace; c014c257 <fput+167/190>
Trace; c0131734 <zap_page_range+1c4/1d0>
Trace; c0134992 <unmap_fixup+1f2/200>
Trace; c0134cce <do_munmap+27e/300>
Trace; c0149f69 <filp_close+b9/120>
Trace; c0134d93 <sys_munmap+43/70>
Trace; c0107b0f <system_call+33/38>


14 warnings issued.  Results may not be reliable.

Thank you very much!



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <1_03071708263925499@cichlid.com>]
* snd-usb-audio hacking
@ 2003-07-03 18:13 Tim Small
  0 siblings, 0 replies; 6+ messages in thread
From: Tim Small @ 2003-07-03 18:13 UTC (permalink / raw)
  To: alsa-devel

Hi,

I've got a USB device which nearly works with ALSA cvs-current.  It's an 
Abit UA11, and is a pretty simple device, with one SPDIF optical in, and 
one optical out.  I'm trying to use it with an offboard HiFi DAC.  The 
particular problem with it is related to setting the sample rate, after 
being told a particular rate, the device reports a very high sample rate 
back (approx 128k). 

Playback sort of works at this rate, using OSS emulation - it looks like 
the device down-samples to 48kHz.  I occasionally get oopses under 
2.4.21, I can't get any output from the device under 2.5.74 ("cannot 
submit datapipe for urb 0, err = -22").  My other USB audio device - a 
stereo-link SL1200, doesn't give any output on this kernel either.

I'm going to try to get the device working with 2.4.22-pre2, but I just 
wanted to check if this sounded like a sensible thing to do?   My test 
hardware is a Celeron 300, on an Intel 440LX motherboard (uhci).  The 
device works pretty well under Windows2000, and Windows98 on the same 
hardware (although the sample rate seems to wander about a bit, and this 
causes reclocking problems with one of my DACs), and I've got a setup 
USB trace under w98, using snoopypro  - 
http://sourceforge.net/projects/usbsnoop/

Is this the right place to be asking these questions, (or should I go 
off to the usb dev lists etc.?)..

Cheers,

Tim.



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01

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

end of thread, other threads:[~2003-07-21 15:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-17 15:18 snd-usb-audio hacking Andrew Burgess
2003-07-17 18:21 ` Takashi Iwai
  -- strict thread matches above, loose matches on Subject: below --
2003-07-18 18:43 Andrew Burgess
2003-07-21 15:03 ` Takashi Iwai
     [not found] <1_03071708263925499@cichlid.com>
2003-07-17 18:06 ` Andrew Burgess
2003-07-03 18:13 Tim Small

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.