[linux-dvb] CONVERT32 function in stb0899_lla.c

Manu Abraham abraham.manu at gmail.com
Fri Sep 22 19:20:59 CEST 2006

Dominik Kuhlen wrote:
> Hi,
> I don't understand the meaning of the function CONVERT32.
> It seems to be the same as a memcpy on bigendian machines.
> But what is the reson for the trailing "\0".
> Or should this be some kind of "convert to BASE16" 
> (e.g. sprintf(str, "%08x", x)).

It just concatenates 4 bytes from the STB0899 read irrespective of the
I2C mode.

> The function is called by stb0899_get_dev_id,
> but here is an off-by-one issue:
> the char __[] variables have a size of 4 bytes.
> But CONVERT32 writes 5 Bytes.

I haven't noticed an issue, get_dev_id does work, but will take a look
in there.

> I've got a Pinnacle PCTV HDTV Sat Pro USB (0x2304,0x021f)
> which seems to have a STB0899 STB6100 chipset.

I have been working on the PCI devices only. One upcoming PCIe device
from Twinhan
my current tests were based on the KNC1 DVB-S2 card.

> I played with libusb from userspace and discovered how to
> set LNB voltage (seems to be a LNBP22) and
>  send DiSEqC commands. 
> The basic usb communication looks very similar to dvb-ttpci-budget.
> Next step was kernel driver:
> I downloaded the stb0899 driver from here:
> http://thadathil.net:8000/cgi-bin/hgwebdir.cgi/mp-stb0899
> What is the current status of this driver?

Tests on a TDA8261 PLL based tuner, it works, the STB6100 based needs a
bit more .. but overall needs a bit more work, Still too early to
comment much.


More information about the linux-dvb mailing list