Skip to contentSkip to conversation

Siano 10238 Add IR (remote controllers) support

PATCH New Uri Shkolnik 1 participant 1 message Feb 8, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Siano 10238 Add IR (remote controllers) support

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1234106917 -7200
# Node ID 3caff6dae0753d2adb581b7ef5e309a1954820b2 # Parent 56b506432a55cebe0f52eb28cc8b55584bc9a429 Add IR support for SMS based devices

From: Uri Shkolnik <[email protected]>

Add IR support, which is used for remote controllers, including kernel "input" device operations.
Requires all Siano's patches up to this patch.

Priority: normal

linux/drivers/media/dvb/siano/Makefile +1 -1
diff -r 56b506432a55 -r 3caff6dae075 linux/drivers/media/dvb/siano/Makefile
@@ -31,7 +31,7 @@ SMS_SPI_PXA310_DRV := 0
 
 
 # Default object, include in every build variant
-SMSOBJ := smscoreapi.o sms-cards.o smsendian.o
+SMSOBJ := smscoreapi.o sms-cards.o smsendian.o smsir.o
 
 EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
 
linux/drivers/media/dvb/siano/sms-cards.c +3 -6
diff -r 56b506432a55 -r 3caff6dae075 linux/drivers/media/dvb/siano/sms-cards.c
@@ -18,6 +18,7 @@
  */
 
 #include "sms-cards.h"
+#include "smsir.h"
 
 struct usb_device_id smsusb_id_table[] = {
 	{ USB_DEVICE(0x187f, 0x0010),
@@ -77,22 +78,18 @@ static struct sms_board sms_boards[] = {
 		.name =
 		"Siano Stellar Digital Receiver",
 		.type = SMS_STELLAR,
-		.fw[DEVICE_MODE_DVBT_BDA] =
-		"sms1xxx-stellar-dvbt-01.fw",
 	},
 	[SMS1XXX_BOARD_SIANO_NOVA_A] = {
 	/* 2 */
 		.name = "Siano Nova A Digital Receiver",
 		.type = SMS_NOVA_A0,
-		.fw[DEVICE_MODE_DVBT_BDA] =
-		"sms1xxx-nova-a-dvbt-01.fw",
 	},
 	[SMS1XXX_BOARD_SIANO_NOVA_B] = {
 	/* 3 */
 		.name = "Siano Nova B Digital Receiver",
 		.type = SMS_NOVA_B0,
-		.fw[DEVICE_MODE_DVBT_BDA] =
-		"sms1xxx-nova-b-dvbt-01.fw",
+		.ir_kb_type = SMS_IR_KB_HCW_SILVER,
+		.board_cfg.ir = 4,
 	},
 	[SMS1XXX_BOARD_SIANO_VEGA] = {
 	/* 4 */
linux/drivers/media/dvb/siano/sms-cards.h +2 -0
diff -r 56b506432a55 -r 3caff6dae075 linux/drivers/media/dvb/siano/sms-cards.h
@@ -22,6 +22,7 @@
 
 #include <linux/usb.h>
 #include "smscoreapi.h"
+#include "smsir.h"
 
 #define SMS_BOARD_UNKNOWN 0
 #define SMS1XXX_BOARD_SIANO_STELLAR 1
@@ -71,6 +72,7 @@ struct sms_board {
 	enum sms_device_type_st type;
 	char *name, *fw[DEVICE_MODE_MAX];
 	struct sms_board_gpio_cfg board_cfg;
+	enum ir_kb_type ir_kb_type;
 };
 
 struct sms_board *sms_get_board(int id);
linux/drivers/media/dvb/siano/smscoreapi.c +81 -55

190 lines not on this page · raw message

linux/drivers/media/dvb/siano/smscoreapi.h +59 -0

83 lines not on this page · raw message

linux/drivers/media/dvb/siano/smsir.c new file +301 -0

301 lines not on this page · raw message

linux/drivers/media/dvb/siano/smsir.h new file +93 -0

93 lines not on this page · raw message

linux/drivers/media/dvb/siano/smsspicommon.c +31 -13

64 lines not on this page · raw message