From 2d9644e7d5b953b53a7eed78af6fea55cfb4cff6 Mon Sep 17 00:00:00 2001 From: Andrew de Quincy Date: Fri, 11 Jul 2003 12:23:08 +0000 Subject: Fixed a stupid bug in tuning --- linux/drivers/media/dvb/frontends/tda1004x.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'linux') diff --git a/linux/drivers/media/dvb/frontends/tda1004x.c b/linux/drivers/media/dvb/frontends/tda1004x.c index bbabb37f2..6a4fde6c7 100644 --- a/linux/drivers/media/dvb/frontends/tda1004x.c +++ b/linux/drivers/media/dvb/frontends/tda1004x.c @@ -45,7 +45,7 @@ #include "dvb_functions.h" #ifndef CONFIG_TDA1004X_MC_LOCATION -#define CONFIG_TDA1004X_MC_LOCATION "/usr/lib/DVB/driver/frontends/tda1004x.mc" +#define CONFIG_TDA1004X_MC_LOCATION "/etc/dvb/tda1004x.mc" #endif static int tda1004x_debug = 0; @@ -528,11 +528,11 @@ static int tda1004x_set_frequency(struct dvb_i2c_bus *i2c, // determine band if (fe_params->frequency < 49000000) { return -EINVAL; - } else if (tuner_frequency < 159000000) { + } else if (fe_params->frequency < 159000000) { band = 1; - } else if (tuner_frequency < 444000000) { + } else if (fe_params->frequency < 444000000) { band = 2; - } else if (tuner_frequency < 861000000) { + } else if (fe_params->frequency < 861000000) { band = 4; } else { return -EINVAL; -- cgit v1.2.3