Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173894
b: refs/heads/master
c: 30dd450
h: refs/heads/master
v: v3
  • Loading branch information
David Ellingsworth authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 12724c1 commit 5cd4810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 502d50166cdef6cc8f63ab8c6ab35694ee39f608
refs/heads/master: 30dd4508b97155a3f826f877d5750d8888bc3183
9 changes: 5 additions & 4 deletions trunk/drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5cd4810

Please sign in to comment.