aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorHartmut Hackmann <hartmut.hackmann@t-online.de>2008-04-09 22:07:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-04-24 13:09:44 -0400
commit9a1b04e461fc8127c902a988cd9a082ba0680b11 (patch)
tree5f09a53b458432fddba9ed871f5731a83e41f7e2 /drivers/media/video/saa7134
parentb37f2d6a31fc8e80c79a0a214d83b128aa796543 (diff)
V4L/DVB (7654): tda10086: make the xtal frequency a configuration option
Some DVB-S boards, i.e. with the SD1878 tuner, use a 4 MHz reference frequency. This reqires a different setup of the clock PLL. This patch adds an enum to the tda10086_config struct and sets the proper values for the boards. This patch also fixes the DVB-S section of the MD7134_BRIDGE_2 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')
-rw-r--r--drivers/media/video/saa7134/saa7134-dvb.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/media/video/saa7134/saa7134-dvb.c b/drivers/media/video/saa7134/saa7134-dvb.c
index 73154c1a0239..2d16be2259db 100644
--- a/drivers/media/video/saa7134/saa7134-dvb.c
+++ b/drivers/media/video/saa7134/saa7134-dvb.c
@@ -851,6 +851,14 @@ static struct tda10086_config flydvbs = {
851 .demod_address = 0x0e, 851 .demod_address = 0x0e,
852 .invert = 0, 852 .invert = 0,
853 .diseqc_tone = 0, 853 .diseqc_tone = 0,
854 .xtal_freq = TDA10086_XTAL_16M,
855};
856
857static struct tda10086_config sd1878_4m = {
858 .demod_address = 0x0e,
859 .invert = 0,
860 .diseqc_tone = 0,
861 .xtal_freq = TDA10086_XTAL_4M,
854}; 862};
855 863
856/* ------------------------------------------------------------------ 864/* ------------------------------------------------------------------
@@ -1206,7 +1214,7 @@ static int dvb_init(struct saa7134_dev *dev)
1206 break; 1214 break;
1207 case SAA7134_BOARD_MD7134_BRIDGE_2: 1215 case SAA7134_BOARD_MD7134_BRIDGE_2:
1208 dev->dvb.frontend = dvb_attach(tda10086_attach, 1216 dev->dvb.frontend = dvb_attach(tda10086_attach,
1209 &flydvbs, &dev->i2c_adap); 1217 &sd1878_4m, &dev->i2c_adap);
1210 if (dev->dvb.frontend) { 1218 if (dev->dvb.frontend) {
1211 struct dvb_frontend *fe; 1219 struct dvb_frontend *fe;
1212 if (dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x60, 1220 if (dvb_attach(dvb_pll_attach, dev->dvb.frontend, 0x60,