forked from Minki/linux
V4L/DVB (7261): Use the same callback argument as xc3028 and xc5000
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
1fe8736955
commit
446018d807
@ -578,8 +578,7 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
|
|||||||
else
|
else
|
||||||
arg = 0;
|
arg = 0;
|
||||||
if (priv->cfg->tuner_callback)
|
if (priv->cfg->tuner_callback)
|
||||||
priv->cfg->tuner_callback(priv->i2c_adap->algo_data,
|
priv->cfg->tuner_callback(priv, 1, arg);
|
||||||
1, arg);
|
|
||||||
buf[1] = high ? 0 : 1;
|
buf[1] = high ? 0 : 1;
|
||||||
if (*priv->cfg->config == 2)
|
if (*priv->cfg->config == 2)
|
||||||
buf[1] = high ? 1 : 0;
|
buf[1] = high ? 1 : 0;
|
||||||
@ -587,8 +586,7 @@ static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
|
|||||||
break;
|
break;
|
||||||
case 3: /* switch with GPIO of saa713x */
|
case 3: /* switch with GPIO of saa713x */
|
||||||
if (priv->cfg->tuner_callback)
|
if (priv->cfg->tuner_callback)
|
||||||
priv->cfg->tuner_callback(priv->i2c_adap->algo_data,
|
priv->cfg->tuner_callback(priv, 0, high);
|
||||||
0, high);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,8 @@ void saa7134_set_gpio(struct saa7134_dev *dev, int bit_no, int value)
|
|||||||
int saa7134_tuner_callback(void *ptr, int command, int arg)
|
int saa7134_tuner_callback(void *ptr, int command, int arg)
|
||||||
{
|
{
|
||||||
u8 sync_control;
|
u8 sync_control;
|
||||||
struct saa7134_dev *dev = ptr;
|
struct i2c_algo_bit_data *i2c_algo = priv;
|
||||||
|
struct saa7134_dev *dev = i2c_algo->data;
|
||||||
|
|
||||||
switch (dev->tuner_type) {
|
switch (dev->tuner_type) {
|
||||||
case TUNER_PHILIPS_TDA8290:
|
case TUNER_PHILIPS_TDA8290:
|
||||||
|
Loading…
Reference in New Issue
Block a user