[media] it913x: fix pid filter
authorAntti Palosaari <crope@iki.fi>
Sun, 10 Mar 2013 00:10:14 +0000 (21:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 23 Mar 2013 13:02:41 +0000 (10:02 -0300)
commitb09e71a8de288bbd2e8ad48e6537d64214aad51b
tree12454735998545233b6de2df4fe7508b1bb67005
parent96d7ca5ec9baac231ab3dfd62abcb75141d80626
[media] it913x: fix pid filter

I just made commit: "dvb_usb_v2: rework USB streaming logic" that
breaks that driver PID filter.
it913x driver checks use of PID filter directly from DVB USB v2 core
internal variable "adap->pid_filtering" and stores it to own state.
Calling order of .pid_filter_ctrl() and .pid_filter() was changed
and due to that state was updated too late. Update state earlier.
TODO: checking PID filter usage from DVB USB v2 is not very good idea
as PID filter callbacks are called only when PID filter is enabled.

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