Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 366999
b: refs/heads/master
c: ce5bdd5
h: refs/heads/master
i:
  366997: 3bda4df
  366995: 3e578a7
  366991: 398878f
v: v3
  • Loading branch information
Ondrej Zary authored and Mauro Carvalho Chehab committed Apr 14, 2013
1 parent 845b7d2 commit 2cd0b4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 0a5ea88b31bed56350939c6a99c4cd58904baa66
refs/heads/master: ce5bdd52629ebb50f65db03e6dfa9c96697d0d40
5 changes: 4 additions & 1 deletion trunk/drivers/media/pci/saa7134/saa7134-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -2014,11 +2014,11 @@ static int saa7134_g_tuner(struct file *file, void *priv,
if (NULL != card_in(dev, n).name) {
strcpy(t->name, "Television");
t->type = V4L2_TUNER_ANALOG_TV;
saa_call_all(dev, tuner, g_tuner, t);
t->capability = V4L2_TUNER_CAP_NORM |
V4L2_TUNER_CAP_STEREO |
V4L2_TUNER_CAP_LANG1 |
V4L2_TUNER_CAP_LANG2;
t->rangehigh = 0xffffffffUL;
t->rxsubchans = saa7134_tvaudio_getstereo(dev);
t->audmode = saa7134_tvaudio_rx2mode(t->rxsubchans);
}
Expand All @@ -2034,6 +2034,9 @@ static int saa7134_s_tuner(struct file *file, void *priv,
struct saa7134_dev *dev = fh->dev;
int rx, mode;

if (0 != t->index)
return -EINVAL;

mode = dev->thread.mode;
if (UNSET == mode) {
rx = saa7134_tvaudio_getstereo(dev);
Expand Down

0 comments on commit 2cd0b4d

Please sign in to comment.