projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[media] r820t: precendence bug in r820t_xtal_check()
[cascardo/linux.git]
/
drivers
/
media
/
tuners
/
tda827x.c
diff --git
a/drivers/media/tuners/tda827x.c
b/drivers/media/tuners/tda827x.c
index
a0d1762
..
73453a2
100644
(file)
--- a/
drivers/media/tuners/tda827x.c
+++ b/
drivers/media/tuners/tda827x.c
@@
-479,10
+479,10
@@
static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
dprintk("setting LNA to low gain\n");
}
switch (priv->cfg->config) {
dprintk("setting LNA to low gain\n");
}
switch (priv->cfg->config) {
- case
0
: /* no LNA */
+ case
TDA8290_LNA_OFF
: /* no LNA */
break;
break;
- case
1
: /* switch is GPIO 0 of tda8290 */
- case
2
:
+ case
TDA8290_LNA_GP0_HIGH_ON
: /* switch is GPIO 0 of tda8290 */
+ case
TDA8290_LNA_GP0_HIGH_OFF
:
if (params == NULL) {
gp_func = 0;
arg = 0;
if (params == NULL) {
gp_func = 0;
arg = 0;
@@
-499,11
+499,11
@@
static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
DVB_FRONTEND_COMPONENT_TUNER,
gp_func, arg);
buf[1] = high ? 0 : 1;
DVB_FRONTEND_COMPONENT_TUNER,
gp_func, arg);
buf[1] = high ? 0 : 1;
- if (priv->cfg->config ==
2
)
+ if (priv->cfg->config ==
TDA8290_LNA_GP0_HIGH_OFF
)
buf[1] = high ? 1 : 0;
tuner_transfer(fe, &msg, 1);
break;
buf[1] = high ? 1 : 0;
tuner_transfer(fe, &msg, 1);
break;
- case
3
: /* switch with GPIO of saa713x */
+ case
TDA8290_LNA_ON_BRIDGE
: /* switch with GPIO of saa713x */
if (fe->callback)
fe->callback(priv->i2c_adap->algo_data,
DVB_FRONTEND_COMPONENT_TUNER, 0, high);
if (fe->callback)
fe->callback(priv->i2c_adap->algo_data,
DVB_FRONTEND_COMPONENT_TUNER, 0, high);