This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: ir-ctl: add optional header to manchester encoding
Author:  Sean Young <s...@mess.org>
Date:    Tue Apr 23 17:53:41 2024 +0100

The optional header was not included when transmitting.

Signed-off-by: Sean Young <s...@mess.org>

 utils/ir-ctl/bpf_encoder.c | 8 ++++++++
 1 file changed, 8 insertions(+)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=9b21a19217468103fb36331021cc915713ea382f
diff --git a/utils/ir-ctl/bpf_encoder.c b/utils/ir-ctl/bpf_encoder.c
index 1d075d94e4f3..886f046f4b6d 100644
--- a/utils/ir-ctl/bpf_encoder.c
+++ b/utils/ir-ctl/bpf_encoder.c
@@ -101,6 +101,14 @@ static void encode_manchester(struct keymap *map, uint32_t 
scancode, int *buf, i
 {
        int len = 0, bits, i;
 
+       int header_pulse = keymap_param(map, "header_pulse", 0);
+       int header_space = keymap_param(map, "header_space", 0);
+
+       if (header_pulse > 0) {
+               manchester_advance_pulse(buf, &len, header_pulse);
+               manchester_advance_space(buf, &len, header_space);
+       }
+
        bits = keymap_param(map, "bits", 14);
 
        for (i = bits - 1; i >= 0; i--) {

Reply via email to