diff options
Diffstat (limited to 'drivers/media/video/cx25840/cx25840-audio.c')
-rw-r--r-- | drivers/media/video/cx25840/cx25840-audio.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/media/video/cx25840/cx25840-audio.c b/drivers/media/video/cx25840/cx25840-audio.c index 005f1109364..34b96c7cfd6 100644 --- a/drivers/media/video/cx25840/cx25840-audio.c +++ b/drivers/media/video/cx25840/cx25840-audio.c | |||
@@ -480,7 +480,6 @@ void cx25840_audio_set_path(struct i2c_client *client) | |||
480 | 480 | ||
481 | static void set_volume(struct i2c_client *client, int volume) | 481 | static void set_volume(struct i2c_client *client, int volume) |
482 | { | 482 | { |
483 | struct cx25840_state *state = to_state(i2c_get_clientdata(client)); | ||
484 | int vol; | 483 | int vol; |
485 | 484 | ||
486 | /* Convert the volume to msp3400 values (0-127) */ | 485 | /* Convert the volume to msp3400 values (0-127) */ |
@@ -496,14 +495,7 @@ static void set_volume(struct i2c_client *client, int volume) | |||
496 | } | 495 | } |
497 | 496 | ||
498 | /* PATH1_VOLUME */ | 497 | /* PATH1_VOLUME */ |
499 | if (is_cx2388x(state)) { | 498 | cx25840_write(client, 0x8d4, 228 - (vol * 2)); |
500 | /* for cx23885 volume doesn't work, | ||
501 | * the calculation always results in | ||
502 | * e4 regardless. | ||
503 | */ | ||
504 | cx25840_write(client, 0x8d4, volume); | ||
505 | } else | ||
506 | cx25840_write(client, 0x8d4, 228 - (vol * 2)); | ||
507 | } | 499 | } |
508 | 500 | ||
509 | static void set_balance(struct i2c_client *client, int balance) | 501 | static void set_balance(struct i2c_client *client, int balance) |