diff options
Diffstat (limited to 'drivers/media/radio/dsbr100.c')
-rw-r--r-- | drivers/media/radio/dsbr100.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/radio/dsbr100.c b/drivers/media/radio/dsbr100.c index 0bd2191fb766..17e8f2ca7d90 100644 --- a/drivers/media/radio/dsbr100.c +++ b/drivers/media/radio/dsbr100.c | |||
@@ -255,12 +255,12 @@ usb_control_msg_failed: | |||
255 | } | 255 | } |
256 | 256 | ||
257 | /* set a frequency, freq is defined by v4l's TUNER_LOW, i.e. 1/16th kHz */ | 257 | /* set a frequency, freq is defined by v4l's TUNER_LOW, i.e. 1/16th kHz */ |
258 | static int dsbr100_setfreq(struct dsbr100_device *radio, int freq) | 258 | static int dsbr100_setfreq(struct dsbr100_device *radio) |
259 | { | 259 | { |
260 | int retval; | 260 | int retval; |
261 | int request; | 261 | int request; |
262 | int freq = (radio->curfreq / 16 * 80) / 1000 + 856; | ||
262 | 263 | ||
263 | freq = (freq / 16 * 80) / 1000 + 856; | ||
264 | mutex_lock(&radio->lock); | 264 | mutex_lock(&radio->lock); |
265 | 265 | ||
266 | retval = usb_control_msg(radio->usbdev, | 266 | retval = usb_control_msg(radio->usbdev, |
@@ -428,7 +428,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
428 | radio->curfreq = f->frequency; | 428 | radio->curfreq = f->frequency; |
429 | mutex_unlock(&radio->lock); | 429 | mutex_unlock(&radio->lock); |
430 | 430 | ||
431 | retval = dsbr100_setfreq(radio, radio->curfreq); | 431 | retval = dsbr100_setfreq(radio); |
432 | if (retval < 0) | 432 | if (retval < 0) |
433 | dev_warn(&radio->usbdev->dev, "Set frequency failed\n"); | 433 | dev_warn(&radio->usbdev->dev, "Set frequency failed\n"); |
434 | return 0; | 434 | return 0; |