[media] dvb_usb_v2: use lock to sync feed and frontend control
authorAntti Palosaari <crope@iki.fi>
Sun, 17 Jun 2012 03:27:00 +0000 (00:27 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 4 Aug 2012 10:56:35 +0000 (07:56 -0300)
commit191f79a4d78292a82f9be9cc6c9c974365792f8f
tree1da2baa5280f68e337475f53163a64ecfeca510d
parente80896616c11f4c0a0bc17ebd87b86da194b859a
[media] dvb_usb_v2: use lock to sync feed and frontend control

There was synchronization problem when streaming was stopped.
Frontend was ran down before stream which causes problems.
Use mutex to synchronization. Now it looks like that:
LOCK
start frontend
UNLOCK
LOCK
start streaming
[...]
stop streaming
UNLOCK
LOCK
stop frontend
UNLOCK

Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/dvb_usb.h
drivers/media/dvb/dvb-usb/dvb_usb_dvb.c