summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlex Gershgorin <alexg@meprolight.com>2012-08-01 12:05:10 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-08-16 02:59:03 +0400
commitc72f429f665c1f8087dddde75f4e99f4d1f886cd (patch)
treefbb68bd1da18c75f3df59d7f420fb2fbffec0f88 /scripts
parent78fa59038eda0ad2501c67b6d79423addab4b871 (diff)
downloadlinux-c72f429f665c1f8087dddde75f4e99f4d1f886cd.tar.xz
[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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions