All of lore.kernel.org
 help / color / mirror / Atom feed
* Twinhan DTV Ter-CI (3030 Mantis) ???
@ 2009-01-31 23:52 Carl Oscar Ejwertz
  0 siblings, 0 replies; 3+ messages in thread
From: Carl Oscar Ejwertz @ 2009-01-31 23:52 UTC (permalink / raw)
  To: linux-media

I was wondering if the support for this card is fixed or is going to be

fixed in some tree?
I know that there has been support for the card in manu:s Mantis tree
but hasn't been working for a long time.
For some reason the interface has been disabled in the sourcecode.

Hopefully there will be support for the card so I can get it running for
my HTPC .. or is there some other card that has CA-module support that
work on linux out there?




^ permalink raw reply	[flat|nested] 3+ messages in thread
* Twinhan DTV Ter-CI (3030 mantis)
@ 2010-07-19 16:09 Niklas Claesson
  2010-07-19 16:38 ` Niklas Claesson
  0 siblings, 1 reply; 3+ messages in thread
From: Niklas Claesson @ 2010-07-19 16:09 UTC (permalink / raw)
  To: linux-media

Hi,

With a lot of help from Marko Ristola I finally made my tv-card
register correctly. I'm using the followin tree:
http://jusst.de/hg/mantis-v4l-dvb/ (14421:0e6ee2a233f0). With the
changes, that i have appended below, the frontend (zl10353) is
registered. However I don't see any channels when I scan with
kaffeine. I also tried the "scan"-utility from dvb-apps. What can I do
now?

niklas@niklas-desktop:~$ scan dvbtmp
scanning dvbtmp
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
ERROR: initial tuning failed
dumping lists (0 services)
Done.

At the same time the following occurs in syslog:

mantis_i2c_xfer (0): Messages:2
        Byte MODE:
        Byte <0> RXD=0x1f500c80  [0c]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 50 03 ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 51 64 ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 52 46 ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 53 15 ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 54 0f ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 50 0c ]
mantis_i2c_xfer (0): Messages:1
        mantis_i2c_write: Address=[0x0f] <W>[ 51 44 ]

Successful probing in syslog:

Mantis 0000:05:02.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
DVB: registering new adapter (Mantis DVB adapter)
My demodulator id is 14
tda665x_attach: Attaching TDA665x (ENV57H12D5 (ET-50DT)) tuner
DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
Mantis 0000:05:02.0: PCI INT A disabled
found a VP-3030 PCI DVB-T device on (05:02.0),
Mantis 0000:05:02.0: PCI INT A -> GSI 23 (level, low) -> IRQ 23
    Mantis Rev 1 [1822:0024], irq: 23, latency: 64
    memory: 0x0, mmio: 0xfb904000
mantis_stream_control (0): Set stream to HIF
mantis_i2c_init (0): Initializing I2C ..
mantis_i2c_init (0): Disabling I2C interrupt
mantis_i2c_xfer (0): Messages:2
        mantis_i2c_write: Address=[0x50] <W>[ 08 ]
        mantis_i2c_read:  Address=[0x50] <R>[ 00 08 ca 1a 4d f6 ]
    MAC Address=[00:08:ca:1a:4d:f6]
mantis_dma_init (0): Mantis DMA init
mantis_alloc_buffers (0): DMA=0x33b00000 cpu=0xf3b00000 size=65536
mantis_alloc_buffers (0): RISC=0x33928000 cpu=0xf3928000 size=1000
mantis_calc_lines (0): Mantis RISC block bytes=[4096], line
bytes=[2048], line count=[32]
mantis_dvb_init (0): dvb_register_adapter
DVB: registering new adapter (Mantis DVB adapter)
mantis_dvb_init (0): dvb_dmx_init
mantis_dvb_init (0): dvb_dmxdev_init
mantis_frontend_power (0): Power ON
gpio_set_bits (0): Set Bit <12> to <1>
gpio_set_bits (0): GPIO Value <3000>
gpio_set_bits (0): Set Bit <12> to <1>
gpio_set_bits (0): GPIO Value <3000>
mantis_frontend_soft_reset (0): Frontend RESET
gpio_set_bits (0): Set Bit <13> to <0>
gpio_set_bits (0): GPIO Value <1000>
gpio_set_bits (0): Set Bit <13> to <0>
gpio_set_bits (0): GPIO Value <1000>
gpio_set_bits (0): Set Bit <13> to <1>
gpio_set_bits (0): GPIO Value <3000>
gpio_set_bits (0): Set Bit <13> to <1>
gpio_set_bits (0): GPIO Value <3000>
vp3030_frontend_init (0): Probing for 10353 (DVB-T)
mantis_i2c_xfer (0): Messages:2
        Byte MODE:
        Byte <0> RXD=0x1f7f1480  [14]
tda665x_attach: Attaching TDA665x (ENV57H12D5 (ET-50DT)) tuner
vp3030_frontend_init (0): Done!
DVB: registering adapter 0 frontend 0 (Zarlink ZL10353 DVB-T)...
mantis_input_init (0): No RC codes available
mantis_uart_init (0): Initializing UART @ 9600bps parity:NONE
mantis_uart_init (0): UART succesfully initialized
mantis_uart_read (0): Reading ... <3f>
mantis_uart_work (0): UART BUF:0 <3f>


Changes to make it probe correctly:

diff -r 0e6ee2a233f0 linux/drivers/media/dvb/mantis/mantis_i2c.c
--- a/linux/drivers/media/dvb/mantis/mantis_i2c.c	Thu Feb 11 18:30:37 2010 +0400
+++ b/linux/drivers/media/dvb/mantis/mantis_i2c.c	Mon Jul 19 17:37:56 2010 +0200
@@ -158,6 +158,7 @@
 			mmwrite(txd, MANTIS_I2CDATA_CTL);
 			/* wait for xfer completion */
 			for (trials = 0; trials < TRIALS; trials++) {
+                                udelay(500);
 				stat = mmread(MANTIS_INT_STAT);
 				if (stat & MANTIS_INT_I2CDONE)
 					break;
diff -r 0e6ee2a233f0 linux/drivers/media/dvb/mantis/mantis_vp3030.c
--- a/linux/drivers/media/dvb/mantis/mantis_vp3030.c	Thu Feb 11
18:30:37 2010 +0400
+++ b/linux/drivers/media/dvb/mantis/mantis_vp3030.c	Mon Jul 19
17:37:56 2010 +0200
@@ -77,17 +77,12 @@
 static int vp3030_frontend_init(struct mantis_pci *mantis, struct
dvb_frontend *fe)
 {
 	struct i2c_adapter *adapter	= &mantis->adapter;
-	struct mantis_hwconfig *config	= mantis->hwconfig;
+
 	int err = 0;

-	gpio_set_bits(mantis, config->reset, 0);
-	msleep(100);
 	err = mantis_frontend_power(mantis, POWER_ON);
-	msleep(100);
-	gpio_set_bits(mantis, config->reset, 1);
-
 	if (err == 0) {
-		msleep(250);
+                mantis_frontend_soft_reset(mantis);
 		dprintk(MANTIS_ERROR, 1, "Probing for 10353 (DVB-T)");
 		fe = zl10353_attach(&mantis_vp3030_config, adapter);

Regards,
Niklas Claesson

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-19 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 23:52 Twinhan DTV Ter-CI (3030 Mantis) ??? Carl Oscar Ejwertz
  -- strict thread matches above, loose matches on Subject: below --
2010-07-19 16:09 Twinhan DTV Ter-CI (3030 mantis) Niklas Claesson
2010-07-19 16:38 ` Niklas Claesson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.