[media] dvb_usb_v2: rework USB streaming logic
authorAntti Palosaari <crope@iki.fi>
Sat, 9 Mar 2013 19:10:55 +0000 (16:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Mar 2013 13:02:04 +0000 (10:02 -0300)
commit96d7ca5ec9baac231ab3dfd62abcb75141d80626
treeee45b36c9c4de19fb9b8d83467fc651696bc8b85
parent61356eea6742ad38ad9ecfd5c65e2662e4c9d8ab
[media] dvb_usb_v2: rework USB streaming logic

Control flow order changed a little bit. HW PID filter is now
disabled also when streaming is stopped - earlier it was just
set only when streaming was started.
Control flow is now:
* set streaming status bit
* submit USB streaming packets
* enable HW PID filter
* ask device to start streaming
* N x add PID to device HW PID filter
... streaming video ...
* N x remove PID from device HW PID filter
* ask device to stop streaming
* disable HW PID filter
* kill USB streaming packets
* clear streaming status bit

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