aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/radio/radio-mr800.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/media/radio/radio-mr800.c b/drivers/media/radio/radio-mr800.c
index 7db992d3b0db..9764eca2c498 100644
--- a/drivers/media/radio/radio-mr800.c
+++ b/drivers/media/radio/radio-mr800.c
@@ -252,12 +252,13 @@ static int amradio_set_stereo(struct amradio_device *radio, char argument)
252 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), 252 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2),
253 (void *) (radio->buffer), BUFFER_LENGTH, &size, USB_TIMEOUT); 253 (void *) (radio->buffer), BUFFER_LENGTH, &size, USB_TIMEOUT);
254 254
255 if (retval < 0 || size != BUFFER_LENGTH) { 255 if (retval < 0 || size != BUFFER_LENGTH)
256 radio->stereo = -1;
257 return retval; 256 return retval;
258 }
259 257
260 radio->stereo = 1; 258 if (argument == WANT_STEREO)
259 radio->stereo = 1;
260 else
261 radio->stereo = 0;
261 262
262 return retval; 263 return retval;
263} 264}