diff options
Diffstat (limited to 'drivers/media/common/siano')
-rw-r--r-- | drivers/media/common/siano/Kconfig | 18 | ||||
-rw-r--r-- | drivers/media/common/siano/Makefile | 6 | ||||
-rw-r--r-- | drivers/media/common/siano/smscoreapi.c | 2 | ||||
-rw-r--r-- | drivers/media/common/siano/smsir.c | 2 | ||||
-rw-r--r-- | drivers/media/common/siano/smsir.h | 9 |
5 files changed, 26 insertions, 11 deletions
diff --git a/drivers/media/common/siano/Kconfig b/drivers/media/common/siano/Kconfig index 425aeadfb49d..68f0f604678e 100644 --- a/drivers/media/common/siano/Kconfig +++ b/drivers/media/common/siano/Kconfig | |||
@@ -4,14 +4,16 @@ | |||
4 | 4 | ||
5 | config SMS_SIANO_MDTV | 5 | config SMS_SIANO_MDTV |
6 | tristate | 6 | tristate |
7 | depends on DVB_CORE && RC_CORE && HAS_DMA | 7 | depends on DVB_CORE && HAS_DMA |
8 | depends on !RC_CORE || RC_CORE | ||
8 | depends on SMS_USB_DRV || SMS_SDIO_DRV | 9 | depends on SMS_USB_DRV || SMS_SDIO_DRV |
9 | default y | 10 | default y |
10 | ---help--- | ||
11 | Choose Y or M here if you have MDTV receiver with a Siano chipset. | ||
12 | |||
13 | To compile this driver as a module, choose M here | ||
14 | (The module will be called smsmdtv). | ||
15 | 11 | ||
16 | Further documentation on this driver can be found on the WWW | 12 | config SMS_SIANO_RC |
17 | at http://www.siano-ms.com/ | 13 | bool "Enable Remote Controller support for Siano devices" |
14 | depends on SMS_SIANO_MDTV && RC_CORE | ||
15 | depends on SMS_USB_DRV || SMS_SDIO_DRV | ||
16 | depends on MEDIA_COMMON_OPTIONS | ||
17 | default y | ||
18 | ---help--- | ||
19 | Choose Y to select Remote Controller support for Siano driver. | ||
diff --git a/drivers/media/common/siano/Makefile b/drivers/media/common/siano/Makefile index 2a09279e0648..81b1e985bea5 100644 --- a/drivers/media/common/siano/Makefile +++ b/drivers/media/common/siano/Makefile | |||
@@ -1,7 +1,11 @@ | |||
1 | smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o | 1 | smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o |
2 | 2 | ||
3 | obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o | 3 | obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o |
4 | 4 | ||
5 | ifeq ($(CONFIG_SMS_SIANO_RC),y) | ||
6 | smsmdtv-objs += smsir.o | ||
7 | endif | ||
8 | |||
5 | ccflags-y += -Idrivers/media/dvb-core | 9 | ccflags-y += -Idrivers/media/dvb-core |
6 | ccflags-y += $(extra-cflags-y) $(extra-cflags-m) | 10 | ccflags-y += $(extra-cflags-y) $(extra-cflags-m) |
7 | 11 | ||
diff --git a/drivers/media/common/siano/smscoreapi.c b/drivers/media/common/siano/smscoreapi.c index 9cc55546cc30..1842e64e6338 100644 --- a/drivers/media/common/siano/smscoreapi.c +++ b/drivers/media/common/siano/smscoreapi.c | |||
@@ -1092,7 +1092,7 @@ EXPORT_SYMBOL_GPL(smscore_onresponse); | |||
1092 | * @return pointer to descriptor on success, NULL on error. | 1092 | * @return pointer to descriptor on success, NULL on error. |
1093 | */ | 1093 | */ |
1094 | 1094 | ||
1095 | struct smscore_buffer_t *get_entry(struct smscore_device_t *coredev) | 1095 | static struct smscore_buffer_t *get_entry(struct smscore_device_t *coredev) |
1096 | { | 1096 | { |
1097 | struct smscore_buffer_t *cb = NULL; | 1097 | struct smscore_buffer_t *cb = NULL; |
1098 | unsigned long flags; | 1098 | unsigned long flags; |
diff --git a/drivers/media/common/siano/smsir.c b/drivers/media/common/siano/smsir.c index 37bc5c4b8ad8..b8c5cad78537 100644 --- a/drivers/media/common/siano/smsir.c +++ b/drivers/media/common/siano/smsir.c | |||
@@ -88,7 +88,7 @@ int sms_ir_init(struct smscore_device_t *coredev) | |||
88 | 88 | ||
89 | dev->priv = coredev; | 89 | dev->priv = coredev; |
90 | dev->driver_type = RC_DRIVER_IR_RAW; | 90 | dev->driver_type = RC_DRIVER_IR_RAW; |
91 | dev->allowed_protos = RC_TYPE_ALL; | 91 | dev->allowed_protos = RC_BIT_ALL; |
92 | dev->map_name = sms_get_board(board_id)->rc_codes; | 92 | dev->map_name = sms_get_board(board_id)->rc_codes; |
93 | dev->driver_name = MODULE_NAME; | 93 | dev->driver_name = MODULE_NAME; |
94 | 94 | ||
diff --git a/drivers/media/common/siano/smsir.h b/drivers/media/common/siano/smsir.h index ae92b3a8587e..69b59b9eee28 100644 --- a/drivers/media/common/siano/smsir.h +++ b/drivers/media/common/siano/smsir.h | |||
@@ -46,10 +46,19 @@ struct ir_t { | |||
46 | u32 controller; | 46 | u32 controller; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | #ifdef CONFIG_SMS_SIANO_RC | ||
49 | int sms_ir_init(struct smscore_device_t *coredev); | 50 | int sms_ir_init(struct smscore_device_t *coredev); |
50 | void sms_ir_exit(struct smscore_device_t *coredev); | 51 | void sms_ir_exit(struct smscore_device_t *coredev); |
51 | void sms_ir_event(struct smscore_device_t *coredev, | 52 | void sms_ir_event(struct smscore_device_t *coredev, |
52 | const char *buf, int len); | 53 | const char *buf, int len); |
54 | #else | ||
55 | inline static int sms_ir_init(struct smscore_device_t *coredev) { | ||
56 | return 0; | ||
57 | } | ||
58 | inline static void sms_ir_exit(struct smscore_device_t *coredev) {}; | ||
59 | inline static void sms_ir_event(struct smscore_device_t *coredev, | ||
60 | const char *buf, int len) {}; | ||
61 | #endif | ||
53 | 62 | ||
54 | #endif /* __SMS_IR_H__ */ | 63 | #endif /* __SMS_IR_H__ */ |
55 | 64 | ||