ODROID-COMMON: remote: Add a setup of user remote wakeup decode type

Change-Id: Ib7bb759dfec67433b596ed64997f6894d1c7ec27
Signed-by-off: Joy Cho <joy.cho@hardkernel.com>
This commit is contained in:
Joy Cho
2019-03-13 09:57:04 +09:00
committed by Dongjin Kim
parent 9b0050f350
commit 21de95e0e3
2 changed files with 7 additions and 4 deletions

View File

@@ -629,6 +629,9 @@ static int ir_get_devtree_pdata(struct platform_device *pdev)
chip->protocol = 1;
}
dev_info(chip->dev, "protocol = 0x%x\n", chip->protocol);
#if defined(CONFIG_IR_HK_LIRC_HELPER)
remote_wakeup_decode_type(chip->protocol);
#endif
ret = of_property_read_u32(pdev->dev.of_node,
"led_blink", &chip->r_dev->led_blink);

View File

@@ -221,8 +221,8 @@ int ir_scancode_sort(struct ir_map_tab *ir_map);
struct ir_map_tab_list *seek_map_tab(struct remote_chip *chip, int custom_code);
const struct aml_remote_reg_proto **ir_get_proto_reg(void);
void ir_tab_free(struct ir_map_tab_list *ir_map_list);
int remote_pulses_malloc(struct remote_chip *chip);
void remote_pulses_free(struct remote_chip *chip);
void demod_reset(struct remote_chip *chip);
void demod_init(struct remote_chip *chip);
#if defined(CONFIG_IR_HK_LIRC_HELPER)
extern void remote_wakeup_decode_type(int dec_type);
#endif
#endif