linux/drivers/media/dvb
Mauro Carvalho Chehab 51dcb19aaf [media] dvb_frontend: Don't call get_frontend() if idle
If the frontend is in idle state, don't call get_frontend.

Calling get_frontend() when the device is not tuned may
result in wrong parameters to be returned to the
userspace.

I was tempted to not call get_frontend() at all, except
inside the dvb frontend thread, but this won't work for
all cases. The ISDB-T specs (ABNT NBR 15601 and ARIB
STD-B31) allow the broadcaster to dynamically change the
channel specs at runtime. That means that an ISDB-T optimized
application may want/need to monitor the TMCC tables, decoded
at the frontends via get_frontend call.

So, let's do the simpler change here.

Eventually, the logic could be changed to work only if
the device is tuned and has lock, but, even so, the
lock is also standard-dependent. For ISDB-T, the right
lock to wait is that the demod has TMCC lock. So, drivers
may need to implement some logic to detect if the get_frontend
info was retrieved or not.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-01-17 16:20:37 -02:00
..
b2c2 [media] flexcop: CodingStyle fix: don't use "if ((ret = foo()) < 0)" 2012-01-07 11:51:00 -02:00
bt8xx [media] dvb-bt8xx: convert printks to pr_err() 2012-01-07 11:53:35 -02:00
ddbridge [media] drxk: create only one frontend for both DVB-C and DVB-T 2012-01-05 16:44:09 -02:00
dm1105 [media] dm1105: release dvbnet on frontend attachment failure 2012-01-07 11:54:03 -02:00
dvb-core [media] dvb_frontend: Don't call get_frontend() if idle 2012-01-17 16:20:37 -02:00
dvb-usb [media] anysee: do not attach same frontend twice 2012-01-16 12:45:29 -02:00
firewire [media] firedtv: handle errors from dvb_net_init 2012-01-06 12:51:26 -02:00
frontends [media] cxd2820r: do not allow get_frontend() when demod is not initialized 2012-01-16 12:55:47 -02:00
mantis [media] tuners: remove dvb_frontend_parameters from set_params() 2011-12-31 08:57:29 -02:00
ngene [media] drxk: create only one frontend for both DVB-C and DVB-T 2012-01-05 16:44:09 -02:00
pluto2 [media] tuners: remove dvb_frontend_parameters from set_params() 2011-12-31 08:57:29 -02:00
pt1 [media] dvb: Remove ops->info.type from frontends 2012-01-04 17:30:34 -02:00
siano [media] dvb: Remove ops->info.type from frontends 2012-01-04 17:30:34 -02:00
ttpci [media] av7110: convert set_fontend to use DVBv5 parameters 2011-12-31 09:15:04 -02:00
ttusb-budget [media] ttusb-budget: use goto for exception handling 2012-01-06 12:44:22 -02:00
ttusb-dec [media] dvb: Remove ops->info.type from frontends 2012-01-04 17:30:34 -02:00
Kconfig [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00
Makefile [media] ddbridge: Allow compiling of the driver 2011-07-27 17:55:45 -03:00