mirror of https://gitee.com/openkylin/linux.git
V4L/DVB (4815): Remote support for Avermedia A16AR
The remote as well as the GPIO interface is the same as what comes with 777. For an example of mplayer lirc configuration, see http://pasky.or.cz/~pasky/dev/v4l/lircrc Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
450efcfd2e
commit
29e0f1a136
|
@ -3735,6 +3735,7 @@ int saa7134_board_init1(struct saa7134_dev *dev)
|
|||
case SAA7134_BOARD_FLYDVBT_LR301:
|
||||
case SAA7134_BOARD_FLYDVBTDUO:
|
||||
case SAA7134_BOARD_PROTEUS_2309:
|
||||
case SAA7134_BOARD_AVERMEDIA_A16AR:
|
||||
dev->has_remote = SAA7134_REMOTE_GPIO;
|
||||
break;
|
||||
case SAA7134_BOARD_FLYDVBS_LR300:
|
||||
|
@ -3773,7 +3774,6 @@ int saa7134_board_init1(struct saa7134_dev *dev)
|
|||
saa_writeb(SAA7134_GPIO_GPMODE3, 0x08);
|
||||
saa_writeb(SAA7134_GPIO_GPSTATUS3, 0x00);
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_A16AR:
|
||||
case SAA7134_BOARD_AVERMEDIA_CARDBUS:
|
||||
/* power-up tuner chip */
|
||||
saa_andorl(SAA7134_GPIO_GPMODE0 >> 2, 0xffffffff, 0xffffffff);
|
||||
|
|
|
@ -185,7 +185,6 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
|||
case SAA7134_BOARD_AVERMEDIA_STUDIO_305:
|
||||
case SAA7134_BOARD_AVERMEDIA_STUDIO_307:
|
||||
case SAA7134_BOARD_AVERMEDIA_GO_007_FM:
|
||||
case SAA7134_BOARD_AVERMEDIA_A16AR:
|
||||
ir_codes = ir_codes_avermedia;
|
||||
mask_keycode = 0x0007C8;
|
||||
mask_keydown = 0x000010;
|
||||
|
@ -195,6 +194,7 @@ int saa7134_input_init1(struct saa7134_dev *dev)
|
|||
saa_setb(SAA7134_GPIO_GPSTATUS0, 0x4);
|
||||
break;
|
||||
case SAA7134_BOARD_AVERMEDIA_777:
|
||||
case SAA7134_BOARD_AVERMEDIA_A16AR:
|
||||
ir_codes = ir_codes_avermedia;
|
||||
mask_keycode = 0x02F200;
|
||||
mask_keydown = 0x000400;
|
||||
|
|
Loading…
Reference in New Issue