Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Mixer control names out of control?
@ 2004-11-28  9:00 Peter Zubaj
  2004-11-28 16:00 ` Peter Christensen
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Zubaj @ 2004-11-28  9:00 UTC (permalink / raw)
  To: peter; +Cc: alsa-devel

>First of all, the AC97 driver uses the name "IEC958 Playback SPSA".
What's wrong with "IEC958 Playback Volume"?

IEC958 Playback SPSA - this is not volume - this controls what AC97
slot will be used for spdif output.

AFAIK
simple mixer element != kernel mixer control. simple mixer element can
containd 6 kernel controls (mayby more):
Playback Volume
Playback Switch
Playback Route

Capture Volume
Capture Switch
Capture Route

>Front,Rear,Side
I think there is not constraint on names, there is only recomendation.
On some cards you are unable to fit to default names, because you want
name something what has diffrent meaning as control on other card.
Have you better names for this ?

Peter Zubaj
____________________________________
http://www.pobox.sk/ - najvacsi slovensky freemail





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Mixer control names out of control?
@ 2004-11-27  9:26 Peter Christensen
  2004-11-27 19:24 ` Lee Revell
  2004-11-28  9:54 ` Sergey Vlasov
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Christensen @ 2004-11-27  9:26 UTC (permalink / raw)
  To: alsa-devel

Hello,

Am I the only one feeling that the names of the mixer controls in ALSA is somewhat out of control? Especially when it comes to IEC958.

First of all, the AC97 driver uses the name "IEC958 Playback SPSA". What's wrong with "IEC958 Playback Volume"?

Next, quite a few drivers do not use the SNDRV_CTL_NAME_IEC958 macro, whose purpose I suppose is to ensure that alle IEC958 mixer controls follow a 
common naming syntax. Anyway, alot of drivers for some reason uses "Output" and "Input" instead of "Playback" and "Capture". Is this on purpose?

The reason I make such a fuss about it, is that I wanted to make a structured organized mixer for GTK, so that people don't have to use the sometimes 
messy and confusing alsamixer and gnome volume control (in general, all mixers based on the ALSA Simple Mixer controls). But then it struck me that 
the simple mixer did have some potentional, and the chaos basically was based on poor sorting of elements (which you can do manually in your program), 
its inability to detect several "new" mixer control names such as (Front,Rear,Side, etc.), and then the inability to have both a Switch and a Route 
element with the same name (The ice1724 driver was force to use "IEC958 Output Switch" instead of "IEC958 Playback Switch" due to this).
It is my belief, that if the simple mixer library routines was updated, and the mixer elements got proper names, the world would be alot better.

But is this simple caused by programmers not truely knowing the ALSA naming conversion or is there some deper sence in this?

I did consider makine a patch which changed the whole naming thing, but it would probably be to vital for people to accept?!

Thanks
   Peter Christensen


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

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

end of thread, other threads:[~2004-11-28 16:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-28  9:00 Mixer control names out of control? Peter Zubaj
2004-11-28 16:00 ` Peter Christensen
  -- strict thread matches above, loose matches on Subject: below --
2004-11-27  9:26 Peter Christensen
2004-11-27 19:24 ` Lee Revell
2004-11-28  9:54 ` Sergey Vlasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox