Wolfram Joost wrote:
Hi,btw: does anybody of you has an idea how we might make use of the automatic channel scan functionality of the MT352 under Linux, how we might need to extend the LinuxDVB API?
I would add two ioctls:
- FE_START_SCAN with the lowest and highest frequency to scan as paramters.
- FE_CONTINUE_SCAN
After the FE_START_SCAN the kernel-thread monitors the fe-status and send an event if the fe locks or an event when the fe finished scanning. Monitoring than stopps.
The application then can get more information by requesting some sections and of cause it should get the channel-parameters with a FE_GET_FRONTEND ioctl. Then, the application continues scanning by issueing the FE_CONTINUE_SCAN ioctl.
sounds good so far.
in well-designed interrupt-driven STBs we don't need any frontend thread at all.The kernel-thread starts monitoring the fe-status again.
The FE_GET_STATUS ioctl should set a new flag to indicate that the scanning-process has finished.end of scan can get determined by comparing the end frequency with the current frequency.