summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-frontends/cxd2841er.h
diff options
context:
space:
mode:
authorDaniel Scheller <d.scheller@gmx.net>2017-04-09 22:38:17 +0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-06-20 15:46:22 +0300
commit4b866c4e656956d060cb1c46eb1b8b711c6e7ad7 (patch)
tree1d65163ab0bab187c1a5ece4d8023503f16cf073 /drivers/media/dvb-frontends/cxd2841er.h
parentc7518d13f70e62e2af3a30858a977365811783df (diff)
downloadlinux-4b866c4e656956d060cb1c46eb1b8b711c6e7ad7.tar.xz
[media] dvb-frontends/cxd2841er: support IF speed calc from tuner values
Add a AUTO_IFHZ flag and a function that will read IF speed values from any attached tuner if the tuner supports this and if AUTO_IFHZ is enabled, and else the passed default value (which probably matches Sony ASCOT tuners) will be passed back. The returned value is then used to calculate the iffeq which the demod will be programmed with. Signed-off-by: Daniel Scheller <d.scheller@gmx.net> Acked-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/cxd2841er.h')
-rw-r--r--drivers/media/dvb-frontends/cxd2841er.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/cxd2841er.h b/drivers/media/dvb-frontends/cxd2841er.h
index 15564af1cf92..38d7f9f4ad6f 100644
--- a/drivers/media/dvb-frontends/cxd2841er.h
+++ b/drivers/media/dvb-frontends/cxd2841er.h
@@ -25,6 +25,7 @@
#include <linux/dvb/frontend.h>
#define CXD2841ER_USE_GATECTRL 1
+#define CXD2841ER_AUTO_IFHZ 2
enum cxd2841er_xtal {
SONY_XTAL_20500, /* 20.5 MHz */