OSDN Git Service

[media] cx88: increase API command timeout
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 29 Aug 2014 08:45:59 +0000 (05:45 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 3 Nov 2014 10:30:26 +0000 (08:30 -0200)
commitb8f884164bdfbcecf61e891b52d8a03fec9ed461
tree1ea71775ee77683cc78cfa8c851b9ea86f95f5bd
parent5e7045e3fa4976a37c6bbf337729ea47d0c886d0
[media] cx88: increase API command timeout

The timeout is way too small. Especially complicated command like
CX2341X_ENC_STOP_CAPTURE takes much more time than 10 ms. Increase the
timeout to 1 second, just as ivtv does (the cx88-blackbird has the
same IP core for MPEG compression as ivtv).

This solves a nasty issue where STOP_CAPTURE would timeout and the
mailbox is left in a busy state, making it impossible to start streaming
a second time without reloading the driver first.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/pci/cx88/cx88-blackbird.c