diff options
author | David Ellingsworth <david@identd.dyndns.org> | 2009-09-23 17:16:38 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:40:11 -0500 |
commit | 30dd4508b97155a3f826f877d5750d8888bc3183 (patch) | |
tree | c5615af6a82a4757cfea373da012fc21b91bfef0 /drivers/media/radio/radio-mr800.c | |
parent | 502d50166cdef6cc8f63ab8c6ab35694ee39f608 (diff) |
V4L/DVB (13070): radio-mr800: fix behavior of set_stereo function
Fix behavior of set_stereo function.
Signed-off-by: David Ellingsworth <david@identd.dyndns.org>
Acked-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/radio/radio-mr800.c')
-rw-r--r-- | drivers/media/radio/radio-mr800.c | 9 |
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 | } |