linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux 5.2 - vimc streaming fails with format error
@ 2019-05-23 15:07 shuah
  2019-07-03  1:44 ` shuah
  0 siblings, 1 reply; 3+ messages in thread
From: shuah @ 2019-05-23 15:07 UTC (permalink / raw)
  To: Hans Verkuil, Helen Koike; +Cc: Linux Media Mailing List, 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 <helen.koike@collabora.com>
Date:   Wed Mar 13 14:29:37 2019 -0400

     media: vimc: propagate pixel format in the stream


Please take a look.

thanks,
-- Shuah

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux 5.2 - vimc streaming fails with format error
  2019-05-23 15:07 Linux 5.2 - vimc streaming fails with format error shuah
@ 2019-07-03  1:44 ` shuah
  2019-07-08 22:21   ` Helen Koike
  0 siblings, 1 reply; 3+ messages in thread
From: shuah @ 2019-07-03  1:44 UTC (permalink / raw)
  To: Hans Verkuil, Helen Koike; +Cc: Linux Media Mailing List, shuah

On 5/23/19 9:07 AM, shuah wrote:
> 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 <helen.koike@collabora.com>
> Date:   Wed Mar 13 14:29:37 2019 -0400
> 
>      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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linux 5.2 - vimc streaming fails with format error
  2019-07-03  1:44 ` shuah
@ 2019-07-08 22:21   ` Helen Koike
  0 siblings, 0 replies; 3+ messages in thread
From: Helen Koike @ 2019-07-08 22:21 UTC (permalink / raw)
  To: shuah, Hans Verkuil, Helen Koike; +Cc: Linux Media Mailing List

Hi Shuah,

On 7/2/19 10:44 PM, shuah wrote:
> On 5/23/19 9:07 AM, shuah wrote:
>> 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 <helen.koike@collabora.com>
>> Date:   Wed Mar 13 14:29:37 2019 -0400
>>
>>      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


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=BA81

I hope this helps.

Thanks again,
Helen

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-08 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-23 15:07 Linux 5.2 - vimc streaming fails with format error shuah
2019-07-03  1:44 ` shuah
2019-07-08 22:21   ` Helen Koike

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).