V4L/DVB: cx88-alsa: prevent out-of-range volume setting
authorClemens Ladisch <clemens@ladisch.de>
Mon, 22 Feb 2010 09:45:07 +0000 (06:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:03 +0000 (15:11 -0300)
commitcca80b973244cf7cf721b05b33178ba4826dbc5e
treef16bab60afa956efb19a1437e50c5700ff529a49
parent071193ff4182c8f785e770c54e35f3ea2bb98b84
V4L/DVB: cx88-alsa: prevent out-of-range volume setting

Ensure that volume values are always in the allowed range.  Otherwise,
it would be possible to set other bits in the AUD_VOL_CTL register or to
get a wrong sign in the AUD_BAL_CTL register.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-alsa.c