Simplifying the mixer

Mike Montour mail at mmontour.net
Wed Jun 11 21:41:29 CEST 2008


Mark Brown wrote:
> On Tue, Jun 10, 2008 at 11:46:10PM +0200, Joerg Reisenweber wrote:
> 
>> Could I speak you into doing a little fancy and augmenting the controls' names 
>> (like "PCM Volume") with a reference to the actual hw mixer element, 
>> like "PCM Volume (R8,R9)", here example given a reference to the register 
>> that's actually affected according to WM8753_control_diag.pdf and 
> 
> Doing that (especially in that particular format) is going to upset ALSA
> - the names of the controls are parsed by the ALSA user space programs
> and used to control how they're displayed and used.  For things that end
> up in the OSS compatibility layer the entire control name is important.

My recommendation would be to keep the register numbers out of the 
names, but to change some of those strings to more closely match the 
names used in the chip documentation.

For example, consider the controls called "Headphone" and "Speaker". 
Neither label is correct for the GTA01 - "Headphone" is actually 
LOUT1/ROUT1 and controls all audio from the WM8753 to the LM4857 chip, 
while "Speaker" is LOUT2/ROUT2 and is N/C.




More information about the openmoko-devel mailing list