Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1073
b: refs/heads/master
c: c184ca3
h: refs/heads/master
i:
  1071: a79db11
v: v3
  • Loading branch information
Jiri Benc authored and Linus Torvalds committed May 7, 2005
1 parent 6602978 commit 7576797
Show file tree
Hide file tree
Showing 2 changed files with 12 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: e99d3438e4db1ef9e4cae5ad3946c76f4ffd268d
refs/heads/master: c184ca3681ee9ae0bb63cb591e1e16f42536415c
11 changes: 11 additions & 0 deletions trunk/drivers/media/video/tuner-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,24 @@ tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
set_freq(client,f->frequency);
break;
}
case VIDIOC_G_FREQUENCY:
{
struct v4l2_frequency *f = arg;

SWITCH_V4L2;
f->type = t->mode;
f->frequency = t->freq;
break;
}
case VIDIOC_G_TUNER:
{
struct v4l2_tuner *tuner = arg;

SWITCH_V4L2;
if (V4L2_TUNER_RADIO == t->mode && t->has_signal)
tuner->signal = t->has_signal(client);
tuner->rangelow = tv_range[0] * 16;
tuner->rangehigh = tv_range[1] * 16;
break;
}
default:
Expand Down

0 comments on commit 7576797

Please sign in to comment.