[media] dvb-frontends/stv0367: support reading if_khz from tuner config
authorDaniel Scheller <d.scheller@gmx.net>
Wed, 29 Mar 2017 16:43:07 +0000 (13:43 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 12:23:41 +0000 (09:23 -0300)
commitb16338e3d346ced3956e21408f265c7f308f9ba4
tree7e4426cc4e4219d86dcf8f6aee857f6ba4f51b42
parent7718dcf06ed17b18e8a4c6d78f10235eac02414b
[media] dvb-frontends/stv0367: support reading if_khz from tuner config

Currently, if_khz is set and provided using the configuration var in
struct stv0367_config. However, in some constellations, the value might be
different for differing channel bandwidths or even -T and -C operation.
When e.g. used in conjunction with TDA18212 tuners, the tuner frontend
might be aware of the different freqs. This factors if_khz retrieval in a
function, which checks a new flag if an automatic retrieval attempt should
be made, and if the tuner provides it, use it whenever needed.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/stv0367.c