Hello all,
It seems to me that the davinci video driver is written such that you have state which device_type you want to use at boot up time.
This is fine. I can set the device_type to 1, reboot, and get video from an analogue camera (via TVP5146). Or, I can set device_type to 2, reboot, and get video from the CMOS camera.
My question is, how can I switch between them in run-time?
I tried VIDIOC_STREAMOFF then VIDIOC_STREAMON. I tried close() then open(). But, after the switch, I get either a 'kernel panic' (null pointer somewhere), or the the kernel hangs, presumably because it can't re-sync to a frame....
Please help. I'm very very confused!!!
Thank you,
Amjad.