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

media: rc: ir-spi: constrain carrier frequency



Carrier frequency is currently unconstrained, allowing the SPI transfer
to be allocated and filled only for it to be later rejected by the SPI
controller since the frequency is too large.

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

Also, move the number of bits per pulse to a macro since it is not used
in multiple places.

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 c898efdd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment