]> git.karo-electronics.de Git - linux-beck.git/commit
V4L/DVB (6045): ivtv: fix handling of INITIALIZE_INPUT fw call
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 18 Aug 2007 14:46:05 +0000 (11:46 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 01:05:31 +0000 (22:05 -0300)
commit3562c43be8cfd6e300508d7c33acebf3369eacd3
tree3b2aab0d4e078ddf5445d2ab82eea2838bcf01ba
parentda80be21362376443c6ee9918dfff408e83e0c39
V4L/DVB (6045): ivtv: fix handling of INITIALIZE_INPUT fw call

The CX2341X_ENC_INITIALIZE_INPUT firmware call requires careful handling,
otherwise the computer can freeze or the top-third of the screen can start
flickering. This patch ensures that CX2341X_ENC_INITIALIZE_INPUT is called
at the right time and in the right way.

In addition the stop capture handling was improved so that the last pending
DMA transfer is also processed. Otherwise this would be the first data that
arrived when a new capture was started which is not what you want.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-fileops.c
drivers/media/video/ivtv/ivtv-ioctl.c
drivers/media/video/ivtv/ivtv-streams.c