Commit fdd1eeb4 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] siano: allow compiling it without RC support

Remote controller support should be optional on all drivers.

Make it optional at Siano's driver.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 2c76a12a
# Used by common drivers, when they need to ask questions
config MEDIA_COMMON_OPTIONS
bool
comment "common driver options"
depends on MEDIA_COMMON_OPTIONS
source "drivers/media/common/b2c2/Kconfig" source "drivers/media/common/b2c2/Kconfig"
source "drivers/media/common/saa7146/Kconfig" source "drivers/media/common/saa7146/Kconfig"
source "drivers/media/common/siano/Kconfig" source "drivers/media/common/siano/Kconfig"
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
config SMS_SIANO_MDTV config SMS_SIANO_MDTV
tristate tristate
depends on DVB_CORE && RC_CORE && HAS_DMA depends on DVB_CORE && HAS_DMA
depends on SMS_USB_DRV || SMS_SDIO_DRV depends on SMS_USB_DRV || SMS_SDIO_DRV
default y default y
---help--- ---help---
...@@ -15,3 +15,11 @@ config SMS_SIANO_MDTV ...@@ -15,3 +15,11 @@ config SMS_SIANO_MDTV
Further documentation on this driver can be found on the WWW Further documentation on this driver can be found on the WWW
at http://www.siano-ms.com/ at http://www.siano-ms.com/
config SMS_SIANO_RC
bool "Enable Remote Controller support for Siano devices"
depends on SMS_SIANO_MDTV && RC_CORE
depends on SMS_USB_DRV || SMS_SDIO_DRV
depends on MEDIA_COMMON_OPTIONS
default y
---help---
Choose Y to select Remote Controller support for Siano driver.
smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o
obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o
obj-$(CONFIG_SMS_SIANO_RC) += smsir.o
ccflags-y += -Idrivers/media/dvb-core ccflags-y += -Idrivers/media/dvb-core
ccflags-y += $(extra-cflags-y) $(extra-cflags-m) ccflags-y += $(extra-cflags-y) $(extra-cflags-m)
......
...@@ -46,10 +46,19 @@ struct ir_t { ...@@ -46,10 +46,19 @@ struct ir_t {
u32 controller; u32 controller;
}; };
#ifdef CONFIG_SMS_SIANO_RC
int sms_ir_init(struct smscore_device_t *coredev); int sms_ir_init(struct smscore_device_t *coredev);
void sms_ir_exit(struct smscore_device_t *coredev); void sms_ir_exit(struct smscore_device_t *coredev);
void sms_ir_event(struct smscore_device_t *coredev, void sms_ir_event(struct smscore_device_t *coredev,
const char *buf, int len); const char *buf, int len);
#else
inline static int sms_ir_init(struct smscore_device_t *coredev) {
return 0;
}
inline static void sms_ir_exit(struct smscore_device_t *coredev) {};
inline static void sms_ir_event(struct smscore_device_t *coredev,
const char *buf, int len) {};
#endif
#endif /* __SMS_IR_H__ */ #endif /* __SMS_IR_H__ */
...@@ -6,5 +6,6 @@ config SMS_SDIO_DRV ...@@ -6,5 +6,6 @@ config SMS_SDIO_DRV
tristate "Siano SMS1xxx based MDTV via SDIO interface" tristate "Siano SMS1xxx based MDTV via SDIO interface"
depends on DVB_CORE && RC_CORE && HAS_DMA depends on DVB_CORE && RC_CORE && HAS_DMA
depends on MMC depends on MMC
select MEDIA_COMMON_OPTIONS
---help--- ---help---
Choose if you would like to have Siano's support for SDIO interface Choose if you would like to have Siano's support for SDIO interface
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
config SMS_USB_DRV config SMS_USB_DRV
tristate "Siano SMS1xxx based MDTV receiver" tristate "Siano SMS1xxx based MDTV receiver"
depends on DVB_CORE && RC_CORE && HAS_DMA depends on DVB_CORE && RC_CORE && HAS_DMA
select MEDIA_COMMON_OPTIONS
---help--- ---help---
Choose if you would like to have Siano's support for USB interface Choose if you would like to have Siano's support for USB interface
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment