]> asedeno.scripts.mit.edu Git - linux.git/commit
media: rcar-vin: allocate a scratch buffer at stream start
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 14 Mar 2018 02:49:09 +0000 (22:49 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 22 Mar 2018 10:22:39 +0000 (06:22 -0400)
commit6a8ffa8b4c519419f7b926904f02c8d1fec5b488
tree31bc8ee1491cfc91d0f0952f27a6432d4648fa7f
parent579260a5ef48703570acf56c0ceb63aea720784b
media: rcar-vin: allocate a scratch buffer at stream start

Before starting a capture, allocate a scratch buffer which can be used
by the driver to give to the hardware if no buffers are available from
userspace. The buffer is not used in this patch but prepares for future
refactoring where the scratch buffer can be used to avoid the need to
fallback on single capture mode if userspace can't queue buffers as fast
as the VIN driver consumes them.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/rcar-vin/rcar-dma.c
drivers/media/platform/rcar-vin/rcar-vin.h