All of lore.kernel.org
 help / color / mirror / Atom feed
* Fw: [Bug 76413] arts does not follow ALSA API
@ 2004-03-19 15:23 Florian Schmidt
  2004-03-19 17:02 ` James Courtier-Dutton
  0 siblings, 1 reply; 9+ messages in thread
From: Florian Schmidt @ 2004-03-19 15:23 UTC (permalink / raw)
  To: alsa-devel

He sounds pissed..  :) If you get pissed by these forwards, please tell
me.. I figured they might be of interest..

Begin forwarded message:

Date: 19 Mar 2004 15:05:31 -0000
From: Allan Sandfeld <kde@carewolf.com>
To: mista.tapas@gmx.net
Subject: [Bug 76413] arts does not follow ALSA API 


------- You are receiving this mail because: -------
You are a voter for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=76413      




------- Additional Comments From kde carewolf com  2004-03-19 16:05
-------
CVS commit by carewolf: 

After venting my fury I calmed down and looked at the dmix-code. It
seems 
it is really more borken than broken, and nothing we can't work around.

- Make aRts work with dmix. Two important changes:
  1. Dmix uses read-events to signify write-events, so we need to
autodetect 
     what kind of crack ALSA is smoking today.
  2. Dmix needs to be started like a recorder even if this is contrary
     to the ALSA API documentation.

If everything works like expected I will backport and close bugs 76413
and 70802.

CCMAIL: 76413 bugs kde org
CCMAIL: 70802 bugs kde org


  M +110 -48   audioioalsa9.cc   1.6



-- 
kT



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Fw: [Bug 76413] arts does not follow ALSA API
@ 2004-03-19 15:09 Florian Schmidt
  0 siblings, 0 replies; 9+ messages in thread
From: Florian Schmidt @ 2004-03-19 15:09 UTC (permalink / raw)
  To: alsa-devel

might be of interest to you guys... 

Begin forwarded message:

Date: 19 Mar 2004 13:50:08 -0000
From: Allan Sandfeld <kde@carewolf.com>
To: mista.tapas@gmx.net
Subject: [Bug 76413] arts does not follow ALSA API 


------- You are receiving this mail because: -------
You are a voter for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=76413      
kde carewolf com changed:

           What    |Removed                     |Added
-----------------------------------------------------------------------
-----
             Status|NEW                         |UNCONFIRMED



------- Additional Comments From kde carewolf com  2004-03-19 14:50
-------
Okay, having researched the problem. The reason that dmix doesnt work
with aRts has nothing to do with how we use the alsa API because all our
assumptions are still true. snd_pcm_poll_descriptors() returns exactly
one descriptor, but calling select upon this descriptor no matter how it
is done will _never_ return. In other words the reason it doesnt work is
that dmix is broken!

I've looked a bit at how other projects use ALSA, and it seems we could
make it work if we used another API and disregarded the broken
descriptors alltogether, in other words if we rewrite the entire
audio-subsystem of aRts to work-around a bug in ALSA (I have no
intention of doing so).

Btw. I did make playback over dmix work, but the it required using
timing events rather than IO-events and thus CPU-usage was unacceptable.



-- 
kT



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Fw: [Bug 76413] arts does not follow ALSA API
@ 2004-03-09 22:03 Florian Schmidt
  0 siblings, 0 replies; 9+ messages in thread
From: Florian Schmidt @ 2004-03-09 22:03 UTC (permalink / raw)
  To: alsa-devel


Might be of interest..

Begin forwarded message:

Date: 3 Mar 2004 12:13:15 -0000
From: Allan Sandfeld <kde@carewolf.com>
To: mista.tapas@gmx.net
Subject: [Bug 76413] arts does not follow ALSA API 


------- You are receiving this mail because: -------
You are a voter for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=76413      




------- Additional Comments From kde carewolf com  2004-03-03 13:13
-------
We would be happy to accept your patches. I've started to work on this
bug, but I know neither ALSA nor much of aRts.

Currently the ALSA-plugin in aRts only calls snd_pcm_poll_descriptors,
and uses the first returned fd there for later use in select. If I
understand you correctly we need to be able to handle multiple
file-descriptors, and can't be garantied that they have the right
direction?

Now how do we tell which of the returned descriptors are writefds and
which are readfds? The only solution I can think of right now is to
checks the revents and hope all the writable ones are already in a
POLLOUT state.

I am also worried about the ALSA-documentation which states the fds
returned by snd_pcm_poll_descriotors might be bogus.



-- 
to sign or not to sign, that is the question



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

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

end of thread, other threads:[~2004-03-20  0:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-19 15:23 Fw: [Bug 76413] arts does not follow ALSA API Florian Schmidt
2004-03-19 17:02 ` James Courtier-Dutton
2004-03-19 19:05   ` Jaroslav Kysela
2004-03-19 20:30     ` James Courtier-Dutton
2004-03-19 23:01       ` Joerg Mayer
2004-03-20  0:00         ` James Courtier-Dutton
2004-03-20  0:39           ` Måns Rullgård
  -- strict thread matches above, loose matches on Subject: below --
2004-03-19 15:09 Florian Schmidt
2004-03-09 22:03 Florian Schmidt

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.