]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (10075): pxa-camera: setup the FIFO inactivity time-out register
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Dec 2008 14:38:03 +0000 (11:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 30 Dec 2008 11:40:19 +0000 (09:40 -0200)
commit71d06bc91f7982b83f46e9efa25306b5a9bae2c0
treec7478141810e57e31c47503fbc9c02683f71869f
parent3379729cf669ecef3057ac5ade8415680ce69471
V4L/DVB (10075): pxa-camera: setup the FIFO inactivity time-out register

Using PXA270's FIFO inactivity time-out register (CITOR) reduces FIFO overruns.
The time-out is calculated in CICLK / LCDCLK ticks and has to be longer than
one pixel time. For this we have to know the pixel clock frequency, which
usually is provided by the camera. We use the struct soc_camera_sense to
request PCLK frequency from the camera driver upon each data format change.

Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/pxa_camera.c