V4L/DVB (8088): ivtv: yuv decoder lock fix
authorIan Armstrong <ian@iarmst.co.uk>
Sat, 21 Jun 2008 12:25:23 +0000 (09:25 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:11:09 +0000 (07:11 -0300)
commit464e9f3a0cabce9a7cf51f382f129d464483b0d0
tree2f1cb5bdb035cae772954ceece9edfda4948aee0
parent0b5a30e90ddcb0095a1bfc4b44eb3fd1e8ee9f3c
V4L/DVB (8088): ivtv: yuv decoder lock fix

write() operations to the yuv device may not always 'start' the decoder.
Although yuv output will be correct, some functions which should be disabled
while the decoder is in use remain enabled. This can result in hardware
registers being corrupted, causing problems with the mpeg decoder. This patch
simply moves the existing decoder 'start' sequence to earlier in the write()
handler.

Signed-off-by: Ian Armstrong <ian@iarmst.demon.co.uk>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-fileops.c