]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
V4L/DVB (9244): video: improve sh_mobile_ceu buffer handling
authorMagnus Damm <damm@igel.co.jp>
Thu, 16 Oct 2008 22:51:20 +0000 (19:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 17 Oct 2008 20:26:10 +0000 (17:26 -0300)
commit51354cc3e0c233803505ac8842c3683f42ff42bb
tree80aa7f1aedf79deed95a99dfe94d0cd51a868f5f
parent2c0a072e3efc17c27566c28028f4b46f79c1f0ca
V4L/DVB (9244): video: improve sh_mobile_ceu buffer handling

This patch improves the buffer handling in the sh_mobile_ceu driver.

Instead of marking all queued buffers as VIDEOBUF_ACTIVE the code now
marks queued-but-not-active buffers as VIDEOBUF_QUEUED and buffers
involved in dma as VIDEOBUF_ACTIVE. The code is also updated with
code to cancel active buffers, thanks to Morimoto-san.

Tested-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/sh_mobile_ceu_camera.c