Hi Margartia,
Please check the below log.
root@generic-armv7a:/home/senthil_vpss/drivers# ./load.sh
SysLink version : 2.10.03.20
SysLink module created on Date:Feb 23 2012 Time:13:47:25
Attached to slave procId 2.
Loading procId 2.
Loaded file ti814x_hdvpss_1G.xem3 on slave procId 2.
Started slave procId 2.
Inside vps_capt_init...
Inside vps_capt_add_ctrl...
Inside vps_capt_add_ctrl...
Inside vps_capt_add_ctrl...
Inside vps_capt_add_ctrl...
Inside ti81xxfb_probe:no of resources0
Inside ti81xxfb_create_framebuffers..
create 3 fbs
fb_infos(3) allocated.
Inside ti81xxfb_allocate_fbs:No of device::3
vram 0:16M,1:16M,2:16M
fb 0 size 16777216
fb 1 size 16777216
fb 2 size 16777216
Inside ti81xxfb_alloc_fbmem...
allocating 16777216 bytes for fb 0
allocated VRAM paddr 87700000, vaddr cc000000
Inside ti81xxfb_alloc_fbmem...
allocating 16777216 bytes for fb 1
allocated VRAM paddr 88700000, vaddr cd000000
Inside ti81xxfb_alloc_fbmem...
allocating 16777216 bytes for fb 2
allocated VRAM paddr 89700000, vaddr ce000000
region0 phys 87700000 virt cc000000 size=16777216
region1 phys 88700000 virt cd000000 size=16777216
region2 phys 89700000 virt ce000000 size=16777216
fb memory allocated.
Size 1000
Mask 1000000 -1
Dma alocated page
DP 1
DP 2
DP 3
DP 4
Size 1000
Mask 1000000 -1
Dma alocated page
DP 1
DP 2
DP 3
DP 4
Size 1000
Mask 1000000 -1
Dma alocated page
DP 1
DP 2
DP 3
DP 4
clut mem allocated.
Inside ti81xxfb_fbinfo_init.
Inside ti81xxfb_fbinfo_init:1
check_fb_var
tfb_datamode_to_vpss_datamode..
xres = 1920, yres = 1080, vxres = 1920, vyres = 1080,xoffset = 0, yoffset = 0
Inside fb buffer setup:Non interlaced mode
set_fb_fix
Inside ti81xxfb_fbinfo_init.
Inside ti81xxfb_fbinfo_init:1
check_fb_var
tfb_datamode_to_vpss_datamode..
xres = 1920, yres = 1080, vxres = 1920, vyres = 1080,xoffset = 0, yoffset = 0
Inside fb buffer setup:Non interlaced mode
set_fb_fix
Inside ti81xxfb_fbinfo_init.
Inside ti81xxfb_fbinfo_init:0
check_fb_var
tfb_datamode_to_vpss_datamode..
xres = 720, yres = 576, vxres = 720, vyres = 576,xoffset = 0, yoffset = 0
Inside fb buffer setup:Interlaced mode
set_fb_fix
fb_infos initialized
tfb_datamode_to_vpss_datamode..
tfb_datamode_to_vpss_datamode..
tfb_datamode_to_vpss_datamode..
framebuffers registered
fbs sysfs created
fbs sysfs created
Inside ti81xxvin_probe...
Probe:Inside no of resources:1
Inside probe:the no of captures:4
Inside adv7180 probe.....
adv7180 2-0020: chip found @ 0x40 (OMAP I2C adapter)
I2C : FPGA Configuration
Inside __adv7180_status..
Inside case:6
select video decoder called
ti81xxvin ti81xxvin: registered sub device adv7180
ti81xxvin ti81xxvin: TI81xx HDVPSS Capture driver initialized
In this log,According to "DM814X AM387X VPSS Video Driver User Guide"
in FBDEV Driver
FBDEV driver supports only memory mapped buffers. Driver allocates one physically contiguous buffers for each
node, which can support up to 1920x1080 resolution 32 bpp format. By default, driver only allocates the memory for
FB0(dev/fb0) node. Application need set the memory size if accessing /dev/fb1 and /dev/fb2 when loading FBDev
modules.
Set Frame Buffer size for FB Nodes
$ insmod ti81xxfb.ko vram=0:XXM,1:YYM,2:ZZM
Once we did "insmod ti81xxfb.ko vram=0:16M,1:16M,2:16M",We have got the above log.It means,the resolution configuration value 720*576 and bits per pixel as 16 are assigned in vram 2 ( that is as per the guide it will be /dev/fb2)with interlaced mode.
But we start the capture by saLoopBackFbdev , ti81xxvin.ko begins the capture and inside this ti81xxvin_main.c
What we have suspect here is , instead of /dev/fb2 ,the capture device got the frame buffer as /dev/fb0 which is no n interlaced one.There is api called get valid field ,which checks the video "buf params-> interlaced" and here it fails and assign that field value as none.
We need the help how to assign /dev/fb2 to the capture device instead of /dev/fb0 as default.
Note:- In saLoopBackFbdev application we assign as #define FBDEV_DEVICE "/dev/fb2"
thanks
senthil nathan.D.