Lines Matching refs:decoder

317 static void img_ir_decoder_preprocess(struct img_ir_decoder *decoder)  in img_ir_decoder_preprocess()  argument
320 if (!decoder->tolerance) in img_ir_decoder_preprocess()
321 decoder->tolerance = 10; /* percent */ in img_ir_decoder_preprocess()
323 decoder->tolerance = decoder->tolerance * 128 / 100; in img_ir_decoder_preprocess()
326 img_ir_timings_preprocess(&decoder->timings, decoder->unit); in img_ir_decoder_preprocess()
329 if (decoder->repeat) { in img_ir_decoder_preprocess()
330 img_ir_timings_preprocess(&decoder->rtimings, decoder->unit); in img_ir_decoder_preprocess()
331 img_ir_timings_defaults(&decoder->rtimings, &decoder->timings); in img_ir_decoder_preprocess()
344 static void img_ir_decoder_convert(const struct img_ir_decoder *decoder, in img_ir_decoder_convert() argument
349 reg_timings->ctrl = img_ir_control(&decoder->control); in img_ir_decoder_convert()
352 img_ir_timings_convert(&reg_timings->timings, &decoder->timings, in img_ir_decoder_convert()
353 decoder->tolerance, clock_hz); in img_ir_decoder_convert()
356 if (decoder->repeat) in img_ir_decoder_convert()
358 &decoder->rtimings, decoder->tolerance, in img_ir_decoder_convert()
479 if (!hw->decoder || !hw->decoder->filter) { in img_ir_set_filter()
489 ret = hw->decoder->filter(sc_filter, &filter, in img_ir_set_filter()
493 ret = hw->decoder->filter(sc_filter, &filter, in img_ir_set_filter()
540 const struct img_ir_decoder *decoder, in img_ir_set_decoder() argument
598 hw->decoder = decoder; in img_ir_set_decoder()
599 if (!decoder) in img_ir_set_decoder()
604 proto = decoder->type; in img_ir_set_decoder()
608 img_ir_decoder_convert(decoder, &hw->reg_timings, hw->clk_hz); in img_ir_set_decoder()
690 if (!hw->decoder || !hw->decoder->filter) in img_ir_change_protocol()
818 const struct img_ir_decoder *dec = hw->decoder; in img_ir_handle_data()
912 if (hw->decoder) { in img_ir_change_frequency()
913 img_ir_decoder_convert(hw->decoder, &hw->reg_timings, in img_ir_change_frequency()
960 if (!hw->decoder) in img_ir_isr_hw()
963 ct = hw->decoder->control.code_type; in img_ir_isr_hw()