Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 173897
b: refs/heads/master
c: 798166d
h: refs/heads/master
i:
  173895: 7bd7d33
v: v3
  • Loading branch information
David Ellingsworth authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent aba09af commit 5950f67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 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: 16a72f41bb82573d7fe1dfea1cb8356dee307db4
refs/heads/master: 798166dbecafa98ec9b28d056774ec2fc80290df
8 changes: 2 additions & 6 deletions trunk/drivers/media/radio/radio-mr800.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ static int amradio_setfreq(struct amradio_device *radio, int freq)
if (retval < 0 || size != BUFFER_LENGTH)
goto out_err;

radio->curfreq = freq;
goto out;

out_err:
Expand Down Expand Up @@ -371,13 +372,8 @@ static int vidioc_s_frequency(struct file *file, void *priv,
struct v4l2_frequency *f)
{
struct amradio_device *radio = file->private_data;
int retval = 0;

radio->curfreq = f->frequency;

retval = amradio_setfreq(radio, radio->curfreq);

return retval;
return amradio_setfreq(radio, f->frequency);
}

/* vidioc_g_frequency - get tuner radio frequency */
Expand Down

0 comments on commit 5950f67

Please sign in to comment.