[PATCH v4 0/2] media: rc: ir-spi: allocate buffer dynamically

From: Cosmin Tanislav
Date: Wed Jun 11 2025 - 07:24:15 EST


Replace the static transmit buffer with a dynamically allocated one,
removing the limit imposed on the number of pulses to transmit.

Add a check to constrain the carrier frequency inside
ir_spi_set_tx_carrier().

V4:
* add separate patch to constrain the carrier frequency

V3:
* move the allocation to be done per-TX operation

V2:
* use devm_krealloc_array

Cosmin Tanislav (2):
media: rc: ir-spi: allocate buffer dynamically
media: rc: ir-spi: constrain carrier frequency

drivers/media/rc/ir-spi.c | 39 +++++++++++++++++++++++++--------------
1 file changed, 25 insertions(+), 14 deletions(-)

--
2.49.0