summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7134/saa7134-video.c
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2007-01-23 00:49:37 +0100
committerHartmut Hackmann <hartmut.hackmann@t-online.de>2007-01-23 00:49:37 +0100
commite7f27ae2ed4e6113922b93149b17bf1025cf2d75 (patch)
tree5602ba4e2116c54ccbf68d4c07fdd18773f2ff05 /linux/drivers/media/video/saa7134/saa7134-video.c
parent0124d3c9c8071f1994a85d9f9973129efd6e044d (diff)
downloadmediapointer-dvb-s2-e7f27ae2ed4e6113922b93149b17bf1025cf2d75.tar.gz
mediapointer-dvb-s2-e7f27ae2ed4e6113922b93149b17bf1025cf2d75.tar.bz2
Added support for tda827x tuners with preamlifiers
From: Hartmut Hackmann <hartmut.hackmann@t-online.de> This patch contains - new tuning code for the tda827xa silicon tuner. - controls the preamplifier of some boards with this tuner. - support for the Philips Tiger S hybrid DVB-T reference design. - reworked the saa7134-dvb modulue to get rid of most of the small board specific functions. It depends on the changesets: 5119:9e5c364c59bb 5120:2c31f2803f53 and 5121:8b0ffe2a46a7 Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de>
Diffstat (limited to 'linux/drivers/media/video/saa7134/saa7134-video.c')
-rw-r--r--linux/drivers/media/video/saa7134/saa7134-video.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7134/saa7134-video.c b/linux/drivers/media/video/saa7134/saa7134-video.c
index 8f456a439..a07d35aeb 100644
--- a/linux/drivers/media/video/saa7134/saa7134-video.c
+++ b/linux/drivers/media/video/saa7134/saa7134-video.c
@@ -604,7 +604,14 @@ static void set_tvnorm(struct saa7134_dev *dev, struct saa7134_tvnorm *norm)
saa_writeb(SAA7134_RAW_DATA_GAIN, 0x40);
saa_writeb(SAA7134_RAW_DATA_OFFSET, 0x80);
- saa7134_i2c_call_clients(dev,VIDIOC_S_STD,&norm->id);
+ /* only tell the tuner if this is a tv input */
+ if (card_in(dev,dev->ctl_input).tv) {
+ if ((card(dev).tuner_type == TUNER_PHILIPS_TDA8290)
+ && ((card(dev).tuner_config == 1)
+ || (card(dev).tuner_config == 2)))
+ saa7134_set_gpio(dev, 22, 5);
+ saa7134_i2c_call_clients(dev,VIDIOC_S_STD,&norm->id);
+ }
}
static void video_mux(struct saa7134_dev *dev, int input)