All of lore.kernel.org
 help / color / mirror / Atom feed
* aoss failures under Alsa-1.0.0rc1
@ 2003-12-04 13:06 Mark Knecht
  2003-12-04 13:12 ` Mark Knecht
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Mark Knecht @ 2003-12-04 13:06 UTC (permalink / raw)
  To: Alsa-Devel

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/

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-04 13:06 aoss failures under Alsa-1.0.0rc1 Mark Knecht
@ 2003-12-04 13:12 ` Mark Knecht
  2003-12-04 13:15 ` Erik Inge Bolsø
  2003-12-04 13:23 ` Takashi Iwai
  2 siblings, 0 replies; 12+ messages in thread
From: Mark Knecht @ 2003-12-04 13:12 UTC (permalink / raw)
  To: Alsa-Devel

On Thu, 2003-12-04 at 05:06, Mark Knecht wrote:
> 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/

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-04 13:06 aoss failures under Alsa-1.0.0rc1 Mark Knecht
  2003-12-04 13:12 ` Mark Knecht
@ 2003-12-04 13:15 ` Erik Inge Bolsø
  2003-12-04 20:28   ` Mark Knecht
  2003-12-04 13:23 ` Takashi Iwai
  2 siblings, 1 reply; 12+ messages in thread
From: Erik Inge Bolsø @ 2003-12-04 13:15 UTC (permalink / raw)
  To: Mark Knecht; +Cc: Alsa-Devel

On Thu, 4 Dec 2003, Mark Knecht wrote:
>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/

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-04 13:06 aoss failures under Alsa-1.0.0rc1 Mark Knecht
  2003-12-04 13:12 ` Mark Knecht
  2003-12-04 13:15 ` Erik Inge Bolsø
@ 2003-12-04 13:23 ` Takashi Iwai
  2003-12-04 14:39   ` Mark Knecht
  2 siblings, 1 reply; 12+ messages in thread
From: Takashi Iwai @ 2003-12-04 13:23 UTC (permalink / raw)
  To: Mark Knecht; +Cc: Alsa-Devel

At Thu, 04 Dec 2003 05:06:37 -0800,
Mark Knecht wrote:
> 
> 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/

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

* RE: aoss failures under Alsa-1.0.0rc1
  2003-12-04 13:23 ` Takashi Iwai
@ 2003-12-04 14:39   ` Mark Knecht
  0 siblings, 0 replies; 12+ messages in thread
From: Mark Knecht @ 2003-12-04 14:39 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: Alsa-Devel

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

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-04 13:15 ` Erik Inge Bolsø
@ 2003-12-04 20:28   ` Mark Knecht
  2003-12-05 13:10     ` Clemens Ladisch
  0 siblings, 1 reply; 12+ messages in thread
From: Mark Knecht @ 2003-12-04 20:28 UTC (permalink / raw)
  To: Erik Inge Bolsø; +Cc: Alsa-Devel

On Thu, 2003-12-04 at 05:15, Erik Inge Bolsø wrote:
> On Thu, 4 Dec 2003, Mark Knecht wrote:
> >pcm.playback_5_6 {
> >          type dshare
> >          slave hdsp


> Uhmm... 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/

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-04 20:28   ` Mark Knecht
@ 2003-12-05 13:10     ` Clemens Ladisch
  2003-12-05 15:05       ` Mark Knecht
  0 siblings, 1 reply; 12+ messages in thread
From: Clemens Ladisch @ 2003-12-05 13:10 UTC (permalink / raw)
  To: Mark Knecht; +Cc: Erik Inge Bolsø, Alsa-Devel

Mark Knecht wrote:
> On Thu, 2003-12-04 at 05:15, Erik Inge Bolsø wrote:
> > On Thu, 4 Dec 2003, Mark Knecht wrote:
> > >pcm.playback_5_6 {
> > >          type dshare
> > >          slave hdsp
>
> > Uhmm... 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.

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

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-05 13:10     ` Clemens Ladisch
@ 2003-12-05 15:05       ` Mark Knecht
  2003-12-05 15:53         ` Mark Knecht
  0 siblings, 1 reply; 12+ messages in thread
From: Mark Knecht @ 2003-12-05 15:05 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-Devel

On Fri, 2003-12-05 at 05:10, Clemens Ladisch wrote:

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

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

* RE: aoss failures under Alsa-1.0.0rc1
  2003-12-05 15:05       ` Mark Knecht
@ 2003-12-05 15:53         ` Mark Knecht
  2003-12-05 17:06           ` Clemens Ladisch
  0 siblings, 1 reply; 12+ messages in thread
From: Mark Knecht @ 2003-12-05 15:53 UTC (permalink / raw)
  To: Mark Knecht, Clemens Ladisch; +Cc: Alsa-Devel

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

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

* Re: aoss failures under Alsa-1.0.0rc1
  2003-12-05 15:53         ` Mark Knecht
@ 2003-12-05 17:06           ` Clemens Ladisch
  2003-12-05 17:56             ` Mark Knecht
  2003-12-05 21:28             ` Mark Knecht
  0 siblings, 2 replies; 12+ messages in thread
From: Clemens Ladisch @ 2003-12-05 17:06 UTC (permalink / raw)
  To: Mark Knecht; +Cc: Alsa-Devel

Mark Knecht wrote:
> 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/

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

* RE: aoss failures under Alsa-1.0.0rc1
  2003-12-05 17:06           ` Clemens Ladisch
@ 2003-12-05 17:56             ` Mark Knecht
  2003-12-05 21:28             ` Mark Knecht
  1 sibling, 0 replies; 12+ messages in thread
From: Mark Knecht @ 2003-12-05 17:56 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-Devel

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

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

* RE: aoss failures under Alsa-1.0.0rc1
  2003-12-05 17:06           ` Clemens Ladisch
  2003-12-05 17:56             ` Mark Knecht
@ 2003-12-05 21:28             ` Mark Knecht
  1 sibling, 0 replies; 12+ messages in thread
From: Mark Knecht @ 2003-12-05 21:28 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Alsa-Devel

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

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

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

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-04 13:06 aoss failures under Alsa-1.0.0rc1 Mark Knecht
2003-12-04 13:12 ` Mark Knecht
2003-12-04 13:15 ` Erik Inge Bolsø
2003-12-04 20:28   ` Mark Knecht
2003-12-05 13:10     ` Clemens Ladisch
2003-12-05 15:05       ` Mark Knecht
2003-12-05 15:53         ` Mark Knecht
2003-12-05 17:06           ` Clemens Ladisch
2003-12-05 17:56             ` Mark Knecht
2003-12-05 21:28             ` Mark Knecht
2003-12-04 13:23 ` Takashi Iwai
2003-12-04 14:39   ` Mark Knecht

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.