From 797070af1a8a82a05cbdf35ac6180cddc989a074 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 15 Jun 2018 19:50:40 +0000
Subject: system-templates: lircd.conf.streamzap: update for LIRC 0.10.1.
 closes #1025

---
 abs/core/system-templates/PKGBUILD                 |   2 +-
 .../favorites/streamzap/lircd.conf.streamzap       | 159 +++++++++++++--------
 2 files changed, 104 insertions(+), 57 deletions(-)

diff --git a/abs/core/system-templates/PKGBUILD b/abs/core/system-templates/PKGBUILD
index abd6c0e..8bf61d1 100755
--- a/abs/core/system-templates/PKGBUILD
+++ b/abs/core/system-templates/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=system-templates
 pkgver=8.5
-pkgrel=3
+pkgrel=4
 conflicts=( )
 pkgdesc="Templates used for system configuration"
 depends=()
diff --git a/abs/core/system-templates/templates/remotes/favorites/streamzap/lircd.conf.streamzap b/abs/core/system-templates/templates/remotes/favorites/streamzap/lircd.conf.streamzap
index c2a88da..a89ae7e 100644
--- a/abs/core/system-templates/templates/remotes/favorites/streamzap/lircd.conf.streamzap
+++ b/abs/core/system-templates/templates/remotes/favorites/streamzap/lircd.conf.streamzap
@@ -1,72 +1,119 @@
+# This config file was automatically generated
+# using lirc-0.9.4b(default) on Thu Nov  3 19:55:19 2016
+# Command line used: --device=/dev/lirc0 --driver default Streamzap_PC_Remote
+# Kernel version (uname -r): 4.8.6-1-custom
 #
-# this config file was automatically generated
-# using lirc-0.7.1-CVS(serial) on Fri Feb  4 23:20:56 2005
+# Contributed by graysky (https://github.com/graysky2)
 #
-# contributed by Christoph Bartelmus
+# You should specify the default driver in /etc/lirc/lirc_options.conf
+# like this:  driver = default
 #
-# brand:                       Streamzap
-# model no. of remote control: PC Remote
-# devices being controlled by this remote: USB receiver
+# Remote name            : Streamzap PC Remote Control
+# Brand of remote device : Streamzap
+# Remote device model    : USBIR2
+# Remote device info URL : http://www.streamzap.com/consumer/pc_remote
+# USB dongle             : Yes
+# USB vendor ID          : 0x0e9c Streamzap, Inc.
+# Product ID             : 0x0000 Streamzap Remote Control
+# Devices controlled     : HTPC
+# Remote layout          : Classic models have the word "streamzap" in white
+#                          letters across the bottom of the remote.
 #
+#                          At least one newer model has the words, "TEMPEST
+#                          microsystems" in white letters across the bottom of
+#                          the remote with 3 additional keys in the bottom row.
+#
+#                          Both older and newer IR receivers and corresponding
+#                          scancodes seem identical based on the two samples
+#                          available to me.    
+#
+#  +-----------+
+#  |           |
+#  |  x     x  |   Power, Mute
+#  |           |
+#  |  x  x  x  |   1, 2, 3
+#  |           |
+#  |  x  x  x  |   4, 5, 6
+#  |           |
+#  |  x  x  x  |   7, 8, 9
+#  |           |
+#  |   x x x   |   Channelup, 0, Volumeup
+#  |           |
+#  |  x     x  |   Channeldown, Volumedown
+#  |           |
+#  |     x     |   Up
+#  |           |
+#  |  x  x  x  |   Left, OK, Right
+#  |           |
+#  |     x     |   Down
+#  |           |
+#  |  x     x  |   Menu, Exit
+#  |           |
+#  |  x  x  x  |   Play, Pause, Stop
+#  |           |
+#  |  x  x  x  |   Previous, Next, Record
+#  |           |
+# /   x  x      \  Rewind, Forward
+# |             |
+# |  x  x  x  x |  Red, Green, Yellow, Blue
+# |             |
+# |  x   x    x |  Disp, PTZ (Pan/Tilt/Zoom), Help
+# +-------------+
 
 begin remote
 
   name  Streamzap_PC_Remote
-  bits            6
-  flags RC5|CONST_LENGTH
+  bits           14
+  flags RC5
   eps            30
   aeps          100
 
-  one           889  889
-  zero          889  889
-  plead         889
-  pre_data_bits   8
-  pre_data       0xA3
-  gap          108344
-  toggle_bit      2
-
+  one           864   864
+  zero          864   864
+  plead         896
+  gap          16777215
+  toggle_bit_mask 0x1000
+  frequency    38000
 
       begin codes
-          0                        0x00
-          1                        0x01
-          2                        0x02
-          3                        0x03
-          4                        0x04
-          5                        0x05
-          6                        0x06
-          7                        0x07
-          8                        0x08
-          9                        0x09
-          POWER                    0x0A
-          MUTE                     0x0B
-          CH_UP                    0x0C
-          VOL_UP                   0x0D
-          CH_DOWN                  0x0E
-          VOL_DOWN                 0x0F
-          UP                       0x10
-          LEFT                     0x11
-          OK                       0x12
-          RIGHT                    0x13
-          DOWN                     0x14
-          MENU                     0x15
-          EXIT                     0x16
-          PLAY                     0x17
-          PAUSE                    0x18
-          STOP                     0x19
-          PREVIOUS                 0x1A
-          NEXT                     0x1B
-          RECORD                   0x1C
-          REWIND                   0x1D
-          FOWARD                   0x1E
-          RED                      0x20
-          GREEN                    0x21
-          YELLOW                   0x22
-          BLUE                     0x23
-          DISP                     0x24
-          PTZ                      0x25
-          HELP                     0x26
+          1                    0x28C1
+          2                    0x28C2
+          3                    0x28C3
+          4                    0x28C4
+          5                    0x28C5
+          6                    0x28C6
+          7                    0x28C7
+          8                    0x28C8
+          9                    0x28C9
+          0                    0x28C0
+          POWER                0x28CA
+          MUTE                 0x28CB
+          CH_UP                0x28CC
+          CH_DOWN              0x28CE
+          VOL_UP               0x28CD
+          VOL_DOWN             0x28CF
+          UP                   0x28D0
+          DOWN                 0x28D4
+          LEFT                 0x28D1
+          RIGHT                0x28D3
+          OK                   0x28D2
+          MENU                 0x28D5
+          EXIT                 0x28D6
+          PLAY                 0x28D7
+          PAUSE                0x28D8
+          STOP                 0x28D9
+          PREVIOUS             0x28DA
+          NEXT                 0x28DB
+          RECORD               0x28DC
+          REWIND               0x28DD
+          FORWARD              0x28DE
+          RED                  0x28E0
+          GREEN                0x28E1
+          YELLOW               0x28E2
+          BLUE                 0x28E3
+          DISP                 0x28E4
+          PTZ                  0x28E5
+          HELP                 0x28E6
       end codes
 
 end remote
-
-
-- 
cgit v0.12

