[media] cx23885-dvb: use a better approach to hook set_frontend
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 9 Aug 2013 11:53:25 +0000 (08:53 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 22 Aug 2013 15:02:39 +0000 (12:02 -0300)
commit15472faf12591a3667fe729d66ae9bf48c8bd1bb
tree4291f50ddf63ee586541bde57cc0901832f7985c
parent62a37dc7a27366e915413884a8b69f8fbf9d72ea
[media] cx23885-dvb: use a better approach to hook set_frontend

When the frontend drivers got converted to DVBv5 API, the original
hook that tracked when a frontend is set got removed, being replaced
by an approach that would use the gate control. That doesn't work
fine with some boards. Also, the code were called more times than
desired.
Replace it by a logic that will hook the dvb set_frontend ops,
with works with both DVBv3 and DVBv5 calls.
Tested on a Mygica X8502 OEM board.

Tested-by: Alfredo Delaiti <alfredodelaiti@netscape.net>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/pci/cx23885/cx23885-dvb.c
drivers/media/pci/cx23885/cx23885.h