aoss failures under Alsa-1.0.0rc1
bash-2.05b$ aoss xmms
(At this point the xmms gui opens. I then press play)
xmms: alsa-oss.c:222: oss_dsp_hw_params: Assertion `err >= 0' failed. /usr/bin/aoss: line 9: 2841 Aborted LD_PRELOAD=${exec_prefix}/lib/libaoss.so $*
bash-2.05b$
Contents of my .asoundrc file:
pcm.hdsp {
type hw
card 0
}ctl.hdsp {
type hw
card 0
}pcm_slave.hdsp {
pcm "hw:0"
channels 26
}pcm.playback_5_6 {
type dshare
slave hdsp
ipc_key 314159265 # some unique number
ipc_key_add_uid yes # "no" to let multiple users share it
bindings {
0 5
1 6
}
}pcm.dsp0 {
type plug
slave.pcm playback_5_6
}-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 9 lines · Mark Knecht
bash-2.05b$ aoss xmms
(At this point the xmms gui opens. I then press play)
xmms: alsa-oss.c:222:
oss_dsp_hw_params: Assertion `err >= 0' failed./usr/bin/aoss: line 9: 2841 Aborted LD_PRELOAD=${exec_prefix}/lib/libaoss.so $*
bash-2.05b$
BTW - hdspconf says that aoss xmms sets the sample rate to 48K when this fails, even though the media is recorded at 44.1K.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 10 lines · Mark Knecht
pcm.playback_5_6 {
type dshare
slave hdsp
ipc_key 314159265 # some unique number
ipc_key_add_uid yes # "no" to let multiple users share it
bindings {
0 5
1 6
}
}Uhmm... for _playback_, shouldn't that be "type dmix"? Or am I confused again?
--
Erik I. Bolsø | email: <knan at mo.himolde.no>
The UNIX philosophy basically involves giving you enough rope to hang yourself. And then a couple of feet more, just to be sure.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 9 lines · Erik Inge Bolsø
Quoted 3 lines · Mark Knecht
pcm.playback_5_6 {
type dshare
slave hdspUhmm... for _playback_, shouldn't that be "type dmix"? Or am I confused again?
I tried dmix instead of dshare but get the same results. I guess I hope that Clemens or possibly Thomas jumps in with some ideas. I don't know if this is an Alsa problem, a driver problem, or just something that will never work because of my card's capabilities?
If the later is the case, then is this something that should/could be better spelled out so that well meaning but uneducated folks like me don;t keep bothering you guys?
Thanks,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 10 lines · Mark Knecht
Quoted 7 lines · Erik Inge Bolsø
Quoted 3 lines · Mark Knecht
pcm.playback_5_6 {
type dshare
slave hdspUhmm... for _playback_, shouldn't that be "type dmix"? Or am I confused again?
I tried dmix instead of dshare but get the same results.
dshare allows its clients to share separate channels, dmix allows them to access the same channels.
Quoted 2 lines
I don't know if this is an Alsa problem, a driver problem, or just something that will never work because of my card's capabilities?
An aoss problem, I think. Are you using the latest CVS version? (You can update this single package independantly of the other ALSA packages.)
Regards,
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 7 lines · Clemens Ladisch
Quoted 2 lines
I don't know if this is an Alsa problem, a driver problem, or just something that will never work because of my card's capabilities?
An aoss problem, I think. Are you using the latest CVS version? (You can update this single package independantly of the other ALSA packages.)
I am using 1.0.0.rc1 on Gentoo with a 2.4.20-r9 kernel. I got the same behavior on 0.9.8 and reported it but never got a response.
Thanks,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 4 lines
I am using 1.0.0.rc1 on Gentoo with a 2.4.20-r9 kernel. I got the same behavior on 0.9.8 and reported it but never got a response.
I didn't see an announcement, but the Alsa page now shows 1.0.0rc2. Are you suggesting that this might actually have been fixed in rc2? If so, what was the cause?
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 3 lines · Mark Knecht
I didn't see an announcement, but the Alsa page now shows 1.0.0rc2. Are you suggesting that this might actually have been fixed in rc2? If so, what was the cause?
There is a change in alsa-oss.c, immediately after rc1 came out, with the following log message:
- avoid the assert in snd_pcm_drain().
- fixed the possible segfault at the wrong release of resources.
- more debug messages.
HTH
Clemens
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 8 lines
There is a change in
alsa-oss.c, immediately after rc1 came out, with the following log message:- avoid the assert in
snd_pcm_drain().
- fixed the possible segfault at the wrong release of resources.
- more debug messages.
Clemens,
Thanks. In this case I will either make the effort to modify the Gentoo
ebuild myself, or wait for Gentoo to catch up. They were only 2 days behind this time on rc1 making me think an Alsa developer must be right in the ebuild loop these days.
Thanks for all your help. Hopefully we can get this working soon.
Cheers,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 11 lines
There is a change in
alsa-oss.c, immediately after rc1 came out, with the following log message:- avoid the assert in
snd_pcm_drain().
- fixed the possible segfault at the wrong release of resources.
- more debug messages.HTH
Clemens
Clemens,
rc2 is not working yet, but it is much improved and not crashing. I now
get a warning in the terminal when I run 'aoss xmms' from oss_open() saying it cannot find /dev/sound/dsp, and a nice (I think xmms) dialog box asking me to check that I have the right output plugin, no programs are blocking and that the soundcard is configured properly.
So, what do I need to do to solve this? /dev/sound/dsp seems to exist,
but it's one of those yellow special file thingies.
How about something in .asoundrc? My oss playback definition is for
pcm.dsp0. I'm remote from the machine and looking at the xmms display, but I tried changing the OSS thing we were working on to pcm.dsp and xmms seems to be working, in the sense that it isn't crashing. However, hdspmixer (being run over an ssh connection!) looks like the audio is on playback_1/2 instead playback_5/6, so this isn't completely right yet.
And, since I'm remote I don't know what this sounds like, but I presume
it's OK. I'll let you know in 5-6 hours.
Anyway, rc2 is much better. aoss is happy even if I'm not. (YET!!!)
Thanks,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
At Thu, 04 Dec 2003 05:06:37 -0800,
Quoted 9 lines · Mark Knecht
bash-2.05b$ aoss xmms
(At this point the xmms gui opens. I then press play)
xmms: alsa-oss.c:222:
oss_dsp_hw_params: Assertion `err >= 0' failed./usr/bin/aoss: line 9: 2841 Aborted LD_PRELOAD=${exec_prefix}/lib/libaoss.so $*
bash-2.05b$
fixed recently - at least it won't abort but returns an error. but i'm not sure whether the OSS emulation with dmix now works in your case...
Takashi
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
Quoted 11 lines
Quoted 6 lines
(At this point the xmms gui opens. I then press play)
xmms: alsa-oss.c:222:
oss_dsp_hw_params: Assertion `err >= 0' failed./usr/bin/aoss: line 9: 2841 Aborted LD_PRELOAD=${exec_prefix}/lib/libaoss.so $*
bash-2.05b$fixed recently - at least it won't abort but returns an error. but i'm not sure whether the OSS emulation with dmix now works in your case...
Takashi,
Thanks for the response. Does it make sense to change dshare to dmix? The
goal was to get OSS emulation to only use 2 channels of my HDSP 9652. Or are you saying I need rc2?
Also, why does aoss change the sample rate from 44.1K to 48K?
Thanks,
Mark
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/