summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-core.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2008-03-16 23:49:43 +0100
committerHartmut Hackmann <hartmut.hackmann@t-online.de>2008-03-16 23:49:43 +0100
commita20df5d7ad8c9de85bf67ed58f97132b4ffb7ba1 (patch)
tree9c17ec90f971109a0e48b1972233d8eb19c772c4 /linux/drivers/media/video/saa7134/saa7134-core.c
parentb389d88bf591cabf5bcb323d55248aaf3b9d2586 (diff)
downloadmediapointer-dvb-s2-a20df5d7ad8c9de85bf67ed58f97132b4ffb7ba1.tar.gz
mediapointer-dvb-s2-a20df5d7ad8c9de85bf67ed58f97132b4ffb7ba1.tar.bz2
tda827x: fixed support of tuners with LNA
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> 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>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-core.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-core.c b/linux/drivers/media/video/saa7134/saa7134-core.c
index 20c67b190..181936e2e 100644
--- a/linux/drivers/media/video/saa7134/saa7134-core.c
+++ b/linux/drivers/media/video/saa7134/saa7134-core.c
@@ -960,6 +960,7 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
struct saa7134_dev *dev;
struct saa7134_mpeg_ops *mops;
int err;
+ int mask;
dev = kzalloc(sizeof(*dev),GFP_KERNEL);
if (NULL == dev)
@@ -1157,6 +1158,11 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
if (TUNER_ABSENT != dev->tuner_type)
saa7134_i2c_call_clients(dev, TUNER_SET_STANDBY, NULL);
+ if (card(dev).gpiomask != 0) {
+ mask = card(dev).gpiomask;
+ saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, mask, mask);
+ saa_andorl(SAA7134_GPIO_GPSTATUS0 >> 2, mask, 0);
+ }
return 0;
fail4: