提交 c3d93192 编写于 作者: P Pavel Mihaylov 提交者: Linus Torvalds

[PATCH] V4L: 906: remote and more info for pctv cardbus whitespace cleanup

Remote and more info for PCTV Cardbus. Whitespace cleanup.
Signed-off-by: NPavel Mihaylov <bin@bash.info>
Signed-off-by: NNickolay V. Shmyrev <nshmyrev@yandex.ru>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 90e9df7f
...@@ -79,3 +79,4 @@ ...@@ -79,3 +79,4 @@
78 -> ASUSTeK P7131 Dual [1043:4862] 78 -> ASUSTeK P7131 Dual [1043:4862]
79 -> PCTV Cardbus TV/Radio (ITO25 Rev:2B) 79 -> PCTV Cardbus TV/Radio (ITO25 Rev:2B)
80 -> ASUS Digimatrix TV [1043:0210] 80 -> ASUS Digimatrix TV [1043:0210]
81 -> Philips Tiger reference design [1131:2018]
...@@ -2453,18 +2453,33 @@ struct saa7134_board saa7134_boards[] = { ...@@ -2453,18 +2453,33 @@ struct saa7134_board saa7134_boards[] = {
}, },
[SAA7134_BOARD_PCTV_CARDBUS] = { [SAA7134_BOARD_PCTV_CARDBUS] = {
/* Paul Tom Zalac <pzalac@gmail.com> */ /* Paul Tom Zalac <pzalac@gmail.com> */
/* tda8275a tuner doesnt work yet */ /* Pavel Mihaylov <bin@bash.info> */
.name = "PCTV Cardbus TV/Radio (ITO25 Rev:2B)", .name = "PCTV Cardbus TV/Radio (ITO25 Rev:2B)",
/* Sedna Cardbus TV Tuner */
.audio_clock = 0x00187de7, .audio_clock = 0x00187de7,
.tuner_type = TUNER_ABSENT, .tuner_type = TUNER_PHILIPS_TDA8290,
.radio_type = UNSET, .radio_type = UNSET,
.tuner_addr = ADDR_UNSET, .tuner_addr = ADDR_UNSET,
.radio_addr = ADDR_UNSET, .radio_addr = ADDR_UNSET,
.gpiomask = 0xe880c0,
.inputs = {{ .inputs = {{
.name = name_tv,
.vmux = 3,
.amux = TV,
.tv = 1,
},{
.name = name_comp1, .name = name_comp1,
.vmux = 1, .vmux = 1,
.amux = LINE2, .amux = LINE1,
},{
.name = name_svideo,
.vmux = 6,
.amux = LINE1,
}}, }},
.radio = {
.name = name_radio,
.amux = LINE2,
},
}, },
[SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = { [SAA7134_BOARD_ASUSTEK_DIGIMATRIX_TV] = {
/* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */ /* "Cyril Lacoux (Yack)" <clacoux@ifeelgood.org> */
......
...@@ -543,6 +543,42 @@ static IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE] = { ...@@ -543,6 +543,42 @@ static IR_KEYTAB_TYPE ir_codes_pinnacle[IR_KEYTAB_SIZE] = {
[ 0x0a ] = KEY_BACKSPACE, [ 0x0a ] = KEY_BACKSPACE,
}; };
/* Mapping for the 28 key remote control as seen at
http://www.sednacomputer.com/photo/cardbus-tv.jpg
Pavel Mihaylov <bin@bash.info> */
static IR_KEYTAB_TYPE pctv_cardbus_codes[IR_KEYTAB_SIZE] = {
[ 0 ] = KEY_KP0,
[ 1 ] = KEY_KP1,
[ 2 ] = KEY_KP2,
[ 3 ] = KEY_KP3,
[ 4 ] = KEY_KP4,
[ 5 ] = KEY_KP5,
[ 6 ] = KEY_KP6,
[ 7 ] = KEY_KP7,
[ 8 ] = KEY_KP8,
[ 9 ] = KEY_KP9,
[ 0x0a ] = KEY_AGAIN, /* Recall */
[ 0x0b ] = KEY_CHANNELUP,
[ 0x0c ] = KEY_VOLUMEUP,
[ 0x0d ] = KEY_MODE, /* Stereo */
[ 0x0e ] = KEY_STOP,
[ 0x0f ] = KEY_PREVIOUSSONG,
[ 0x10 ] = KEY_ZOOM,
[ 0x11 ] = KEY_TUNER, /* Source */
[ 0x12 ] = KEY_POWER,
[ 0x13 ] = KEY_MUTE,
[ 0x15 ] = KEY_CHANNELDOWN,
[ 0x18 ] = KEY_VOLUMEDOWN,
[ 0x19 ] = KEY_SHUFFLE, /* Snapshot */
[ 0x1a ] = KEY_NEXTSONG,
[ 0x1b ] = KEY_TEXT, /* Time Shift */
[ 0x1c ] = KEY_RADIO, /* FM Radio */
[ 0x1d ] = KEY_RECORD,
[ 0x1e ] = KEY_PAUSE,
};
/* -------------------- GPIO generic keycode builder -------------------- */ /* -------------------- GPIO generic keycode builder -------------------- */
static int build_key(struct saa7134_dev *dev) static int build_key(struct saa7134_dev *dev)
...@@ -745,6 +781,12 @@ int saa7134_input_init1(struct saa7134_dev *dev) ...@@ -745,6 +781,12 @@ int saa7134_input_init1(struct saa7134_dev *dev)
mask_keyup = 0x004000; mask_keyup = 0x004000;
polling = 50; // ms polling = 50; // ms
break; break;
case SAA7134_BOARD_PCTV_CARDBUS:
ir_codes = pctv_cardbus_codes;
mask_keycode = 0x001f00;
mask_keyup = 0x004000;
polling = 50; // ms
break;
case SAA7134_BOARD_GOTVIEW_7135: case SAA7134_BOARD_GOTVIEW_7135:
ir_codes = gotview7135_codes; ir_codes = gotview7135_codes;
mask_keycode = 0x0003EC; mask_keycode = 0x0003EC;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册