aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134/saa7134-cards.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2008-04-22 13:46:08 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:07:52 -0400
commit7bff4b4d3ad2b9ff42b4087f409076035af1d165 (patch)
treecfa75f91fbd30b8b36f70d7056639ee031d2a7ed /drivers/media/video/saa7134/saa7134-cards.c
parent5823b3a63c7661272ea7fef7635955e2a50d17eb (diff)
V4L/DVB (7393): tda827x: fixed support of tuners with LNA
Tuner refactoring broke support of tuners with LNA configurations 1 and 2 for both, analog TV and DVB-T. Additionally, this patch initializes the saa713x gpios defined by the gpiomask at driver init to avoid undefined stated at dvb. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134/saa7134-cards.c')
-rw-r--r--drivers/media/video/saa7134/saa7134-cards.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/media/video/saa7134/saa7134-cards.c b/drivers/media/video/saa7134/saa7134-cards.c
index 1b6c7d697f04..bab8498046c8 100644
--- a/drivers/media/video/saa7134/saa7134-cards.c
+++ b/drivers/media/video/saa7134/saa7134-cards.c
@@ -5260,12 +5260,13 @@ int saa7134_tuner_callback(void *priv, int command, int arg)
5260{ 5260{
5261 struct i2c_algo_bit_data *i2c_algo = priv; 5261 struct i2c_algo_bit_data *i2c_algo = priv;
5262 struct saa7134_dev *dev = i2c_algo->data; 5262 struct saa7134_dev *dev = i2c_algo->data;
5263 5263 if (dev != NULL) {
5264 switch (dev->tuner_type) { 5264 switch (dev->tuner_type) {
5265 case TUNER_PHILIPS_TDA8290: 5265 case TUNER_PHILIPS_TDA8290:
5266 return saa7134_tda8290_callback(dev, command, arg); 5266 return saa7134_tda8290_callback(dev, command, arg);
5267 case TUNER_XC2028: 5267 case TUNER_XC2028:
5268 return saa7134_xc2028_callback(dev, command, arg); 5268 return saa7134_xc2028_callback(dev, command, arg);
5269 }
5269 } 5270 }
5270 return -EINVAL; 5271 return -EINVAL;
5271} 5272}