diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2007-09-06 19:02:23 -0700 |
---|---|---|
committer | Trent Piepho <xyzzy@speakeasy.org> | 2007-09-06 19:02:23 -0700 |
commit | 931a75fa38a0ff17f072477b69e54a71cd275568 (patch) | |
tree | d0580f99ad589dae14ff6579171d003da60a4e17 /linux/drivers/media/video/c-qcam.c | |
parent | 5c425b0ed1e98e581a7f9cb63d16225aca0b2987 (diff) | |
download | mediapointer-dvb-s2-931a75fa38a0ff17f072477b69e54a71cd275568.tar.gz mediapointer-dvb-s2-931a75fa38a0ff17f072477b69e54a71cd275568.tar.bz2 |
cx88-alsa: Make volume control stereo
From: Trent Piepho <xyzzy@speakeasy.org>
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>
Diffstat (limited to 'linux/drivers/media/video/c-qcam.c')
0 files changed, 0 insertions, 0 deletions