This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/DM3730: DM3730 Camera ISP support (omap3isp)

Part Number: DM3730
Other Parts Discussed in Thread: TVP5151, TVP5150,

Tool/software: Linux

Hello, I have a big issue with with omap3 ISP driver. I'm trying to capture frames from different CCD sensors and analog video to digital converter; in my cases the TVP5151 and OV7670.

INFO

Linux Kernel : 4.13.

Capture Driver: omap3 ISP

Sensors: TVP5150, OV7670

The sensor probing seems to be correct for both of the CCD, the media PADS and ENTITYs are correctly generated and links seems to be OK.

Media-ctl -p Output

# media-ctl -p
Media controller API version 0.1.0

Media device information
------------------------
driver          omap3isp
model           TI OMAP3 ISP
serial
bus info
hw revision     0xf0
driver version  0.0.0

Device topology
- entity 1: OMAP3 ISP CCP2 (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb]
                <- "OMAP3 ISP CCP2 input":0 []
        pad1: Source
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb]
                -> "OMAP3 ISP CCDC":0 []

- entity 4: OMAP3 ISP CCP2 input (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
        pad0: Source
                -> "OMAP3 ISP CCP2":0 []

- entity 8: OMAP3 ISP CSI2a (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Sink
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb]
        pad1: Source
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb]
                -> "OMAP3 ISP CSI2a output":0 []
                -> "OMAP3 ISP CCDC":0 []

- entity 11: OMAP3 ISP CSI2a output (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video1
        pad0: Sink
                <- "OMAP3 ISP CSI2a":1 []

- entity 15: OMAP3 ISP CCDC (3 pads, 9 links)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev2
        pad0: Sink
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb]
                <- "OMAP3 ISP CCP2":1 []
                <- "OMAP3 ISP CSI2a":1 []
                <- "ov7670 1-0021":0 [ENABLED]
        pad1: Source
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb
                 crop.bounds:(0,0)/4096x4096
                 crop:(0,0)/4096x4096]
                -> "OMAP3 ISP CCDC output":0 []
                -> "OMAP3 ISP resizer":0 []
        pad2: Source
                [fmt:SGRBG10_1X10/4096x4095 field:none colorspace:srgb]
                -> "OMAP3 ISP preview":0 [ENABLED]
                -> "OMAP3 ISP AEWB":0 [ENABLED,IMMUTABLE]
                -> "OMAP3 ISP AF":0 [ENABLED,IMMUTABLE]
                -> "OMAP3 ISP histogram":0 [ENABLED,IMMUTABLE]

- entity 19: OMAP3 ISP CCDC output (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video2
        pad0: Sink
                <- "OMAP3 ISP CCDC":1 []

- entity 23: OMAP3 ISP preview (2 pads, 4 links)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev3
        pad0: Sink
                [fmt:SGRBG10_1X10/4096x4096 field:none colorspace:srgb
                 crop.bounds:(10,4)/4078x4088
                 crop:(8,4)/4082x4088]
                <- "OMAP3 ISP CCDC":2 [ENABLED]
                <- "OMAP3 ISP preview input":0 []
        pad1: Source
                [fmt:UYVY8_1X16/4082x4088 field:none colorspace:jpeg]
                -> "OMAP3 ISP preview output":0 [ENABLED]
                -> "OMAP3 ISP resizer":0 []

- entity 26: OMAP3 ISP preview input (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video3
        pad0: Source
                -> "OMAP3 ISP preview":0 []

- entity 30: OMAP3 ISP preview output (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video4
        pad0: Sink
                <- "OMAP3 ISP preview":1 [ENABLED]

- entity 34: OMAP3 ISP resizer (2 pads, 4 links)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev4
        pad0: Sink
                [fmt:YUYV8_1X16/4095x4095 field:none colorspace:jpeg
                 crop.bounds:(4,6)/4086x4082
                 crop:(4,6)/4086x4082]
                <- "OMAP3 ISP CCDC":1 []
                <- "OMAP3 ISP preview":1 []
                <- "OMAP3 ISP resizer input":0 []
        pad1: Source
                [fmt:YUYV8_1X16/4096x4095 field:none colorspace:jpeg]
                -> "OMAP3 ISP resizer output":0 []

- entity 37: OMAP3 ISP resizer input (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
        pad0: Source
                -> "OMAP3 ISP resizer":0 []

- entity 41: OMAP3 ISP resizer output (1 pad, 1 link)
             type Node subtype V4L flags 1
             device node name /dev/video6
        pad0: Sink
                <- "OMAP3 ISP resizer":1 []

- entity 45: OMAP3 ISP AEWB (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev5
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 47: OMAP3 ISP AF (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev6
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 49: OMAP3 ISP histogram (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev7
        pad0: Sink
                <- "OMAP3 ISP CCDC":2 [ENABLED,IMMUTABLE]

- entity 81: ov7670 1-0021 (1 pad, 1 link)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev8
        pad0: Source
                [fmt:SBGGR8_1X8/320x240 field:none colorspace:srgb]
                -> "OMAP3 ISP CCDC":0 [ENABLED]

but when i try to capture frames from sensors whit v4l capture applications like YAVTA, or FFPLAY it give me this error:

  FFPLAY output

# DISPLAY=:0 ffplay -i /dev/video4
ffplay version 3.4.2 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 4.9.4 (Buildroot 2018.02-rc2-00018-g38d8d86)
  configuration: --enable-cross-compile --cross-prefix=/home/prog/logic/buildroot/output/host/bin/arm-buildroot-linux-gnueabihf- --sysroot=/home/prog/logic/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot --host-cc='/home/prog/logic/buildroot/output/host/bin/ccache /usr/bin/gcc' --arch=arm --target-os=linux --disable-stripping --pkg-config=/home/prog/logic/buildroot/output/host/bin/pkg-config --disable-static --enable-shared --prefix=/usr --enable-avfilter --disable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcdio --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --enable-ffplay --enable-ffserver --disable-avresample --enable-ffprobe --disable-postproc --enable-swscale --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --disable-bzlib --disable-libfdk-aac --disable-gnutls --enable-openssl --disable-libopenh264 --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis --enable-vaapi --disable-vdpau --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --disable-libopus --disable-libvpx --disable-libass --disable-libbluray --disable-librtmp --disable-libmp3lame --disable-libmodplug --enable-libspeex --enable-libtheora --disable-libwavpack --disable-iconv --enable-libfreetype --enable-fontconfig --disable-libopenjpeg --disable-libx264 --disable-libx265 --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --enable-armv6 --enable-vfp --enable-neon --disable-altivec --extra-libs=-latomic --enable-pic --cpu=cortex-a8
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
Failed to initialize a hardware accelerated renderer: Couldn't find matching render driver
[video4linux2,v4l2 @ 0xb30005f0] [IMGUTILS @ 0xb39fc7b4] Picture size 0x0 is invalid
/dev/video4: Invalid argument
    nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

 OR , if i try to set the size and the framerate:

# DISPLAY=:0 ffplay -i /dev/video4 -s 320x240 -framerate 10
ffplay version 3.4.2 Copyright (c) 2003-2018 the FFmpeg developers
  built with gcc 4.9.4 (Buildroot 2018.02-rc2-00018-g38d8d86)
  configuration: --enable-cross-compile --cross-prefix=/home/prog/logic/buildroot/output/host/bin/arm-buildroot-linux-gnueabihf- --sysroot=/home/prog/logic/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot --host-cc='/home/prog/logic/buildroot/output/host/bin/ccache /usr/bin/gcc' --arch=arm --target-os=linux --disable-stripping --pkg-config=/home/prog/logic/buildroot/output/host/bin/pkg-config --disable-static --enable-shared --prefix=/usr --enable-avfilter --disable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcdio --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --enable-ffplay --enable-ffserver --disable-avresample --enable-ffprobe --disable-postproc --enable-swscale --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --disable-bzlib --disable-libfdk-aac --disable-gnutls --enable-openssl --disable-libopenh264 --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis --enable-vaapi --disable-vdpau --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --disable-libopus --disable-libvpx --disable-libass --disable-libbluray --disable-librtmp --disable-libmp3lame --disable-libmodplug --enable-libspeex --enable-libtheora --disable-libwavpack --disable-iconv --enable-libfreetype --enable-fontconfig --disable-libopenjpeg --disable-libx264 --disable-libx265 --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --enable-armv6 --enable-vfp --enable-neon --disable-altivec --extra-libs=-latomic --enable-pic --cpu=cortex-a8
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
Option -s is deprecated, use -video_size.
Failed to initialize a hardware accelerated renderer: Couldn't find matching render driver
[video4linux2,v4l2 @ 0xb30005f0] ioctl(VIDIOC_G_PARM): Invalid argument
[video4linux2,v4l2 @ 0xb30005f0] Time per frame unknown
[video4linux2,v4l2 @ 0xb30005f0] ioctl(VIDIOC_STREAMON): Broken pipe
/dev/video4: Broken pipe

[  457.957550] vb2:   counters for queue ce3d5040, buffer 0: UNBALANCED!
[  457.964447] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  457.971893] vb2:     buf_queue: 0 buf_done: 0
[  457.976440] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  457.982849] vb2:     get_userptr: 0 put_userptr: 0
[  457.987854] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  457.995971] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.002471] vb2:   counters for queue ce3d5040, buffer 1: UNBALANCED!
[  458.009216] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.016601] vb2:     buf_queue: 0 buf_done: 0
[  458.021148] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.027557] vb2:     get_userptr: 0 put_userptr: 0
[  458.032592] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.040679] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.047180] vb2:   counters for queue ce3d5040, buffer 2: UNBALANCED!
[  458.053924] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.061309] vb2:     buf_queue: 0 buf_done: 0
[  458.065887] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.072265] vb2:     get_userptr: 0 put_userptr: 0
[  458.077270] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.085449] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.091949] vb2:   counters for queue ce3d5040, buffer 3: UNBALANCED!
[  458.098663] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.106079] vb2:     buf_queue: 0 buf_done: 0
[  458.110626] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.117004] vb2:     get_userptr: 0 put_userptr: 0
[  458.122039] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.130157] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.136627] vb2:   counters for queue ce3d5040, buffer 4: UNBALANCED!
[  458.143402] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.150756] vb2:     buf_queue: 0 buf_done: 0
[  458.155334] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.161743] vb2:     get_userptr: 0 put_userptr: 0
[  458.166748] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.174865] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.181335] vb2:   counters for queue ce3d5040, buffer 5: UNBALANCED!
[  458.188079] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.195495] vb2:     buf_queue: 0 buf_done: 0
[  458.200042] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.206451] vb2:     get_userptr: 0 put_userptr: 0
[  458.211456] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.219573] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.226074] vb2:   counters for queue ce3d5040, buffer 6: UNBALANCED!
[  458.232818] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.240173] vb2:     buf_queue: 0 buf_done: 0
[  458.244781] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.251129] vb2:     get_userptr: 0 put_userptr: 0
[  458.256195] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.264312] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.270782] vb2:   counters for queue ce3d5040, buffer 7: UNBALANCED!
[  458.277526] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.284912] vb2:     buf_queue: 0 buf_done: 0
[  458.289489] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.295867] vb2:     get_userptr: 0 put_userptr: 0
[  458.300872] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.309020] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.315490] vb2:   counters for queue ce3d5040, buffer 8: UNBALANCED!
[  458.322265] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.329620] vb2:     buf_queue: 0 buf_done: 0
[  458.334197] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.340576] vb2:     get_userptr: 0 put_userptr: 0
[  458.345611] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.353729] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.360198] vb2:   counters for queue ce3d5040, buffer 9: UNBALANCED!
[  458.366943] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.374359] vb2:     buf_queue: 0 buf_done: 0
[  458.378906] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.385284] vb2:     get_userptr: 0 put_userptr: 0
[  458.390289] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.398437] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.404907] vb2:   counters for queue ce3d5040, buffer 10: UNBALANCED!
[  458.411773] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.419128] vb2:     buf_queue: 0 buf_done: 0
[  458.423706] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.430084] vb2:     get_userptr: 0 put_userptr: 0
[  458.435119] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.443237] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.449707] vb2:   counters for queue ce3d5040, buffer 11: UNBALANCED!
[  458.456542] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.463928] vb2:     buf_queue: 0 buf_done: 0
[  458.468505] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.474884] vb2:     get_userptr: 0 put_userptr: 0
[  458.479888] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.488037] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.494506] vb2:   counters for queue ce3d5040, buffer 12: UNBALANCED!
[  458.501342] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.508728] vb2:     buf_queue: 0 buf_done: 0
[  458.513305] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.519683] vb2:     get_userptr: 0 put_userptr: 0
[  458.524719] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.532836] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.539306] vb2:   counters for queue ce3d5040, buffer 13: UNBALANCED!
[  458.546173] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.553558] vb2:     buf_queue: 0 buf_done: 0
[  458.558105] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.564514] vb2:     get_userptr: 0 put_userptr: 0
[  458.569519] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.577636] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.584136] vb2:   counters for queue ce3d5040, buffer 14: UNBALANCED!
[  458.590972] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.598388] vb2:     buf_queue: 0 buf_done: 0
[  458.602966] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.609344] vb2:     get_userptr: 0 put_userptr: 0
[  458.614379] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.622497] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.628967] vb2:   counters for queue ce3d5040, buffer 15: UNBALANCED!
[  458.635833] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.643249] vb2:     buf_queue: 0 buf_done: 0
[  458.647796] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.654205] vb2:     get_userptr: 0 put_userptr: 0
[  458.659210] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.667327] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.673828] vb2:   counters for queue ce3d5040, buffer 16: UNBALANCED!
[  458.680664] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.688079] vb2:     buf_queue: 0 buf_done: 0
[  458.692657] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.699035] vb2:     get_userptr: 0 put_userptr: 0
[  458.704071] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.712188] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.718658] vb2:   counters for queue ce3d5040, buffer 17: UNBALANCED!
[  458.725524] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.732940] vb2:     buf_queue: 0 buf_done: 0
[  458.737487] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.743896] vb2:     get_userptr: 0 put_userptr: 0
[  458.748901] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.757049] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.763519] vb2:   counters for queue ce3d5040, buffer 18: UNBALANCED!
[  458.770355] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.777770] vb2:     buf_queue: 0 buf_done: 0
[  458.782348] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.788726] vb2:     get_userptr: 0 put_userptr: 0
[  458.793762] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.801910] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.808380] vb2:   counters for queue ce3d5040, buffer 19: UNBALANCED!
[  458.815246] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.822631] vb2:     buf_queue: 0 buf_done: 0
[  458.827178] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.833587] vb2:     get_userptr: 0 put_userptr: 0
[  458.838623] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.846740] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.853240] vb2:   counters for queue ce3d5040, buffer 20: UNBALANCED!
[  458.860076] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.867462] vb2:     buf_queue: 0 buf_done: 0
[  458.872070] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.878417] vb2:     get_userptr: 0 put_userptr: 0
[  458.883483] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.891601] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.898071] vb2:   counters for queue ce3d5040, buffer 21: UNBALANCED!
[  458.904937] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.912353] vb2:     buf_queue: 0 buf_done: 0
[  458.916900] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.923309] vb2:     get_userptr: 0 put_userptr: 0
[  458.928314] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.936462] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.942932] vb2:   counters for queue ce3d5040, buffer 22: UNBALANCED!
[  458.949768] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  458.957183] vb2:     buf_queue: 0 buf_done: 0
[  458.961761] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  458.968139] vb2:     get_userptr: 0 put_userptr: 0
[  458.973175] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  458.981292] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  458.987762] vb2:   counters for queue ce3d5040, buffer 23: UNBALANCED!
[  458.994628] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.002044] vb2:     buf_queue: 0 buf_done: 0
[  459.006591] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.013000] vb2:     get_userptr: 0 put_userptr: 0
[  459.018005] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.026153] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.032653] vb2:   counters for queue ce3d5040, buffer 24: UNBALANCED!
[  459.039459] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.046874] vb2:     buf_queue: 0 buf_done: 0
[  459.051452] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.057861] vb2:     get_userptr: 0 put_userptr: 0
[  459.062896] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.070983] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.077484] vb2:   counters for queue ce3d5040, buffer 25: UNBALANCED!
[  459.084350] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.091766] vb2:     buf_queue: 0 buf_done: 0
[  459.096313] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.102722] vb2:     get_userptr: 0 put_userptr: 0
[  459.107727] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.115875] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.122344] vb2:   counters for queue ce3d5040, buffer 26: UNBALANCED!
[  459.129180] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.136596] vb2:     buf_queue: 0 buf_done: 0
[  459.141143] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.147552] vb2:     get_userptr: 0 put_userptr: 0
[  459.152587] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.160705] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.167205] vb2:   counters for queue ce3d5040, buffer 27: UNBALANCED!
[  459.174041] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.181427] vb2:     buf_queue: 0 buf_done: 0
[  459.186004] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.192413] vb2:     get_userptr: 0 put_userptr: 0
[  459.197418] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.205566] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.212066] vb2:   counters for queue ce3d5040, buffer 28: UNBALANCED!
[  459.218872] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.226287] vb2:     buf_queue: 0 buf_done: 0
[  459.230834] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.237243] vb2:     get_userptr: 0 put_userptr: 0
[  459.242279] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.250396] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.256896] vb2:   counters for queue ce3d5040, buffer 29: UNBALANCED!
[  459.263763] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.271118] vb2:     buf_queue: 0 buf_done: 0
[  459.275726] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.282104] vb2:     get_userptr: 0 put_userptr: 0
[  459.287139] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.295257] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.301757] vb2:   counters for queue ce3d5040, buffer 30: UNBALANCED!
[  459.308593] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.315979] vb2:     buf_queue: 0 buf_done: 0
[  459.320526] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.326934] vb2:     get_userptr: 0 put_userptr: 0
[  459.331970] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.340057] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1
[  459.346557] vb2:   counters for queue ce3d5040, buffer 31: UNBALANCED!
[  459.353393] vb2:     buf_init: 1 buf_cleanup: 1 buf_prepare: 1 buf_finish: 1
[  459.360748] vb2:     buf_queue: 0 buf_done: 0
[  459.365356] vb2:     alloc: 1 put: 1 prepare: 1 finish: 0 mmap: 1
[  459.371734] vb2:     get_userptr: 0 put_userptr: 0
[  459.376739] vb2:     attach_dmabuf: 0 detach_dmabuf: 0 map_dmabuf: 0 unmap_dmabuf: 0
[  459.384857] vb2:     get_dmabuf: 0 num_users: 0 vaddr: 0 cookie: 1

The same scenario with TVP5151.

I'm really stuck.....

THANKS TOMMASO.