Re: CONVERT32 function in stb0899_lla.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


Manu


_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux