Hi,
I am doing some tests on video display using DMAI's "video_display" example application. This app should open a specific display (video, osd, attributes) and show some color patterns. The problem is that it does not work as expected so I think I have misunderstood how V4L and FBdev drivers works on DM365.
I've compiled the application to use Display_Attrs_DM365_OSD_DEFAULT, Display_Attrs_DM365_VID_DEFAULT, Display_Attrs_DM365_ATTR_DEFAULT. Sometimes it works showing the colors, some other times I see the screen reconfigure but nothing is shown, some other times the color bars are shown in an incorrect position on screen. This also seems to depend (not a surprise) on the linux kernel arguments.
Checking the DMAI source code, it seems that:
Display_Attrs_DM365_OSD_DEFAULT uses device /dev/fb/0
Display_Attrs_DM365_VID_DEFAULT uses device /dev/video2
Display_Attrs_DM365_ATTR_DEFAULT uses device /dev/fb/2
Checking sprs566a, it seems that the same window can be accessed using FBDev or V4L2, but it is not clear to me if this can happen at the same time without reconfiguring linux. For example, can I access video window 2 using /dev/fb/3 in one application and /dev/video3 in another (not at the same time)?
Is there a document explaining the "video=" line in the kernel args for DM365? For example at the moment I am using this:
video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K
With this config the DMAI's "video_display" only works for Display_Attrs_DM365_OSD_DEFAULT, but does not work for Display_Attrs_DM365_VID_DEFAULT: it does not show any error, but the screen remains black.
Instead if I set this:
video=davincifb:vid0=OFF:vid1=OFF:osd0=OFF:osd1=OFF
Then Display_Attrs_DM365_VID_DEFAULT starts to work as expected showing the colors.
Can anyone please explain this?
Thanks!