Ximin Luo - 2024-03-20

BTW, if I don't use the hack, I get buffer overflow while generating IR pattern.

From ftdi.c:

static int tx_baud_rate = 65536;
[..]
[..] The FT232R also becomes unusable if you set the

* tx_baud_rate to values other than 65536.

Even if the hack were not required, these two bits of code seem very weird. What real world device has a baud rate of exactly 65536? My device at least certainly works with txbaud=15200 and it is not "unusable" contrary to the comment.

The Linux gpio_ir_tx driver defaults to 38000 so perhaps that's a better default? Of course the multipliers here need to be taken into account, and that's outside of my knowledge.