Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88065
b: refs/heads/master
c: 1b06901
h: refs/heads/master
i:
  88063: 6c3bac0
v: v3
  • Loading branch information
Robert Fitzsimons authored and Mauro Carvalho Chehab committed Apr 1, 2008
1 parent 3cb2447 commit ee5baf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 5cd3955cb8adfc1edf481e9e1cb2289db50ccacb
refs/heads/master: 1b0690134ec5dafb523a951a8756bb8735382fec
5 changes: 3 additions & 2 deletions trunk/drivers/media/video/bt8xx/bttv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,7 @@ static int bttv_g_frequency(struct file *file, void *priv,
if (0 != err)
return err;

f->type = V4L2_TUNER_ANALOG_TV;
f->type = btv->radio_user ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
f->frequency = btv->freq;

return 0;
Expand All @@ -2009,7 +2009,8 @@ static int bttv_s_frequency(struct file *file, void *priv,

if (unlikely(f->tuner != 0))
return -EINVAL;
if (unlikely(f->type != V4L2_TUNER_ANALOG_TV))
if (unlikely(f->type != (btv->radio_user
? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV)))
return -EINVAL;
mutex_lock(&btv->lock);
btv->freq = f->frequency;
Expand Down

0 comments on commit ee5baf8

Please sign in to comment.