Skip to contentSkip to conversation

usb-audio - kernel oops 2.5.72

DISCUSSION [email protected] 2 participants 7 messages Jun 23, 2003 – Jun 29, 2003

lore
Share & tools
lore
#0 lore raw

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

So far, this is the best I can do:

JACK compiled with System V SHM support
loading driver ..
creating alsa driver ... usb-audio|1024|3|44100|swmon|swmeter|soft-mode open
Rectangular dithering at 16 bits
port alsa_pcm:capture_1 has mixdown = 0x40017e70
port alsa_pcm:capture_2 has mixdown = 0x40017e70
port alsa_pcm:playback_1 has mixdown = 0x40017e70
port alsa_pcm:playback_2 has mixdown = 0x40017e70
starting engine
ALSA lib pcm_hw.c:494:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
could not start playback (Broken pipe)
cannot start driver
cannot start main JACK thread
jack main caught signal 15

-----------------------------
With this oops in dmesg:
-----------------------------
bad: scheduling while atomic!

Call Trace:
 [<c01175a0>] schedule+0x410/0x420
 [<c01218e2>] add_timer+0x52/0x90
 [<c01224d5>] schedule_timeout+0x55/0xa0
 [<c0122470>] process_timeout+0x0/0x10
 [<c02ebf97>] usb_start_wait_urb+0x97/0x1b0
 [<c0117600>] default_wake_function+0x0/0x20
 [<c0117600>] default_wake_function+0x0/0x20
 [<c02ec106>] usb_internal_control_msg+0x56/0x70
 [<c02ec1a1>] usb_control_msg+0x81/0xa0
 [<c0345f46>] init_usb_sample_rate+0xb6/0x130
 [<c0346141>] set_format+0x181/0x2f0
 [<c03462fe>] snd_usb_pcm_prepare+0x1e/0x40
 [<c0321f3c>] snd_pcm_do_prepare+0xc/0x40
 [<c03214a0>] snd_pcm_action_group+0xa0/0x160
 [<c0321642>] snd_pcm_action_lock_irq+0x32/0xa0
 [<c0321fe2>] snd_pcm_prepare+0x42/0x60
 [<c03241ac>] snd_pcm_playback_ioctl1+0x4c/0x400
 [<c021d8b0>] write_chan+0x0/0x240
 [<c014c4c0>] vfs_write+0xb0/0x100
 [<c015d9f0>] sys_ioctl+0xf0/0x270
 [<c014c5a6>] sys_write+0x46/0x50
 [<c0109067>] syscall_call+0x7/0xb

ALSA sound/usb/usbaudio.c:682: cannot submit datapipe for urb 0, err = -22
----------------------

More data, config files on request.
cliffw

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#1 lore raw

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 6 lines · [email protected] wrote:

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

i fixed a bug in usb-audio driver on the cvs now.
there are some calls of functions which may call schedule() in the spinlock.

please try the cvs version.

ciao,

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#2 lore raw
Quoted 9 lines

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 6 lines · [email protected] wrote:

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

Quoted 5 lines

i fixed a bug in usb-audio driver on the cvs now.
there are some calls of functions which may call schedule() in the spinlock.

please try the cvs version.

Am attempting, so far compile errors in serialmidi....am getting the whole tree now.
Will try again tomorrow.
cliffw

Quoted 6 lines

ciao,

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#3 lore raw

At Mon, 23 Jun 2003 23:54:46 -0700,

Quoted 10 lines · [email protected] wrote:
Quoted 10 lines

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 6 lines · [email protected] wrote:

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

Quoted 7 lines
Quoted 5 lines

i fixed a bug in usb-audio driver on the cvs now.
there are some calls of functions which may call schedule() in the spinlock.

please try the cvs version.

Am attempting, so far compile errors in serialmidi....am getting the whole tree now.

you don't need alsa-driver tree to compile the ALSA on 2.5.x (unless you use the drivers in it). the codes in alsa-kernel tree are ready for 2.5 kernel. that is, copy the files and directories to 2.5 tree and build the modules there.

it would be nice to have a simple sync script for that...

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#4 lore raw
Quoted 20 lines

At Mon, 23 Jun 2003 23:54:46 -0700,

Quoted 10 lines · [email protected] wrote:
Quoted 10 lines

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 6 lines · [email protected] wrote:

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

Quoted 7 lines
Quoted 5 lines

i fixed a bug in usb-audio driver on the cvs now.
there are some calls of functions which may call schedule() in the spinlock.

please try the cvs version.

Am attempting, so far compile errors in serialmidi....am getting the whole tree now.

Quoted 6 lines

you don't need alsa-driver tree to compile the ALSA on 2.5.x (unless you use the drivers in it). the codes in alsa-kernel tree are ready for 2.5 kernel. that is, copy the files and directories to 2.5 tree and build the modules there.

it would be nice to have a simple sync script for that...

Well, if you want simple, i can do that :)
This appears to be working for me....(i wait for the compile, again)

---------------------------------
alsa.cvs.copy
-----------------------------
#!/bin/sh
# A very simple script to copy alsa-kernel cvs where i want it

if [ ! $1 ]; then
echo "Need arg for destination directory"
exit 1
fi

if [ -e $1 ]; then

        DEST=$1

else
echo "Destination $1 doesn't appear to exist" exit 1
fi

HERE=pwd
BASE=basename $HERE
echo $HERE $BASE
if [ $BASE != "alsa-kernel" ]; then
echo "Must execute me inside alsa-kernel!" exit 1
fi

echo "Copying alsa-kernel cvs to $DEST"

# I could be really cute here and copy globs, but
# That Would Not Be Safe
# So, we'll be slow, simple and careful
# CHANGE these lists if needed

SOUNDDIRS="drivers isa parisc ppc usb arm i2c pci scripts sparc core oss pcmcia synth"
SOUNDFILES="last.c sound_core.c sound_firmware.c Makefile Kconfig"

#Copy the Documentation to the Documentation

cp -r Documentation/* ${DEST}/Documentation/

# Copy the include files to include/sound

cp -r include/* ${DEST}/include/sound

for i in $SOUNDDIRS
do

        cp -r ${i}/* ${DEST}/sound/${i}/
done
for i in $SOUNDFILES
do
        cp ${i} ${DEST}/sound/${i}

done

exit 0
-------------------------
end

cliffw

Quoted 4 lines

Takashi

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#5 lore raw
In reply to Takashi Iwai
Quoted 7 lines

At Mon, 23 Jun 2003 23:54:46 -0700,

Quoted 5 lines · [email protected] wrote:
Quoted 5 lines

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 2 lines · [email protected] wrote:
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line

Am attempting to get linux-2.5.72 + snd-usb-audio happening.

please try the cvs version.

Takashi

ALSA cvs + linux-2.5.72-mm3
-----------------
Startup and jackd start - dmesg
jackd --tmpdir=/mnt/ramfs -v -d alsa -d usb-audio:0,0 -r 44100
----------------------------
ehci_hcd 0000:00:10.3: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT hub 1-0:0: port 1, status 501, change 1, 480 Mb/s
hub 1-0:0: debounce: port 1: delay 100ms stable 4 status 0x501 hub 1-0:0: port 1 not reset yet, waiting 10ms
hub 1-0:0: port 1 not reset yet, waiting 10ms
ehci_hcd 0000:00:10.3: port 1 full speed --> companion
ehci_hcd 0000:00:10.3: GetStatus port 1 status 003801 POWER OWNER sig=j CONNECT
drivers/usb/host/uhci-hcd.c: d400: wakeup_hc
hub 2-0:0: port 1, status 101, change 1, 12 Mb/s
hub 2-0:0: debounce: port 1: delay 100ms stable 4 status 0x101 hub 2-0:0: new USB device on port 1, assigned address 3
usb 2-1: new device strings: Mfr=0, Product=1, SerialNumber=0
usb 2-1: Product: USB Audio
drivers/usb/core/usb.c: usb_hotplug
usb 2-1: usb_new_device - registering interface 2-1:0 drivers/usb/core/usb.c: usb_hotplug
snd-usb-audio 2-1:0: usb_device_probe
snd-usb-audio 2-1:0: usb_device_probe - got id drivers/usb/core/usb.c: snd-usb-audio driver claimed interface c132652c drivers/usb/core/usb.c: snd-usb-audio driver claimed interface c1326658 usb 2-1: usb_new_device - registering interface 2-1:1 drivers/usb/core/usb.c: usb_hotplug
usb 2-1: usb_new_device - registering interface 2-1:2 drivers/usb/core/usb.c: usb_hotplug
ALSA sound/usb/usbaudio.c:685: cannot submit datapipe for urb 0, err = -22
----------------------------------------
jackd
--------------------------------------
JACK compiled with System V SHM support
running with uid=500 and euid=0, will not try to use capabilites 1277 waiting for signals
loading driver ..
new client: alsa_pcm, id = 1 type 1 @ 0x80580e8 fd = -1
creating alsa driver ... usb-audio:0,0|1024|2|44100|swmon|swmeter|rt open
port alsa_pcm:capture_1 has mixdown = 0x40017e70
registered port alsa_pcm:capture_1, offset = 4096
port alsa_pcm:capture_2 has mixdown = 0x40017e70
registered port alsa_pcm:capture_2, offset = 8192
port alsa_pcm:playback_1 has mixdown = 0x40017e70
registered port alsa_pcm:playback_1, offset = 0
port alsa_pcm:playback_2 has mixdown = 0x40017e70
registered port alsa_pcm:playback_2, offset = 0
++ jack_rechain_graph():
client alsa_pcm: internal client, execution_order=0.
-- jack_rechain_graph()
starting engine
ALSA lib pcm_hw.c:494:(snd_pcm_hw_start) SNDRV_PCM_IOCTL_START failed: Broken pipe
could not start playback (Broken pipe)
----------------------------------
aplay -D usb-audio:0,0 Peak.wav
Playing WAVE 'Peek.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Mono
aplay: set_params:810: Channels count non available
---------------------------------------
ALSA sound/usb/usbaudio.c:685: cannot submit datapipe for urb 0, err = -22
------------------------------------------
cliffw

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php

#6 lore raw
In reply to Takashi Iwai
Quoted 9 lines

At Sun, 22 Jun 2003 20:45:09 -0700,

Quoted 6 lines · [email protected] wrote:

Am attempting to get linux-2.5.72 + snd-usb-audio happening. Results have been poor. Machine is VIA C3, ALSA + jack working fine with the built-in via audio. Tried various kernels, real ugly failures with 2.5.70, also have tried 2.5.72-mm2.

Quoted 7 lines

i fixed a bug in usb-audio driver on the cvs now.
there are some calls of functions which may call schedule() in the spinlock.

please try the cvs version.

CVS version does not throw the oops, but the device still fails. 2.5.73 stock still has the oops.
2.5.73 + cvs does not throw the oops, but the devices i've tried are still not connecting properly.
Appears to be an issue at usb_submit_urb(), but i'm not deep enough to figure it out.
Will gladly furnish more data upon request, or test patches. Please advise.

Current errors (dmesg):
sb 2-1: usb_new_device - registering interface 2-1:1 drivers/usb/core/usb.c: usb_hotplug
usb 2-1: usb_new_device - registering interface 2-1:2 drivers/usb/core/usb.c: usb_hotplug
ALSA sound/usb/usbaudio.c:1080: setting usb interface 1:1
ALSA sound/usb/usbaudio.c:685: cannot submit datapipe for urb 0, err = -22
usbfs: USBDEVFS_CONTROL failed cmd lsusb dev 3 rqt 128 rq 6 len 256 ret -32 cliffw

Quoted 5 lines

ciao,

Takashi

Quoted 10 lines

-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
Alsa-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

-------------------------------------------------------
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