mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-19 07:27:50 +00:00
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>
This commit is contained in:
parent
502d50166c
commit
30dd4508b9
@ -252,12 +252,13 @@ static int amradio_set_stereo(struct amradio_device *radio, char argument)
|
||||
retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2),
|
||||
(void *) (radio->buffer), BUFFER_LENGTH, &size, USB_TIMEOUT);
|
||||
|
||||
if (retval < 0 || size != BUFFER_LENGTH) {
|
||||
radio->stereo = -1;
|
||||
if (retval < 0 || size != BUFFER_LENGTH)
|
||||
return retval;
|
||||
}
|
||||
|
||||
radio->stereo = 1;
|
||||
if (argument == WANT_STEREO)
|
||||
radio->stereo = 1;
|
||||
else
|
||||
radio->stereo = 0;
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user