Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* 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

* Re: 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
  1 sibling, 0 replies; 5+ messages in thread
From: Lee Revell @ 2004-11-27 19:24 UTC (permalink / raw)
  To: Peter Christensen; +Cc: alsa-devel

On Sat, 2004-11-27 at 10:26 +0100, Peter Christensen wrote:
> 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.

While we are at it can we _please_ change IEC958 to SPDIF?  Normal users
have no idea what IEC958 is.

Lee  





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

* Re: 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
  1 sibling, 0 replies; 5+ messages in thread
From: Sergey Vlasov @ 2004-11-28  9:54 UTC (permalink / raw)
  To: Peter Christensen; +Cc: alsa-devel

[-- Attachment #1: Type: text/plain, Size: 895 bytes --]

On Sat, Nov 27, 2004 at 10:26:40AM +0100, Peter Christensen wrote:
> First of all, the AC97 driver uses the name "IEC958 Playback SPSA". What's 
> wrong with "IEC958 Playback Volume"?

Because it is not a volume.  This control sets the SPSA bits in the
AC'97 Extended Audio Status and Control Register (0x2a):

- SPSA[1,0] = 00 S/PDIF source data assigned to AC-link slots 3&4
- SPSA[1,0] = 01 S/PDIF source data assigned to AC-link slots 7&8
  [2-ch Primary Codec default]
- SPSA[1,0] = 10 S/PDIF source data assigned to AC-link slots 6&9
  [4-ch Primary Codec default]
- SPSA[1,0] = 11 S/PDIF source data assigned to AC-link slots 10&11
  [6-ch Primary Codec default]

So you can set routing of some other channel (front, rear, center/LFE)
to SPDIF with this control.

However, representing SPSA as volume is really confusing.  What about
making it an enumeration instead?

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Mixer control names out of control?
  2004-11-28  9:00 Mixer control names out of control? Peter Zubaj
@ 2004-11-28 16:00 ` Peter Christensen
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Christensen @ 2004-11-28 16:00 UTC (permalink / raw)
  To: Peter Zubaj; +Cc: alsa-devel

Oh, I didn't know that about SPSA, but it does make quite some sence, as I don't see why one would have volume control on IEC958 :p. But wouldn't it 
then be more correct to use an enumerated control instead of integer?

But as of simple mixer element vs. kernel mixer controls, I am fully aware, that they are not the same thing. However, the simple elements are 
generated by the ALSA library based on the names of the mixer controls. But the library basically only recognized the names listed in 
Documentation/ControlNames.txt when it sorts the simple elements, which means that elements such as Front, Rear and Side are placed almost last on my 
Aureon card, between lots of unrelated elements.
It would be nice if the library did so good a sort, so that you would have the master playback volumes together 
(Master,Front,Rear,Side,Center,LFE,Surround, etc.), the source volumes together (PCM,Wave,Line,CD,Mic,Aux,Phone,AC97,Video,PC Speaker, etc.), and the 
IEC958 controls together. And it would be very nice if the simple mixer API had a fuction to tell wether the element was actually read-only. The 
ICE1724 driver have some sort VU meter or something, which the simple mixers think are ordinary volume controls, although they're read-only.

Peter Christensen

Peter Zubaj wrote:
>>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

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