On Thu, 7 Oct 2004 10:29:35 +0100, Andrew de Quincey wrote: > Hi, I found this when I was messing with the stv0299. All it appears to be > doing is twiddling the voltage between 13v/18v depending on the binary > sequence in a supplied u32... e.g. 10110 == 18v,13v,18v,18v,13v and so on. > > I don't see why this is implemented in stv0299 - its not needing any > hardware-specific features. I would have thought implementing it directly in > dvb_frontend.c/dvb_frontend_ioctl() would be better. Then we dont add any > more code to stv0299, and it can be used with any DVB-S frontend. > > Actually this patch, which is needed for budget cards might explain why. Basically, the switch is very sensitive to getting the transitions on time, and doing a set_voltage can take more than 8ms on those cards, so I need to actually break the commands down. Even then just doing a writereg can take over 1ms, so I need to measure the delays and account for them during the sleep. It also adds a switch to print the delay, which helps with debuging.
Attachment:
legacy1.patch
Description: Binary data