linux/drivers/media/platform
Alex Gershgorin c72f429f66 [media] media: mx3_camera: buf_init() add buffer state check
This patch checks the state of the buffer when calling .buf_init() method.
This is needed for the USERPTR buffer type, because in that case
.buf_init() is called every time a buffer is queued, and not only once
during the preparation stage, like in the MMAP case. Without this check
buffers get initialised repeatedly, which also leads to the allocation
of new DMA descriptors, of which there is only a final relatively small
number available. Both MMAP and USERPTR methods were successfully tested.

Signed-off-by: Alex Gershgorin <alexg@meprolight.com>
[g.liakhovetski@gmx.de: remove mx3_camera_buffer::state completely]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-08-15 19:59:03 -03:00
..
blackfin
davinci
marvell-ccic
omap
omap3isp
s5p-fimc
s5p-g2d
s5p-jpeg
s5p-mfc
s5p-tv [media] s5p-tv: Use devm_* functions in sii9234_drv.c file 2012-08-15 19:01:09 -03:00
arv.c
atmel-isi.c
coda.c [media] media: coda: add const qualifiers 2012-08-15 19:15:02 -03:00
coda.h
fsl-viu.c
indycam.c
indycam.h
Kconfig
m2m-deinterlace.c
Makefile
mem2mem_testdev.c [media] mem2mem_testdev: unlock and return error code properly 2012-08-15 18:50:27 -03:00
mx1_camera.c [media] video: mx1_camera: Use clk_prepare_enable/clk_disable_unprepare 2012-08-15 17:16:19 -03:00
mx2_camera.c [media] media: mx2_camera: Add YUYV output format 2012-08-15 17:18:28 -03:00
mx2_emmaprp.c [media] drivers/media/platform/mx2_emmaprp.c: use devm_kzalloc and devm_clk_get 2012-08-15 18:58:52 -03:00
mx3_camera.c [media] media: mx3_camera: buf_init() add buffer state check 2012-08-15 19:59:03 -03:00
omap1_camera.c
omap24xxcam-dma.c
omap24xxcam.c
omap24xxcam.h
pxa_camera.c
sh_mobile_ceu_camera.c
sh_vou.c
soc_camera_platform.c [media] soc-camera: Add and use soc_camera_power_[on|off]() helper functions 2012-08-15 17:03:29 -03:00
soc_camera.c [media] V4L: soc-camera: add selection API host operations 2012-08-15 17:37:39 -03:00
soc_mediabus.c
timblogiw.c
via-camera.c
via-camera.h
vino.c
vino.h
vivi.c