Re: [PATCHv17 21/34] vb2: add init_buffer buffer op

2018-08-13 Thread Mauro Carvalho Chehab
Em Sat, 4 Aug 2018 14:45:13 +0200 Hans Verkuil escreveu: > From: Hans Verkuil > > We need to initialize the request_fd field in struct vb2_v4l2_buffer > to -1 instead of the default of 0. So we need to add a new op that > is called when struct vb2_v4l2_buffer is allocated. > > Signed-off-by:

[PATCHv17 21/34] vb2: add init_buffer buffer op

2018-08-04 Thread Hans Verkuil
From: Hans Verkuil We need to initialize the request_fd field in struct vb2_v4l2_buffer to -1 instead of the default of 0. So we need to add a new op that is called when struct vb2_v4l2_buffer is allocated. Signed-off-by: Hans Verkuil --- drivers/media/common/videobuf2/videobuf2-core.c | 2 ++