All of lore.kernel.org
 help / color / mirror / Atom feed
* 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

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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  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
  0 siblings, 1 reply; 9+ messages in thread
From: James Courtier-Dutton @ 2004-03-19 17:02 UTC (permalink / raw)
  To: Florian Schmidt; +Cc: alsa-devel

Florian Schmidt wrote:
> 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
> 
> 
> 
If there is a bug in alsa, we will fix it.
Can you post a small program to demonstrate the problem.

Cheers
James



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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  2004-03-19 17:02 ` James Courtier-Dutton
@ 2004-03-19 19:05   ` Jaroslav Kysela
  2004-03-19 20:30     ` James Courtier-Dutton
  0 siblings, 1 reply; 9+ messages in thread
From: Jaroslav Kysela @ 2004-03-19 19:05 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: Florian Schmidt, alsa-devel

On Fri, 19 Mar 2004, James Courtier-Dutton wrote:

> > ------- 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      
> > 
> > CCMAIL: 76413 bugs kde org
> > CCMAIL: 70802 bugs kde org
> > 
> > 
> >   M +110 -48   audioioalsa9.cc   1.6
> > 
>
> If there is a bug in alsa, we will fix it.
> Can you post a small program to demonstrate the problem.

It's not a bug, but this guy definitely wants to simplify his work.
He uses file descriptors directly without 
snd_pcm_poll_descriptors_revents(). The dmix plugin (and dshare)
are first plugins which don't return POLLOUT for playback but POLLIN
(because timer events are used as the event source).

						Jaroslav

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  2004-03-19 19:05   ` Jaroslav Kysela
@ 2004-03-19 20:30     ` James Courtier-Dutton
  2004-03-19 23:01       ` Joerg Mayer
  0 siblings, 1 reply; 9+ messages in thread
From: James Courtier-Dutton @ 2004-03-19 20:30 UTC (permalink / raw)
  To: Jaroslav Kysela; +Cc: Florian Schmidt, alsa-devel

Jaroslav Kysela wrote:
> On Fri, 19 Mar 2004, James Courtier-Dutton wrote:
> 
> 
>>>------- 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      
>>>
>>>CCMAIL: 76413 bugs kde org
>>>CCMAIL: 70802 bugs kde org
>>>
>>>
>>>  M +110 -48   audioioalsa9.cc   1.6
>>>
>>
>>If there is a bug in alsa, we will fix it.
>>Can you post a small program to demonstrate the problem.
> 
> 
> It's not a bug, but this guy definitely wants to simplify his work.
> He uses file descriptors directly without 
> snd_pcm_poll_descriptors_revents(). The dmix plugin (and dshare)
> are first plugins which don't return POLLOUT for playback but POLLIN
> (because timer events are used as the event source).
> 
> 						Jaroslav
> 
> -----
> Jaroslav Kysela <perex@suse.cz>
> Linux Kernel Sound Maintainer
> ALSA Project, SuSE Labs
> 
> 

I read the thread:
 >>>http://bugs.kde.org/show_bug.cgi?id=76413

The guys there just don't understand what you told them. If they took 
the time to actually read what you said, they could easily fix their 
problem.

Summary: -
No bug in alsa.

Cheers
James




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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  2004-03-19 20:30     ` James Courtier-Dutton
@ 2004-03-19 23:01       ` Joerg Mayer
  2004-03-20  0:00         ` James Courtier-Dutton
  0 siblings, 1 reply; 9+ messages in thread
From: Joerg Mayer @ 2004-03-19 23:01 UTC (permalink / raw)
  To: James Courtier-Dutton; +Cc: Jaroslav Kysela, Florian Schmidt, alsa-devel

On Fri, Mar 19, 2004 at 08:30:13PM +0000, James Courtier-Dutton wrote:
> The guys there just don't understand what you told them. If they took 
> the time to actually read what you said, they could easily fix their 
> problem.
> 
> Summary: -
> No bug in alsa.

Summary 2:
There seem to be quite a lot of projects that have problems to get native
alsa support right: wine, winex, arts, xmms...

How about a "alsa application developers meeting" once per month on IRC?
If that meeting would be announced on the developer mailing list of
projects that are known to use alsa, this might actually help.

The invitation should contain something along the line:
"If you have written code to use alsa, you should participate. Either because
you did it right and can help others to do so too or because you didn't and
in that case you should want to improve."

 Ciao
       Jörg
-- 
Joerg Mayer                                           <jmayer@loplof.de>
We are stuck with technology when what we really want is just stuff that
works. Some say that should read Microsoft instead of technology.


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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  2004-03-19 23:01       ` Joerg Mayer
@ 2004-03-20  0:00         ` James Courtier-Dutton
  2004-03-20  0:39           ` Måns Rullgård
  0 siblings, 1 reply; 9+ messages in thread
From: James Courtier-Dutton @ 2004-03-20  0:00 UTC (permalink / raw)
  To: Joerg Mayer; +Cc: Jaroslav Kysela, Florian Schmidt, alsa-devel

Joerg Mayer wrote:
> On Fri, Mar 19, 2004 at 08:30:13PM +0000, James Courtier-Dutton wrote:
> 
>>The guys there just don't understand what you told them. If they took 
>>the time to actually read what you said, they could easily fix their 
>>problem.
>>
>>Summary: -
>>No bug in alsa.
> 
> 
> Summary 2:
> There seem to be quite a lot of projects that have problems to get native
> alsa support right: wine, winex, arts, xmms...
wine is only just starting to support alsa properly, due mainly to lack 
of real need to alsa support for a long time. They are starting to 
support it well now.
xmms don't support it well for obvious reasons. They charge people for 
OSS drivers, so the xmms alsa driver has to look worse!


> 
> How about a "alsa application developers meeting" once per month on IRC?
> If that meeting would be announced on the developer mailing list of
> projects that are known to use alsa, this might actually help.

Just reading the docs correctly should help.
I hang out on #alsa on freenode quite a lot, and will help if I have the 
time.

> 
> The invitation should contain something along the line:
> "If you have written code to use alsa, you should participate. Either because
> you did it right and can help others to do so too or because you didn't and
> in that case you should want to improve."
> 
>  Ciao
>        Jörg



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

* Re: Fw: [Bug 76413] arts does not follow ALSA API
  2004-03-20  0:00         ` James Courtier-Dutton
@ 2004-03-20  0:39           ` Måns Rullgård
  0 siblings, 0 replies; 9+ messages in thread
From: Måns Rullgård @ 2004-03-20  0:39 UTC (permalink / raw)
  To: alsa-devel

James Courtier-Dutton <James@superbug.demon.co.uk> writes:

> Joerg Mayer wrote:
>> On Fri, Mar 19, 2004 at 08:30:13PM +0000, James Courtier-Dutton wrote:
>>
>>> The guys there just don't understand what you told them. If they
>>> took the time to actually read what you said, they could easily fix
>>> their problem.
>>>
>>>Summary: -
>>>No bug in alsa.
>> Summary 2:
>> There seem to be quite a lot of projects that have problems to get native
>> alsa support right: wine, winex, arts, xmms...
> wine is only just starting to support alsa properly, due mainly to
> lack of real need to alsa support for a long time. They are starting
> to support it well now.
> xmms don't support it well for obvious reasons. They charge people for
> OSS drivers, so the xmms alsa driver has to look worse!

The funny thing is that they can't even get that right, unless, of
course, you consider random skips a sign of correctness.

-- 
Måns Rullgård
mru@kth.se



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