PD#169652: Kconfig: Add configuration items.
Change-Id: If5d0a987bda435975fb3a6fa7be26ff8f7099e6f
Signed-off-by: Chuanzhi Wang <chuanzhi.wang@amlogic.com>
CONFIG_AMLOGIC_ESM=y
CONFIG_AMLOGIC_WIFI=y
CONFIG_AMLOGIC_BT_DEVICE=y
-CONFIG_AMLOGIC_DVB_COMPAT=y
CONFIG_AMLOGIC_PCIE=y
CONFIG_AMLOGIC_IRBLASTER=y
CONFIG_AMLOGIC_IIO=y
+#
+# Amlogic DVB configuration
+#
+
+menu "Amlogic dvb configuration"
+
+config AMLOGIC_DVB
+ bool "Amlogic dvb support"
+ select DVB_CORE
+ select AMLOGIC_DVB_COMPAT
+ default y
+ help
+ This option is used only to control the
+ compilation of dvb related driver code, for
+ example hw_demux, it is enabled by default,
+ When it is turned on,it will automatically
+ select DVB_CORE and AMLOGIC_DVB_COMPAT.
+
+config AMLOGIC_DVB_COMPAT
+ bool "Compat amlogic dvb"
+ depends on AMLOGIC_DVB && DVB_CORE
+ default y
+ help
+ This option is used only to compatible with
+ amlogic dvb related code, for example dvb-core,
+ it is enabled by default,depending on
+ AMLOGIC_DVB and DVB_CORE.
+
+endmenu
+
+
#
# Amlogic multimedia configuration
#
endif
source "drivers/amlogic/media/dtv_demod/Kconfig"
endmenu
+
+
unsigned int cmd, unsigned long args)
{
unsigned long ret;
-
+#ifdef CONFIG_COMPAT
args = (unsigned long)compat_ptr(args);
+#endif
ret = dvb_demux_ioctl(filp, cmd, args);
return ret;
}
unsigned int cmd, unsigned long args)
{
unsigned long ret;
-
+#ifdef CONFIG_COMPAT
args = (unsigned long)compat_ptr(args);
+#endif
ret = dvb_dvr_ioctl(filp, cmd, args);
return ret;
}
unsigned int cmd, unsigned long args)
{
unsigned long ret;
-
+#ifdef CONFIG_COMPAT
args = (unsigned long)compat_ptr(args);
+#endif
ret = dvb_ca_en50221_io_ioctl(filp, cmd, args);
return ret;
}
{
unsigned long ret;
struct dtv_properties tvps;
-
+#ifdef CONFIG_COMPAT
args = (unsigned long)compat_ptr(args);
-
+#endif
if ((cmd == FE_SET_PROPERTY) || (cmd == FE_GET_PROPERTY)) {
if (copy_from_user(&tvps, (void *)args,
sizeof(struct dtv_properties)))
return -EFAULT;
+#ifdef CONFIG_COMPAT
tvps.props = compat_ptr((unsigned long)tvps.props);
+#endif
if (copy_to_user((void *)args, (void *)&tvps,
sizeof(struct dtv_properties)))
return -EFAULT;