summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorMichael Hunold <devnull@localhost>2003-08-11 11:22:10 +0000
committerMichael Hunold <devnull@localhost>2003-08-11 11:22:10 +0000
commitd7eeec469d2e3ca508f755ca02b85d5d0dfe5d55 (patch)
treeee4f4b2a5ad82c9d194a0f3429e7bcd9d9cc6cc8 /linux/drivers
parent75543440573a665b5a2ec93358e0d2ac27568d85 (diff)
downloadmediapointer-dvb-s2-d7eeec469d2e3ca508f755ca02b85d5d0dfe5d55.tar.gz
mediapointer-dvb-s2-d7eeec469d2e3ca508f755ca02b85d5d0dfe5d55.tar.bz2
If somebody calls G_TUNER for a DVB-C card w/ analog module, then
check for the selected tuner, not if the currently selected channel has a tuner.
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index d06cfa588..521b7f3de 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -2758,7 +2758,7 @@ int av7110_ioctl(struct saa7146_fh *fh, unsigned int cmd, void *arg)
DEB_EE(("VIDIOC_G_TUNER: %d\n", t->index));
- if( 0 == av7110->has_analog_tuner || av7110->current_input != 1 ) {
+ if( 0 == av7110->has_analog_tuner || t->index != 0 ) {
return -EINVAL;
}