mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-29 04:09:39 +00:00
media: rc-loopback: send carrier reports
When carrier reports are enabled, send them over loopback. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
d9d0103940
commit
7300d0c239
1 changed files with 10 additions and 2 deletions
|
@ -111,8 +111,16 @@ static int loop_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count)
|
|||
for (i = 0; i < count; i++) {
|
||||
rawir.pulse = i % 2 ? false : true;
|
||||
rawir.duration = txbuf[i];
|
||||
if (rawir.duration)
|
||||
ir_raw_event_store_with_filter(dev, &rawir);
|
||||
|
||||
ir_raw_event_store_with_filter(dev, &rawir);
|
||||
}
|
||||
|
||||
if (lodev->carrierreport) {
|
||||
rawir.pulse = false;
|
||||
rawir.carrier_report = true;
|
||||
rawir.carrier = lodev->txcarrier;
|
||||
|
||||
ir_raw_event_store(dev, &rawir);
|
||||
}
|
||||
|
||||
/* Fake a silence long enough to cause us to go idle */
|
||||
|
|
Loading…
Reference in a new issue