aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
authorAndrew de Quincey <adq_dvb@lidskialf.net>2005-09-09 16:03:07 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-09 16:57:45 -0400
commitdc27a1696089a9a9d317fc815915e6761e22eeb5 (patch)
treece797c46a6c8ef98d7c7bcc5da90e210967799d3 /drivers/media/dvb/ttpci/av7110.c
parentf63f5346c943008fe8f6ac66a9026f6c35e24947 (diff)
[PATCH] dvb: budget-ci: add support for TT DVB-C CI card
Add support for TT DVB-C CI card. Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net> Signed-off-by: Johannes Stezenbach <js@linuxtv.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--drivers/media/dvb/ttpci/av7110.c95
1 files changed, 94 insertions, 1 deletions
diff --git a/drivers/media/dvb/ttpci/av7110.c b/drivers/media/dvb/ttpci/av7110.c
index c91cf8958b38..48e8097d8430 100644
--- a/drivers/media/dvb/ttpci/av7110.c
+++ b/drivers/media/dvb/ttpci/av7110.c
@@ -1934,6 +1934,98 @@ static struct sp8870_config alps_tdlb7_config = {
1934}; 1934};
1935 1935
1936 1936
1937static u8 nexusca_stv0297_inittab[] = {
1938 0x80, 0x01,
1939 0x80, 0x00,
1940 0x81, 0x01,
1941 0x81, 0x00,
1942 0x00, 0x09,
1943 0x01, 0x69,
1944 0x03, 0x00,
1945 0x04, 0x00,
1946 0x07, 0x00,
1947 0x08, 0x00,
1948 0x20, 0x00,
1949 0x21, 0x40,
1950 0x22, 0x00,
1951 0x23, 0x00,
1952 0x24, 0x40,
1953 0x25, 0x88,
1954 0x30, 0xff,
1955 0x31, 0x00,
1956 0x32, 0xff,
1957 0x33, 0x00,
1958 0x34, 0x50,
1959 0x35, 0x7f,
1960 0x36, 0x00,
1961 0x37, 0x20,
1962 0x38, 0x00,
1963 0x40, 0x1c,
1964 0x41, 0xff,
1965 0x42, 0x29,
1966 0x43, 0x00,
1967 0x44, 0xff,
1968 0x45, 0x00,
1969 0x46, 0x00,
1970 0x49, 0x04,
1971 0x4a, 0x00,
1972 0x4b, 0x7b,
1973 0x52, 0x30,
1974 0x55, 0xae,
1975 0x56, 0x47,
1976 0x57, 0xe1,
1977 0x58, 0x3a,
1978 0x5a, 0x1e,
1979 0x5b, 0x34,
1980 0x60, 0x00,
1981 0x63, 0x00,
1982 0x64, 0x00,
1983 0x65, 0x00,
1984 0x66, 0x00,
1985 0x67, 0x00,
1986 0x68, 0x00,
1987 0x69, 0x00,
1988 0x6a, 0x02,
1989 0x6b, 0x00,
1990 0x70, 0xff,
1991 0x71, 0x00,
1992 0x72, 0x00,
1993 0x73, 0x00,
1994 0x74, 0x0c,
1995 0x80, 0x00,
1996 0x81, 0x00,
1997 0x82, 0x00,
1998 0x83, 0x00,
1999 0x84, 0x04,
2000 0x85, 0x80,
2001 0x86, 0x24,
2002 0x87, 0x78,
2003 0x88, 0x10,
2004 0x89, 0x00,
2005 0x90, 0x01,
2006 0x91, 0x01,
2007 0xa0, 0x04,
2008 0xa1, 0x00,
2009 0xa2, 0x00,
2010 0xb0, 0x91,
2011 0xb1, 0x0b,
2012 0xc0, 0x53,
2013 0xc1, 0x70,
2014 0xc2, 0x12,
2015 0xd0, 0x00,
2016 0xd1, 0x00,
2017 0xd2, 0x00,
2018 0xd3, 0x00,
2019 0xd4, 0x00,
2020 0xd5, 0x00,
2021 0xde, 0x00,
2022 0xdf, 0x00,
2023 0x61, 0x49,
2024 0x62, 0x0b,
2025 0x53, 0x08,
2026 0x59, 0x08,
2027 0xff, 0xff,
2028};
1937 2029
1938static int nexusca_stv0297_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params) 2030static int nexusca_stv0297_pll_set(struct dvb_frontend* fe, struct dvb_frontend_parameters* params)
1939{ 2031{
@@ -1982,6 +2074,7 @@ static int nexusca_stv0297_pll_set(struct dvb_frontend* fe, struct dvb_frontend_
1982static struct stv0297_config nexusca_stv0297_config = { 2074static struct stv0297_config nexusca_stv0297_config = {
1983 2075
1984 .demod_address = 0x1C, 2076 .demod_address = 0x1C,
2077 .inittab = nexusca_stv0297_inittab,
1985 .invert = 1, 2078 .invert = 1,
1986 .pll_set = nexusca_stv0297_pll_set, 2079 .pll_set = nexusca_stv0297_pll_set,
1987}; 2080};
@@ -2259,7 +2352,7 @@ static int frontend_init(struct av7110 *av7110)
2259 2352
2260 case 0x000A: // Hauppauge/TT Nexus-CA rev1.X 2353 case 0x000A: // Hauppauge/TT Nexus-CA rev1.X
2261 2354
2262 av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap, 0x7b); 2355 av7110->fe = stv0297_attach(&nexusca_stv0297_config, &av7110->i2c_adap);
2263 if (av7110->fe) { 2356 if (av7110->fe) {
2264 /* set TDA9819 into DVB mode */ 2357 /* set TDA9819 into DVB mode */
2265 saa7146_setgpio(av7110->dev, 1, SAA7146_GPIO_OUTLO); // TDA9198 pin9(STD) 2358 saa7146_setgpio(av7110->dev, 1, SAA7146_GPIO_OUTLO); // TDA9198 pin9(STD)