提交 c29bc4d7 编写于 作者: M Maxim Levitsky 提交者: Mauro Carvalho Chehab

[media] IR: ene_ir: don't upload all settings on each TX packet

This is just unnessesary, and now more logical

Also a lot of refactoring
Signed-off-by: NMaxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 e1b1ddbe
此差异已折叠。
......@@ -215,7 +215,7 @@ struct ene_device {
/* HW features */
int hw_revision; /* hardware revision */
bool hw_use_gpio_0a; /* gpio40 is demodulated input*/
bool hw_use_gpio_0a; /* gpio0a is demodulated input*/
bool hw_extra_buffer; /* hardware has 'extra buffer' */
bool hw_fan_input; /* fan input is IR data source */
bool hw_learning_and_tx_capable; /* learning & tx capable */
......@@ -252,11 +252,11 @@ struct ene_device {
int transmitter_mask;
/* RX settings */
bool learning_enabled; /* learning input enabled */
bool learning_mode_enabled; /* learning input enabled */
bool carrier_detect_enabled; /* carrier detect enabled */
int rx_period_adjust;
bool rx_enabled;
};
static int ene_irq_status(struct ene_device *dev);
static void ene_read_hw_pointer(struct ene_device *dev);
static void ene_rx_read_hw_pointer(struct ene_device *dev);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册