Commit c898efdd authored by Cosmin Tanislav's avatar Cosmin Tanislav Committed by Hans Verkuil
Browse files

media: rc: ir-spi: allocate buffer dynamically



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

Calculate the number of pulses for each duration in the received buffer
ahead of time, while also adding up the total pulses, to be able to
allocate a buffer that perfectly fits the total number of pulses, then
populate it.

Signed-off-by: default avatarCosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
parent 803b9eab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment