Simplifying the mixer

Mike Montour mail at mmontour.net
Tue Jun 10 06:19:35 CEST 2008


One of the difficulties in working with the Neo1973 audio subsystem is 
the complexity of the wm8753 chip. I have attached a couple of patches 
that I wrote to simplify this situation.

The first is a kernel patch that adds dB information to the mixer 
controls, using values taken from the datasheets. If this metadata is 
present then alsamixer will calculate and display the actual dB gain of 
each control element in addition to the 0-100% scale. The overall gain 
for any audio path may be calculated by adding the dB values of each 
element in that path.

The second is a patch to alsamixer that assigns a "page" number to each 
control, and adds a command-line option to specify which pages to show. 
E.g. "-p 1" will display the volume controls, "-p 2" will show the mux 
and mute switches. The page numbers are powers of 2, so "-p 5" will show 
controls from pages 1 and 4.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mixer_dB.patch
Url: http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080609/548e60b5/attachment-0002.txt 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: alsamixer-pages.patch
Url: http://lists.openmoko.org/pipermail/openmoko-devel/attachments/20080609/548e60b5/attachment-0003.txt 


More information about the openmoko-devel mailing list