]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx-dvb: Don't put device in suspend mode at feed stop
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 3 Mar 2013 12:34:41 +0000 (09:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 19:35:54 +0000 (16:35 -0300)
commit219b85ec2c18d0f11ec7cee64cbd24351e0694da
tree737af4ac2a3ba5621702870e2f2450dda979cdc2
parent8ca437e93ca0c6c661c68276e52e0afdc145ec94
[media] em28xx-dvb: Don't put device in suspend mode at feed stop

Putting em28xx in suspend mode when a feed stops is just plain
wrong. Every time a new PES filter is changed, the DVB demux
code will stop the current feed, and then start a new one.
If are there any code that switches off the frontend, via
some GPIO setting, this would make the DVB fail.
This condition was actually trigged with one device, during
DVB scan, as, during scan, it is common that userspace apps
to change the filter several times, in order to get all
tables.
Also, this is not needed at all, since the em28xx code already
hooks into ops.ts_bus_ctrl(). This warrants that em28xx can
check there if DVB frontend is in usage or not. The code there
already puts the device on suspend mode, if the DVB frontend
is not used (closed).

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-dvb.c