]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (6184): cx88-alsa: Make volume control stereo
authorTrent Piepho <xyzzy@speakeasy.org>
Fri, 7 Sep 2007 02:02:23 +0000 (23:02 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:08:31 +0000 (22:08 -0300)
commit82896f29d47d945e331873c7295da9e3a47d709d
tree7c237b70408049f5cf8ae0073ce1a33a5adb1e7f
parent6fcecce7e1a5223be450031fa446323b08d1ec41
V4L/DVB (6184): cx88-alsa: Make volume control stereo

Use the balance control to make the mono volume control stereo.

Note that full range isn't supported.  The balance control attenuates one
channel by 0 to -63 dB, and the volume control provides additional attenuation
to both channels by another 0 to -63 dB.

So the channel with the most attenuation has a range of 0 to -126 dB, while
the other channel only has a range of 0 to -63 dB.  ALSA volume controls don't
appear to support this concept.  I just limited the range to 0 to -63 total.
Once you get to -63 dB, you're already at silence, so additional attenuation
is pretty much pointless anyway.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/cx88/cx88-alsa.c