Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117046
b: refs/heads/master
c: 0fabb78
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Oct 21, 2008
1 parent da9aa6b commit 05f5282
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 223377e76d68c8015f1c809d3c831423de7b1fb6
refs/heads/master: 0fabb78332aee7d5dd4a0a31228b9266de71182f
5 changes: 5 additions & 0 deletions trunk/drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,16 +469,21 @@ static int usb_amradio_open(struct inode *inode, struct file *file)
{
struct amradio_device *radio = video_get_drvdata(video_devdata(file));

lock_kernel();

radio->users = 1;
radio->muted = 1;

if (amradio_start(radio) < 0) {
warn("Radio did not start up properly");
radio->users = 0;
unlock_kernel();
return -EIO;
}
if (amradio_setfreq(radio, radio->curfreq) < 0)
warn("Set frequency failed");

unlock_kernel();
return 0;
}

Expand Down

0 comments on commit 05f5282

Please sign in to comment.