diff options
Diffstat (limited to 'drivers/media/video/tea5767.c')
| -rw-r--r-- | drivers/media/video/tea5767.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/media/video/tea5767.c b/drivers/media/video/tea5767.c index a9375ef05de1..261b7a3c0417 100644 --- a/drivers/media/video/tea5767.c +++ b/drivers/media/video/tea5767.c | |||
| @@ -17,6 +17,9 @@ | |||
| 17 | 17 | ||
| 18 | #define PREFIX "TEA5767 " | 18 | #define PREFIX "TEA5767 " |
| 19 | 19 | ||
| 20 | /* from tuner-core.c */ | ||
| 21 | extern int debug; | ||
| 22 | |||
| 20 | /*****************************************************************************/ | 23 | /*****************************************************************************/ |
| 21 | 24 | ||
| 22 | /****************************** | 25 | /****************************** |
| @@ -246,7 +249,7 @@ static void set_radio_freq(struct i2c_client *c, unsigned int frq) | |||
| 246 | if (5 != (rc = i2c_master_send(c, buffer, 5))) | 249 | if (5 != (rc = i2c_master_send(c, buffer, 5))) |
| 247 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); | 250 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); |
| 248 | 251 | ||
| 249 | if (tuner_debug) { | 252 | if (debug) { |
| 250 | if (5 != (rc = i2c_master_recv(c, buffer, 5))) | 253 | if (5 != (rc = i2c_master_recv(c, buffer, 5))) |
| 251 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); | 254 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); |
| 252 | else | 255 | else |
| @@ -264,7 +267,7 @@ static int tea5767_signal(struct i2c_client *c) | |||
| 264 | if (5 != (rc = i2c_master_recv(c, buffer, 5))) | 267 | if (5 != (rc = i2c_master_recv(c, buffer, 5))) |
| 265 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); | 268 | tuner_warn("i2c i/o error: rc == %d (should be 5)\n", rc); |
| 266 | 269 | ||
| 267 | return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << (13 - 4)); | 270 | return ((buffer[3] & TEA5767_ADC_LEVEL_MASK) << 8); |
| 268 | } | 271 | } |
| 269 | 272 | ||
| 270 | static int tea5767_stereo(struct i2c_client *c) | 273 | static int tea5767_stereo(struct i2c_client *c) |
