From d7eeec469d2e3ca508f755ca02b85d5d0dfe5d55 Mon Sep 17 00:00:00 2001 From: Michael Hunold Date: Mon, 11 Aug 2003 11:22:10 +0000 Subject: 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. --- linux/drivers/media/dvb/ttpci/av7110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/drivers') 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; } -- cgit v1.2.3