Linux 5.2 - vimc streaming fails with format error
Hi Hans and Helen,
vimc streaming fails on Linux 5.2-rc1
vimc: format doesn't match in link Scaler->RGB/YUV Capture
You can reproduce this easily with v4l2-ctl
Streaming works fine on Linux 5.1
I narrowed it to the following commit.
commit b6c61a6c37317efd7327199bfe24770af3d7e799
Author: Helen Fornazier <[email protected]> Date: Wed Mar 13 14:29:37 2019 -0400
media: vimc: propagate pixel format in the stream
Please take a look.
thanks,
-- Shuah
Quoted 15 lines · shuah
Hi Hans and Helen,
vimc streaming fails on Linux 5.2-rc1
vimc: format doesn't match in link Scaler->RGB/YUV Capture
You can reproduce this easily with v4l2-ctl
Streaming works fine on Linux 5.1
I narrowed it to the following commit. commit
b6c61a6c37317efd7327199bfe24770af3d7e799
Author: Helen Fornazier <[email protected]> Date: Wed Mar 13 14:29:37 2019 -0400
Quoted 8 lines
media: vimc: propagate pixel format in the stream
Please take a look.
thanks,
-- Shuah
Hi Hans and Helen,
Is there trick to being able to run v4l2-ctl --stream-mmap on vimc
I am seeing
VIDIOC_STREAMON returned -1 (Broken pipe)
since 5.2 and narrowed it to the above commit.
I am working on vimc life-time problem and unable test my patches because of this commit on 5.2
thanks,
-- Shuah
Hi Shuah,
Quoted 33 lines · shuah
Quoted 15 lines · shuah
Hi Hans and Helen,
vimc streaming fails on Linux 5.2-rc1
vimc: format doesn't match in link Scaler->RGB/YUV Capture
You can reproduce this easily with v4l2-ctl
Streaming works fine on Linux 5.1
I narrowed it to the following commit. commit
b6c61a6c37317efd7327199bfe24770af3d7e799
Author: Helen Fornazier <[email protected]> Date: Wed Mar 13 14:29:37 2019 -0400Quoted 8 lines
media: vimc: propagate pixel format in the stream
Please take a look.
thanks,
-- ShuahHi Hans and Helen,
Is there trick to being able to run v4l2-ctl --stream-mmap on vimc
I am seeing
VIDIOC_STREAMONreturned -1 (Broken pipe)
Quoted 7 lines
since 5.2 and narrowed it to the above commit.
I am working on vimc life-time problem and unable test my patches because of this commit on 5.2
thanks,
-- Shuah
Thanks you for working on this and sorry for my late reply.
The media topology requires configuration from userspace, otherwise configuration between the media entities won't match and you'll get a Broken Pipe (this is expected).
I'll update libcamera to properly configure it, but meanwhile you should be able to configure with the following commands:
media-ctl -d platform:vimc -V '"Sensor A":0[fmt:SBGGR8_1X8/640x480]'
media-ctl -d platform:vimc -V '"Debayer A":0[fmt:SBGGR8_1X8/640x480]'
media-ctl -d platform:vimc -V '"Sensor B":0[fmt:SBGGR8_1X8/640x480]'
media-ctl -d platform:vimc -V '"Debayer B":0[fmt:SBGGR8_1X8/640x480]'
v4l2-ctl -z platform:vimc -d "RGB/YUV Capture" -v width=1920,height=1440
v4l2-ctl -z platform:vimc -d "Raw Capture 0" -v pixelformat=BA81
v4l2-ctl -z platform:vimc -d "Raw Capture 1" -v pixelformat=BA81I hope this helps.
Thanks again,
Helen