* [linux-dvb] Mantis 2033 dvb-tuning problems @ 2008-10-15 16:50 Hans Bergersen 2008-10-19 9:19 ` Niklas Edmundsson 0 siblings, 1 reply; 6+ messages in thread From: Hans Bergersen @ 2008-10-15 16:50 UTC (permalink / raw) To: linux-dvb [-- Attachment #1.1: Type: text/plain, Size: 2217 bytes --] Hi, I have got a Twinhan vp-2033 based card. I run Ubuntu 8.04. I have downloaded the driver from http://jusst.de/hg/mantis and it compiled just fine. But when i try to tune a channel the tuning fails. It is a newer card with the tda10023 tuner but when the driver loads it uses the tda10021. What do I have to do to make it use the right tuner? Can i give some options when compiling or when loading the module? dmesg gives> [ 900.039621] found a VP-2033 PCI DVB-C device on (01:08.0), [ 900.039623] Mantis Rev 1 [1822:0008], irq: 21, latency: 32 [ 900.039626] memory: 0xfdeff000, mmio: 0xf8a70000 [ 900.043897] MAC Address=[00:08:ca:1c:2c:8e] [ 900.043931] mantis_alloc_buffers (0): DMA=0x1fd00000 cpu=0xdfd00000 size=65536 [ 900.043937] mantis_alloc_buffers (0): RISC=0x36105000 cpu=0xf6105000 size=1000 [ 900.044799] DVB: registering new adapter (Mantis dvb adapter) [ 900.564320] mantis_frontend_init (0): Probing for CU1216 (DVB-C) [ 900.565719] TDA10021: i2c-addr = 0x0c, id = 0x7d [ 900.565723] mantis_frontend_init (0): found Philips CU1216 DVB-C frontend (TDA10021) @ 0x0c [ 900.565725] mantis_frontend_init (0): Mantis DVB-C Philips CU1216 frontend attach success [ 900.565731] DVB: registering frontend 0 (Philips TDA10021 DVB-C)... [ 900.565769] mantis_ca_init (0): Registering EN50221 device [ 900.568719] mantis_ca_init (0): Registered EN50221 device [ 900.568730] mantis_hif_init (0): Adapter(0) Initializing Mantis Host Interface Try to tune gives> hasse@hasse-desktop:~$ scan /usr/share/doc/dvb-utils/examples/scan/dvb-c/se-comhem scanning /usr/share/doc/dvb-utils/examples/scan/dvb-c/se-comhem using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' initial transponder 362000000 6875000 0 3 >>> tune to: 362000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64 WARNING: >>> tuning failed!!! >>> tune to: 362000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64 (tuning failed) WARNING: >>> tuning failed!!! ERROR: initial tuning failed dumping lists (0 services) Done. Any ideas? Regards Hans _________________________________________________________________ Senaste sportnyheterna & rykande färska resultat! http://sport.msn.se/ [-- Attachment #1.2: Type: text/html, Size: 2763 bytes --] [-- Attachment #2: Type: text/plain, Size: 150 bytes --] _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-dvb] Mantis 2033 dvb-tuning problems 2008-10-15 16:50 [linux-dvb] Mantis 2033 dvb-tuning problems Hans Bergersen @ 2008-10-19 9:19 ` Niklas Edmundsson 2008-10-20 21:04 ` Carl Oscar Ejwertz 0 siblings, 1 reply; 6+ messages in thread From: Niklas Edmundsson @ 2008-10-19 9:19 UTC (permalink / raw) To: Hans Bergersen; +Cc: linux-dvb [-- Attachment #1: Type: TEXT/PLAIN, Size: 1108 bytes --] On Wed, 15 Oct 2008, Hans Bergersen wrote: > Hi, > > I have got a Twinhan vp-2033 based card. I run Ubuntu 8.04. I have > downloaded the driver from http://jusst.de/hg/mantis and it compiled > just fine. But when i try to tune a channel the tuning fails. It is > a newer card with the tda10023 tuner but when the driver loads it > uses the tda10021. What do I have to do to make it use the right > tuner? Can i give some options when compiling or when loading the > module? <snip> > Any ideas? Try the attached patch which fixes this for my Azurewave AD-CP300 (at least last time I compiled it). I've sent it to Manu and he was going to apply it, but it hasn't shown up on http://jusst.de/hg/mantis/ yet... /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- "I don't believe it. There are no respected plastic surgeons." - Logan =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= [-- Attachment #2: Type: TEXT/PLAIN, Size: 4042 bytes --] Fix tda10021 to not claim tda10023. Previously mantis_frontend_init() relied on the PCI ID alone, this causes trouble when a card has a different chip depending on the manufacturing date. This match makes it work with newer Azurewave AD-CP300 cards while (hopefully) maintaining compatibility with older cards. Signed-off-by: Niklas Edmundsson <nikke@acc.umu.se> diff -r 303b1d29d735 linux/drivers/media/dvb/frontends/tda10021.c --- a/linux/drivers/media/dvb/frontends/tda10021.c Sun Sep 21 19:41:00 2008 +0400 +++ b/linux/drivers/media/dvb/frontends/tda10021.c Sun Sep 14 21:43:24 2008 +0200 @@ -425,6 +425,11 @@ struct dvb_frontend* tda10021_attach(str /* check if the demod is there */ id = tda10021_readreg(state, 0x1a); if ((id & 0xf0) != 0x70) goto error; + + /* Don't claim TDA10023 */ + if(id == 0x7d) { + goto error; + } printk("TDA10021: i2c-addr = 0x%02x, id = 0x%02x\n", state->config->demod_address, id); diff -r 303b1d29d735 linux/drivers/media/dvb/frontends/tda10023.c --- a/linux/drivers/media/dvb/frontends/tda10023.c Sun Sep 21 19:41:00 2008 +0400 +++ b/linux/drivers/media/dvb/frontends/tda10023.c Sun Sep 14 21:54:53 2008 +0200 @@ -487,6 +487,7 @@ struct dvb_frontend *tda10023_attach(con u8 pwm) { struct tda10023_state* state = NULL; + u8 id; /* allocate memory for the internal state */ state = kzalloc(sizeof(struct tda10023_state), GFP_KERNEL); @@ -498,8 +499,13 @@ struct dvb_frontend *tda10023_attach(con /* wakeup if in standby */ tda10023_writereg (state, 0x00, 0x33); + /* check if the demod is there */ - if ((tda10023_readreg(state, 0x1a) & 0xf0) != 0x70) goto error; + id = tda10023_readreg(state, 0x1a); + if ((id & 0xf0) != 0x70) goto error; + + printk("TDA10023: i2c-addr = 0x%02x, id = 0x%02x\n", + state->config->demod_address, id); /* create dvb_frontend */ memcpy(&state->frontend.ops, &tda10023_ops, sizeof(struct dvb_frontend_ops)); diff -r 303b1d29d735 linux/drivers/media/dvb/mantis/mantis_dvb.c --- a/linux/drivers/media/dvb/mantis/mantis_dvb.c Sun Sep 21 19:41:00 2008 +0400 +++ b/linux/drivers/media/dvb/mantis/mantis_dvb.c Sun Sep 14 21:54:55 2008 +0200 @@ -263,29 +263,26 @@ int __devinit mantis_frontend_init(struc } break; case MANTIS_VP_2033_DVB_C: // VP-2033 - dprintk(verbose, MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)"); - mantis->fe = tda10021_attach(&philips_cu1216_config, &mantis->adapter, read_pwm(mantis)); - if (mantis->fe) { - mantis->fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set; - dprintk(verbose, MANTIS_ERROR, 1, - "found Philips CU1216 DVB-C frontend (TDA10021) @ 0x%02x", - philips_cu1216_config.demod_address); - - dprintk(verbose, MANTIS_ERROR, 1, - "Mantis DVB-C Philips CU1216 frontend attach success"); - - } - break; case MANTIS_VP_2040_DVB_C: // VP-2040 case TERRATEC_CINERGY_C_PCI: case TECHNISAT_CABLESTAR_HD2: dprintk(verbose, MANTIS_ERROR, 1, "Probing for CU1216 (DVB-C)"); - mantis->fe = tda10023_attach(&tda10023_cu1216_config, &mantis->adapter, read_pwm(mantis)); + mantis->fe = tda10021_attach(&philips_cu1216_config, &mantis->adapter, read_pwm(mantis)); + if(mantis->fe) { + dprintk(verbose, MANTIS_ERROR, 1, + "found Philips CU1216 DVB-C frontend (TDA10021) @ 0x%02x", + philips_cu1216_config.demod_address); + } + else { + mantis->fe = tda10023_attach(&tda10023_cu1216_config, &mantis->adapter, read_pwm(mantis)); + if(mantis->fe) { + dprintk(verbose, MANTIS_ERROR, 1, + "found Philips CU1216 DVB-C frontend (TDA10023) @ 0x%02x", + philips_cu1216_config.demod_address); + } + } if (mantis->fe) { mantis->fe->ops.tuner_ops.set_params = philips_cu1216_tuner_set; - dprintk(verbose, MANTIS_ERROR, 1, - "found Philips CU1216 DVB-C frontend (TDA10023) @ 0x%02x", - philips_cu1216_config.demod_address); dprintk(verbose, MANTIS_ERROR, 1, "Mantis DVB-C Philips CU1216 frontend attach success"); [-- Attachment #3: Type: text/plain, Size: 150 bytes --] _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-dvb] Mantis 2033 dvb-tuning problems 2008-10-19 9:19 ` Niklas Edmundsson @ 2008-10-20 21:04 ` Carl Oscar Ejwertz 0 siblings, 0 replies; 6+ messages in thread From: Carl Oscar Ejwertz @ 2008-10-20 21:04 UTC (permalink / raw) To: linux-dvb [-- Attachment #1: Type: text/html, Size: 1917 bytes --] [-- Attachment #2: Type: text/plain, Size: 150 bytes --] _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <mailman.1.1224410403.28932.linux-dvb@linuxtv.org>]
* Re: [linux-dvb] Mantis 2033 dvb-tuning problems [not found] <mailman.1.1224410403.28932.linux-dvb@linuxtv.org> @ 2008-10-23 13:13 ` Mårten Gustafsson 2008-10-23 19:19 ` Ernst Persson 2008-10-28 10:41 ` Niklas Edmundsson 0 siblings, 2 replies; 6+ messages in thread From: Mårten Gustafsson @ 2008-10-23 13:13 UTC (permalink / raw) To: nikke; +Cc: linux-dvb Nikke I tried your patch, and it "improve" things a bit. Kaffeine is able to scan a few channels now without any entries in /var/log/messages. w_scan finds a few frequencies, but no services. Scan results are different between scans. w_scan works "better" if timeout settings are increased. The channels found by Kaffeine are not viewable, there is something moving, but I guess the driver is unable to descramble the signal. My system is an Ubuntu 8.10 amd64. The network is ComHem and the CI is from Conax. I also have the AzureWave AD-CP300. Since this is an improvement I agree with you, Manu should apply the patch. Mårten -----Ursprungligt meddelande----- ================================================= On Wed, 15 Oct 2008, Hans Bergersen wrote: > Hi, > > I have got a Twinhan vp-2033 based card. I run Ubuntu 8.04. I have > downloaded the driver from http://jusst.de/hg/mantis and it compiled > just fine. But when i try to tune a channel the tuning fails. It is > a newer card with the tda10023 tuner but when the driver loads it > uses the tda10021. What do I have to do to make it use the right > tuner? Can i give some options when compiling or when loading the > module? <snip> > Any ideas? Try the attached patch which fixes this for my Azurewave AD-CP300 (at least last time I compiled it). I've sent it to Manu and he was going to apply it, but it hasn't shown up on http://jusst.de/hg/mantis/ yet... /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- "I don't believe it. There are no respected plastic surgeons." - Logan =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -------------- next part -------------- Fix tda10021 to not claim tda10023. Previously mantis_frontend_init() relied on the PCI ID alone, this causes trouble when a card has a different chip depending on the manufacturing date. This match makes it work with newer Azurewave AD-CP300 cards while (hopefully) maintaining compatibility with older cards. _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-dvb] Mantis 2033 dvb-tuning problems 2008-10-23 13:13 ` Mårten Gustafsson @ 2008-10-23 19:19 ` Ernst Persson 2008-10-28 10:41 ` Niklas Edmundsson 1 sibling, 0 replies; 6+ messages in thread From: Ernst Persson @ 2008-10-23 19:19 UTC (permalink / raw) To: Mårten Gustafsson; +Cc: linux-dvb Hi, this sounds like exactly my problem! I have a TwinHan / AzureWave AD-CP400 CI DVB-C with a Conax CA module and I'm using the ComHem network also. Will try out the patch soon! I don't know which tuner is in the CP400 but this is what it detects: [ 12.453080] Mantis Rev 1 [1822:0043], irq: 20, latency: 32 [ 12.453082] memory: 0xfdbff000, mmio: 0xf88b2000 [ 12.456000] MAC Address=[00:08:ca:1c:65:a0] [ 12.456033] mantis_alloc_buffers (0): DMA=0x36280000 cpu=0xf6280000 size=65536 [ 12.456038] mantis_alloc_buffers (0): RISC=0x378ec000 cpu=0xf78ec000 size=1000 [ 12.456041] DVB: registering new adapter (Mantis dvb adapter) [ 12.473335] lirc_dev: lirc_register_plugin: sample_rate: 0 [ 12.477293] lirc_mceusb2[2]: Philips eHome Infrared Transceiver on usb2:2 [ 12.477344] usbcore: registered new interface driver lirc_mceusb2 [ 12.972617] mantis_frontend_init (0): Probing for CU1216 (DVB-C) [ 12.974710] mantis_frontend_init (0): found Philips CU1216 DVB-C frontend (TDA10023) @ 0x0c [ 12.974713] mantis_frontend_init (0): Mantis DVB-C Philips CU1216 frontend attach success [ 12.974718] DVB: registering frontend 0 (Philips TDA10023 DVB-C)... [ 12.974868] mantis_ca_init (0): Registering EN50221 device [ 12.974958] mantis_ca_init (0): Registered EN50221 device [ 12.974970] mantis_hif_init (0): Adapter(0) Initializing Mantis Host Interface [ 14.106576] dvb_ca adapter 0: DVB CAM detected and initialised successfully regards /Ernst On Thu, Oct 23, 2008 at 15:13, Mårten Gustafsson <reklam@holisticode.se> wrote: > > Nikke > > I tried your patch, and it "improve" things a bit. Kaffeine is able to scan > a few channels now without any entries in /var/log/messages. w_scan finds a > few frequencies, but no services. Scan results are different between scans. > w_scan works "better" if timeout settings are increased. > > The channels found by Kaffeine are not viewable, there is something moving, > but I guess the driver is unable to descramble the signal. > > My system is an Ubuntu 8.10 amd64. The network is ComHem and the CI is from > Conax. I also have the AzureWave AD-CP300. > > Since this is an improvement I agree with you, Manu should apply the patch. > > Mårten > > -----Ursprungligt meddelande----- > > > ================================================= > On Wed, 15 Oct 2008, Hans Bergersen wrote: > > > Hi, > > > > > I have got a Twinhan vp-2033 based card. I run Ubuntu 8.04. I have > > downloaded the driver from http://jusst.de/hg/mantis and it compiled > > just fine. But when i try to tune a channel the tuning fails. It is > > a newer card with the tda10023 tuner but when the driver loads it > > uses the tda10021. What do I have to do to make it use the right > > tuner? Can i give some options when compiling or when loading the > > module? > <snip> > > Any ideas? > > Try the attached patch which fixes this for my Azurewave AD-CP300 (at > least last time I compiled it). > > I've sent it to Manu and he was going to apply it, but it hasn't shown > up on http://jusst.de/hg/mantis/ yet... > > > /Nikke > -- > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se > --------------------------------------------------------------------------- > "I don't believe it. There are no respected plastic surgeons." - Logan > =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= > -------------- next part -------------- > > Fix tda10021 to not claim tda10023. > > Previously mantis_frontend_init() relied on the PCI ID alone, this > causes trouble when a card has a different chip depending on > the manufacturing date. This match makes it work with newer > Azurewave AD-CP300 cards while (hopefully) maintaining compatibility > with older cards. > > > > _______________________________________________ > linux-dvb mailing list > linux-dvb@linuxtv.org > http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [linux-dvb] Mantis 2033 dvb-tuning problems 2008-10-23 13:13 ` Mårten Gustafsson 2008-10-23 19:19 ` Ernst Persson @ 2008-10-28 10:41 ` Niklas Edmundsson 1 sibling, 0 replies; 6+ messages in thread From: Niklas Edmundsson @ 2008-10-28 10:41 UTC (permalink / raw) To: Mårten Gustafsson; +Cc: linux-dvb On Thu, 23 Oct 2008, Mårten Gustafsson wrote: > Nikke > > I tried your patch, and it "improve" things a bit. Kaffeine is able to scan > a few channels now without any entries in /var/log/messages. w_scan finds a > few frequencies, but no services. Scan results are different between scans. > w_scan works "better" if timeout settings are increased. > > The channels found by Kaffeine are not viewable, there is something moving, > but I guess the driver is unable to descramble the signal. > > My system is an Ubuntu 8.10 amd64. The network is ComHem and the CI is from > Conax. I also have the AzureWave AD-CP300. I'm running it on the Debian 2.6.18 kernel, viewing free channels (our provider Kommunicera gives us the standard channels via analog and unencrypted DVB-C). Scanning still sucks for me, but since I did the initial scan using a borrowed DVB-C card (something 1500 something) I'm happy for the moment. It would be nice if scanning worked tho, then I might be able to run myth-setup to completion (currently I use mplayer combined with at to record programs). I'd suggest you find someone that can provide you with a ComHem channels.conf to circumvent the scanning problem for now... > Since this is an improvement I agree with you, Manu should apply the patch. He said he will, I suspect he's just not had the time to do it. > ================================================= > On Wed, 15 Oct 2008, Hans Bergersen wrote: > >> Hi, >> > >> I have got a Twinhan vp-2033 based card. I run Ubuntu 8.04. I have >> downloaded the driver from http://jusst.de/hg/mantis and it compiled >> just fine. But when i try to tune a channel the tuning fails. It is >> a newer card with the tda10023 tuner but when the driver loads it >> uses the tda10021. What do I have to do to make it use the right >> tuner? Can i give some options when compiling or when loading the >> module? > <snip> >> Any ideas? > > Try the attached patch which fixes this for my Azurewave AD-CP300 (at > least last time I compiled it). > > I've sent it to Manu and he was going to apply it, but it hasn't shown > up on http://jusst.de/hg/mantis/ yet... > > > /Nikke > /Nikke -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | nikke@acc.umu.se --------------------------------------------------------------------------- If turning it on doesn't help, plug it in. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= _______________________________________________ linux-dvb mailing list linux-dvb@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-10-28 10:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 16:50 [linux-dvb] Mantis 2033 dvb-tuning problems Hans Bergersen
2008-10-19 9:19 ` Niklas Edmundsson
2008-10-20 21:04 ` Carl Oscar Ejwertz
[not found] <mailman.1.1224410403.28932.linux-dvb@linuxtv.org>
2008-10-23 13:13 ` Mårten Gustafsson
2008-10-23 19:19 ` Ernst Persson
2008-10-28 10:41 ` Niklas Edmundsson
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox