Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366998
b: refs/heads/master
c: 0a5ea88
h: refs/heads/master
v: v3
  • Loading branch information
Ondrej Zary authored and Mauro Carvalho Chehab committed Apr 14, 2013
1 parent 3bda4df commit 845b7d2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 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: 3bbaa3a60175ed120c8ab8937c21425fd744c7b7
refs/heads/master: 0a5ea88b31bed56350939c6a99c4cd58904baa66
6 changes: 4 additions & 2 deletions trunk/drivers/media/pci/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -2051,8 +2051,11 @@ static int saa7134_g_frequency(struct file *file, void *priv,
struct saa7134_fh *fh = priv;
struct saa7134_dev *dev = fh->dev;

if (0 != f->tuner)
return -EINVAL;

f->type = fh->radio ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
f->frequency = dev->ctl_freq;
saa_call_all(dev, tuner, g_frequency, f);

return 0;
}
Expand All @@ -2070,7 +2073,6 @@ static int saa7134_s_frequency(struct file *file, void *priv,
if (1 == fh->radio && V4L2_TUNER_RADIO != f->type)
return -EINVAL;
mutex_lock(&dev->lock);
dev->ctl_freq = f->frequency;

saa_call_all(dev, tuner, s_frequency, f);

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/media/pci/saa7134/saa7134.h
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,6 @@ struct saa7134_dev {
int ctl_contrast;
int ctl_hue;
int ctl_saturation;
int ctl_freq;
int ctl_mute; /* audio */
int ctl_volume;
int ctl_invert; /* private */
Expand Down

0 comments on commit 845b7d2

Please sign in to comment.