summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/msp3400.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/msp3400.c')
-rw-r--r--linux/drivers/media/video/msp3400.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c
index 07117009e..7183480a8 100644
--- a/linux/drivers/media/video/msp3400.c
+++ b/linux/drivers/media/video/msp3400.c
@@ -381,7 +381,9 @@ static void msp3400c_setvolume(struct i2c_client *client,
int val = 0, bal = 0;
if (!muted) {
- val = (volume * 0x7F / 65535) << 8;
+ /* 0x7f instead if 0x73 here has sound quality issues,
+ * probably due to overmodulation + clipping ... */
+ val = (volume * 0x73 / 65535) << 8;
}
if (val) {
bal = (balance / 256) - 128;