Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137842
b: refs/heads/master
c: 52433bb
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Klimov authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent b4c3730 commit 4cb991f
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: 1bb16d7156d7d6b7e357de561bf965fd65545bb0
refs/heads/master: 52433bbbef633047838dcc5a735ee241a05234a0
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 @@ -431,7 +431,10 @@ static int vidioc_s_frequency(struct file *file, void *priv,
if (radio->removed)
return -EIO;

mutex_lock(&radio->lock);
radio->curfreq = f->frequency;
mutex_unlock(&radio->lock);

retval = amradio_setfreq(radio, radio->curfreq);
if (retval < 0)
amradio_dev_warn(&radio->videodev->dev,
Expand Down Expand Up @@ -599,7 +602,9 @@ static int usb_amradio_close(struct file *file)
if (!radio)
return -ENODEV;

mutex_lock(&radio->lock);
radio->users = 0;
mutex_unlock(&radio->lock);

if (!radio->removed) {
retval = amradio_set_mute(radio, AMRADIO_STOP);
Expand Down

0 comments on commit 4cb991f

Please sign in to comment.