: asfxload + aconnect called before dsp used causes dsp to be locked
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=809>
======================================================================
Reported By: vinyvat
Assigned To:
======================================================================
Project: ALSA - driver Issue ID: 809 Category: PCI - emu10k1 Reproducibility: always Severity: major Priority: normal Status: new Distribution: Debian testing Kernel Version: 2.6.8.1 ====================================================================== Date Submitted: 01-12-2005 09:34 CET Last Modified: 01-13-2005 06:42 CET
======================================================================
Summary: asfxload + aconnect called before dsp used causes
dsp to be locked
Description:
PS: This bug is present in the alsa version in stock kernel 2.6.8.1 up to 1.0.8-rc2.
For convienience I like to have my wavetable loaded and midi connections setup during bootup so I can use my midi keyboard by just turning on the computer.
This worked OK with stock kernel 2.6.3 ( and whatever alsa version came with it ).
Recently upgraded to stock 2.6.8.1 which had the modprobe snd-emu10k1-synth freeze bug, but was able to work around this by launching my wavetable loading script post the modprobe. Play back from my keyboard worked great.
This is when I began to notice apps that accessed the dsp reporting that they were locked out ( and did not produce any sound ). First would be arts when kde started up, and then any dvd playing app ( ogle, mplayer, xine, all of them setup to use alsa ).
Strangely though, alsaplayer still worked despite the fact that the other apps didn't - could it be using some other way of plugin to the emu10k1 mixer ?
Have tried upgrading to alsa-driver-1.0.7 ( which didn't play any wavetable sounds at all - strange ), then to alsa-driver-1.0.8-rc2 ( which does play wavetable sounds ) but none of these fixes this problem.
If I change the order of things - have artsd start up, start a dvd playback, and then call asfxload + aconnect, then everything is mixed and sounds great.
======================================================================
----------------------------------------------------------------------
vinyvat - 01-12-05 18:50
----------------------------------------------------------------------
Done a little more testing, and this bug is dependant on the size of the SF2. the One I put in the "reproduction" notes is huge -
https://bugtrack.alsa-project.org/alsa-bug/view.php?id=31#127 Mb whereas if I use a smaller one the bug does not happen.
Will update with exact reproduction steps when I get from work.
----------------------------------------------------------------------
vinyvat - 01-13-05 06:42
----------------------------------------------------------------------
Got some rock-solid reproduction:
1. 2 files needed to reproduce:
Need a very large SF2 file. The very nice public one I'm using, "FluidR3 GM.SF2" at https://bugtrack.alsa-project.org/alsa-bug/view.php?id=37#148MB, is at
http://inanna.ecs.soton.ac.uk/~swh/fluid-unpacked/. Cannot reproduce the bug when using a smaller SF2 ( such as Creative's default 2gmgsmt.sf2 at https://bugtrack.alsa-project.org/alsa-bug/view.php?id=2#2MB ).
Some small *.wav file that you can cat > /dev/dsp and hear a nice sound. I'm using rosegarden4's testfiles/audio/8bit-symbal.wav
2. To reproduce:
# as root: modprobe snd-emu10k1 modprobe snd-pcm-oss modprobe snd-emu10k1-synth alsactl restore
# as user that has permission to alsa /dev/XXX devices: cat 8bit-symbal.wav > /dev/dsp # verify you hear a sound asfxload "FluidR3 GM.SF2" aconnect 64:0 65:0 cat 8bit-symbal.wav > /dev/dsp
BUG:
No sound is heard, and I get the console error:
"cat: write error: Cannot allocate memory"
Issue History
Date Modified Username Field Change
======================================================================
01-12-05 09:34 vinyvat New Issue 01-12-05 09:34 vinyvat Distribution => Debian testing 01-12-05 09:34 vinyvat Kernel Version => 2.6.8.1 01-12-05 15:16 tiwai Note Added: 0003171 01-12-05 18:50 vinyvat Note Added: 0003175 01-13-05 06:42 vinyvat Note Added: 0003182
======================================================================
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt