dvbsrc: smarten-up delsys autodetection logic
authorReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Wed, 4 May 2016 23:32:19 +0000 (16:32 -0700)
committerReynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
Fri, 6 May 2016 23:15:36 +0000 (16:15 -0700)
commit5b1191cb4c08e17c56a097e9ed1ed58becb2bb93
treee1af5af9ecfc2b0234bb1be37cf007df30b98545
parent571568a09ccdab82d644762c10d33a1c4315e499
dvbsrc: smarten-up delsys autodetection logic

When there's no explicit delivery system information
for a channel in the channel configuration file and
the user hasn't selected one via setting the delsys
property, we *guessed* it by selecting the last
supported delsys reported by the driver. This change
provides the basis for smarter delsys auto detection
and implements a rule for DVB-T2. Rules for other
delivery systems can be added in _guess_delsys() in
a similar way.

Additionally: Store list of adapter-supported
delivery systems instead of querying the driver each
time this information is needed.

Related to:

https://bugzilla.gnome.org/show_bug.cgi?id=765731
sys/dvb/gstdvbsrc.c
sys/dvb/gstdvbsrc.h