Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Nicolas Dufresne
Le jeudi 06 juin 2019 à 08:51 +0200, Boris Brezillon a écrit : > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > > > On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > > wrote: > > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > > > capture and output. Adjust the che

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Tomasz Figa
On Thu, Jun 6, 2019 at 4:09 PM Hans Verkuil wrote: > > On 6/6/19 8:51 AM, Boris Brezillon wrote: > > On Thu, 6 Jun 2019 12:53:57 +0900 > > Tomasz Figa wrote: > > > >> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > >> wrote: > >>> > >>> CAP_M2M_MPLANE means the device supports _MPLANE formats f

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Hans Verkuil
On 6/6/19 9:09 AM, Boris Brezillon wrote: > On Thu, 6 Jun 2019 08:51:59 +0200 > Boris Brezillon wrote: > >> On Thu, 6 Jun 2019 12:53:57 +0900 >> Tomasz Figa wrote: >> >>> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon >>> wrote: CAP_M2M_MPLANE means the device supports _MPLANE forma

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Hans Verkuil
On 6/6/19 8:51 AM, Boris Brezillon wrote: > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > >> On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon >> wrote: >>> >>> CAP_M2M_MPLANE means the device supports _MPLANE formats for both >>> capture and output. Adjust the check to avoid EINVAL erro

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-06 Thread Boris Brezillon
On Thu, 6 Jun 2019 08:51:59 +0200 Boris Brezillon wrote: > On Thu, 6 Jun 2019 12:53:57 +0900 > Tomasz Figa wrote: > > > On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > > wrote: > > > > > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > > > capture and output. Adjust the

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-05 Thread Boris Brezillon
On Thu, 6 Jun 2019 12:53:57 +0900 Tomasz Figa wrote: > On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon > wrote: > > > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > > capture and output. Adjust the check to avoid EINVAL errors on > > such devices. > > > > Fixes: 366c719d647

Re: [PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-05 Thread Tomasz Figa
On Thu, Jun 6, 2019 at 1:46 AM Boris Brezillon wrote: > > CAP_M2M_MPLANE means the device supports _MPLANE formats for both > capture and output. Adjust the check to avoid EINVAL errors on > such devices. > > Fixes: 366c719d6479 ("media: v4l2: Get rid of > ->vidioc_enum_fmt_vid_{cap,out}_mplane")

[PATCH] media: v4l2: Fix the _MPLANE format check in v4l_enum_fmt()

2019-06-05 Thread Boris Brezillon
CAP_M2M_MPLANE means the device supports _MPLANE formats for both capture and output. Adjust the check to avoid EINVAL errors on such devices. Fixes: 366c719d6479 ("media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane") Reported-by: Maxime Jourdan Signed-off-by: Boris Brezillon --- d