MTK_MAX_SAMPLES
rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1);
ir->rc->timeout = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1);
#define MTK_IR_END(v, p) ((v) == MTK_MAX_SAMPLES && (p) == 0)