Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-dvb] Re: problems with NEWSTRUCT
Jeremy Hall wrote:
>
> I am having a hard time with the NEWSTRUCT API, so am trying to look at
> the code and make sure that what I have tried is doing what you want.
>
> In the driver code, I inserted udelay(15000) right before sending the tone
> burst per your instructions. (I suppose I could have used mdelay(15))
no, there are no mdelays() in these parts of the driver. Why don't you
call nanosleep() or usleep() in userspace?
Please take a look on the example code in szap.c, all the stuff you have
to do is implemented there in less than 15 lines of code. You find
szap.c in the DVB/apps/szap/ directory.
> for the mini commands, it looks like if sat_no is even you send mini
> command b, else a. but I'm not entirely sure of this.
No, minicmd A has to be sent when (b/4)%2 == 0, when (b/4)%2==1 you send
a minicmd B.
(input 1-4, 9-12: SEC_MINI_A -- input 5-8, 13-16: SEC_MINI_B)
Take a look on Page 33 of the Eutelsat "Update and Recommendations for
Implementation Version 2.1" (available at http://www.eutelsat.org/) you
find a table that specifies when to send which mini command to keep it
consistent with the 0x38 switch command.
I just commited a fix for szap.c, the burst was not set up correctly,
thanks for the hint. Please try again.
Holger
--
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.
Home |
Main Index |
Thread Index