linux_dsm_epyc7002/drivers/media
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
..
common [media] siano: break it into common, mmc and usb 2012-08-13 23:52:52 -03:00
dvb-core [media] dvb_frontend: implement suspend / resume 2012-08-15 19:18:43 -03:00
dvb-frontends [media] it913x-fe: use ARRAY_SIZE() as a cleanup 2012-08-15 18:47:10 -03:00
firewire [media] firewire: move it one level up 2012-08-13 23:20:36 -03:00
i2c [media] ov772x: Stop sensor readout right after reset 2012-08-15 17:12:38 -03:00
mmc [media] mmc/Kconfig: Improve driver name for siano mmc/sdio driver 2012-08-15 16:41:47 -03:00
parport [media] move parallel port/isa video drivers to drivers/media/parport/ 2012-08-15 16:41:37 -03:00
pci [media] move i2c files into drivers/media/i2c 2012-08-15 16:42:14 -03:00
platform [media] media: mx3_camera: buf_init() add buffer state check 2012-08-15 19:59:03 -03:00
radio [media] radio-shark2: use %*ph to print small buffers 2012-08-13 16:38:49 -03:00
rc [media] rc/Kconfig: Fix a warning 2012-08-13 23:00:33 -03:00
tuners [media] common: move media/common/tuners to media/tuners 2012-08-13 23:40:28 -03:00
usb [media] dvb_usb_v2: ce6230, rtl28xxu use .reset_resume 2012-08-15 19:19:32 -03:00
v4l2-core [media] reorganize the API core items 2012-08-15 16:42:00 -03:00
Kconfig [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
Makefile [media] rename drivers/media/video as .../platform 2012-08-15 16:43:09 -03:00
media-device.c [media] media: fix MEDIA_IOC_DEVICE_INFO return code 2012-08-12 07:57:57 -03:00
media-devnode.c Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
media-entity.c [media] media: Add link_validate() op to check links to the sink pad 2012-05-14 08:44:11 -03:00