[linux-dvb] Compro S350

Jan D. Louw jd.louw at mweb.co.za
Tue May 6 23:52:13 CEST 2008

On Monday 05 May 2008 13:04:10 Aliaksey Kandratsenka wrote:
> Hi.
> I've recently obtained Compro S350. It's my first DVB card so don't
> laugh at be too loudly if I'm doing something very wrong.
> I've tried original driver without success. I had to change PCI ID of
> card to 7133 (from 7130). Driver loads OK, but tuning to known frequency
> does not work. Turning logging on for zl10039 and zl10313 does not
> reveal any unusual errors (10039 shows expected error during chip
> reset).
> alk:/usr/src/linux- szap -c /video/channels.conf -n 9
> reading channels from file '/video/channels.conf'
> zapping to 9 'Инфоканал;HTB+':
> sat 0, frequency = 12322 MHz V, symbolrate 27500000, vpid = 0x0148, apid
> = 0x019e
> using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
> status 00 | signal 0105 | snr fffe | ber 00000000 | unc 00000000 |
> status 00 | signal 0104 | snr fffd | ber 00000000 | unc 00000000 |
> status 00 | signal 0104 | snr fffe | ber 00000000 | unc 00000000 |
> status 00 | signal 0104 | snr fffe | ber 00000000 | unc 00000000 |
> status 00 | signal 0104 | snr fffe | ber 00000000 | unc 00000000 |
> status 00 | signal 0103 | snr fffe | ber 00000000 | unc 00000000 |
> I can confirm that card uses CE6313 chip (i've found it on board). I
> wasn't able to find CE503{7/9} chip on board, but all register values
> seem plausible.
> I've also tried recently commited mt312 based code, by simply replacing
> call to zl10313_attach to vp310_mt312_attach and trying both values of
> voltage_inverted config option with similar results.
> I'd like to help with this driver, but I wasn't able to find normal
> CE6313 (aka zl10313) specs. All datasheet I found (one from intel, other
> from Zarlink) do not have registers description.
> It's also possible that problem lies elsewhere. Maybe some GPIO pins
> need to be tweaked. There's dedicated compro chip on this card and I
> have no idea what it may do.

Hi Aliaksey,

I tested on a Compro S300 with a ZL10313 and ZL10039 (under the tin can). Your 
S350 is advertised as having PCI wakeup features that the S300 lack. On my 
S300 board IC U13 was left unpopulated, which is probably related to the 
wakeup feature.

The Compro branded IC (U9) you mentioned is a remote control decoder micro 
with a parallel interface to the PCI controller. My PCI controller is a 
SAA7130HL. You said you had to change your PCI ID to 7133, which probably 
means you've got a SAA7133 (with added audio decoding features but more or 
less pin compatible I think).

If both the ZL10313 and ZL10039 drivers attached successfully it means they 
respond correctly to the initial register probes. The Intel chips are 
probably exact copies of the Zarlinks, so they should work unmodified.

I used a combination of the MT312 and incomplete ZL10313 datasheets to write 
the driver. The additional register settings I gathered from watching I2C 
traffic of Compro's Fedora Xen kernel driver available on their website. The 
patched driver from zzam also has the missing register names and settings.

I'm attaching the pin mappings I used, gathered with the trusty multimeter & 
magnifying glass method. I never recorded the tuner pin mappings, but SLEEP 
wasn't connected if I remember correctly.

I used this to determine the SAA7130 GPIO settings. At the moment only GPIO15 
is configured for output, connected to the RESET line of the demodulator. I 
think you are correct to suspect the GPIO settings. One clue would be to 
watch your card's initial GPIO settings at boot. Mine looks like this:

saa7130[0]: board init: gpio is 843f00

-------------- next part --------------
A non-text attachment was scrubbed...
Name: demod.ods
Type: application/vnd.oasis.opendocument.spreadsheet
Size: 10955 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080506/a83ece99/attachment-0002.ods 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: processor.ods
Type: application/vnd.oasis.opendocument.spreadsheet
Size: 7180 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/linux-dvb/attachments/20080506/a83ece99/attachment-0003.ods 

More information about the linux-dvb mailing list