summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorGerd Knorr <devnull@localhost>2004-06-25 11:53:03 +0000
committerGerd Knorr <devnull@localhost>2004-06-25 11:53:03 +0000
commitb79abe92690cfd8a5c855838870e1460fc23a69b (patch)
tree45d13538d6b8927d670223b95fc323b571e56d70 /linux/drivers/media
parent307b9d61a148ab8bc832309a1ef199f2ad6f5255 (diff)
downloadmediapointer-dvb-s2-b79abe92690cfd8a5c855838870e1460fc23a69b.tar.gz
mediapointer-dvb-s2-b79abe92690cfd8a5c855838870e1460fc23a69b.tar.bz2
- fix saa7134 radio tuning (thanks to Robert DeLuca).
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-video.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c
index e6e8b1eff..8afa9f441 100644
--- a/linux/drivers/media/video/saa7134/saa7134-video.c
+++ b/linux/drivers/media/video/saa7134/saa7134-video.c
@@ -1820,7 +1820,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
struct v4l2_frequency *f = arg;
memset(f,0,sizeof(*f));
- f->type = V4L2_TUNER_ANALOG_TV;
+ f->type = fh->radio ? V4L2_TUNER_RADIO : V4L2_TUNER_ANALOG_TV;
f->frequency = dev->ctl_freq;
return 0;
}
@@ -1830,7 +1830,9 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
if (0 != f->tuner)
return -EINVAL;
- if (V4L2_TUNER_ANALOG_TV != f->type)
+ if (0 == fh->radio && V4L2_TUNER_ANALOG_TV != f->type)
+ return -EINVAL;
+ if (1 == fh->radio && V4L2_TUNER_RADIO != f->type)
return -EINVAL;
down(&dev->lock);
dev->ctl_freq = f->frequency;