summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorAndrew de Quincy <devnull@localhost>2003-07-11 12:23:08 +0000
committerAndrew de Quincy <devnull@localhost>2003-07-11 12:23:08 +0000
commit2d9644e7d5b953b53a7eed78af6fea55cfb4cff6 (patch)
tree0786e6699913619a1d232e61701b9a49d45e05ca /linux
parentb30489e7b2ad6d5fbb77c6287acf18e7893a3fbf (diff)
downloadmediapointer-dvb-s2-2d9644e7d5b953b53a7eed78af6fea55cfb4cff6.tar.gz
mediapointer-dvb-s2-2d9644e7d5b953b53a7eed78af6fea55cfb4cff6.tar.bz2
Fixed a stupid bug in tuning
Diffstat (limited to 'linux')
-rw-r--r--linux/drivers/media/dvb/frontends/tda1004x.c8
1 files changed, 4 insertions, 4 deletions
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;