#
# this config file was automatically generated
# using WinLIRC 0.6.4 (LIRC 0.6.1pre3) on Sat Apr 12 10:25:57 2003
#
# contributed by Marcus Bouchain <Bouchi@gmx.net>
#
# brand:             SONY
# model:             RM-D921 (and many other)
# supported devices: cd player
#
# Hint: When scanning a Sony-Remote the 'one' and 'zero' signal will
#       be switched and you will get a 'ptrail' instead of bit12.
#       -ptrail 1200 == ONE,  -ptrail 600 == ZERO as the last bit
#
# ToDo: a) invert the 7 code-bits
#       b) strip the last 4 bits  --> post_data
#       c) covert ptrail to 1 bit --> post_data
#
# Example:
#      play 0x0000000000000597 [bits 11] [ptrail 1260] [one  663 512]
#  is  play 0x0000000000000268 [bits 11] [ptrail 1200] [one 1200 600]
#  is  play 0x0000000000000026 [bits  7] [ptrail 1200] [one 1200 600] [4bit post_data 0x8]
#  is  play 0x0000000000000026 [bits  7]               [one 1200 600] [5bit post_data 0x11]
#  (== play 0x00000000000004D1 [bits 12]               [one 1200 600])
#
#
# The frequency and duty_cycle options where taken from
# the generic template file 'SONY12.conf'
#

begin remote
  name  SONY_RM-D921
  bits            7
  flags SPACE_ENC
  eps            25
  aeps          100

  header       2400   600
  one          1200   600
  zero          600   600

  post_data_bits  5
  post_data      0x11
  gap          25000
  toggle_bit      0

  frequency    40000
  duty_cycle   33

      begin codes
          KEY_PLAY                     0x0000000000000026
          KEY_PAUSE                    0x000000000000004E
          KEY_STOP                     0x000000000000000E
          KEY_PREVIOUS                     0x0000000000000006
          KEY_NEXT                     0x0000000000000046
          KEY_REWIND                      0x0000000000000066
          KEY_FASTFORWARD                       0x0000000000000016
                            0x000000000000002E
                             0x000000000000006E
                             0x0000000000000036
                             0x0000000000000076
                              0x000000000000007D
          KEY_VOLUMEUP                     0x0000000000000024
          KEY_VOLUMEDOWN                     0x0000000000000064
                         0x0000000000000034
                       0x0000000000000035
                           0x000000000000005C
                            0x0000000000000056
                            0x000000000000007C
                            0x000000000000000C
                         0x000000000000001E
          KEY_1                        0x0000000000000000
          KEY_2                        0x0000000000000040
          KEY_3                        0x0000000000000020
          KEY_4                        0x0000000000000060
          KEY_5                        0x0000000000000010
          KEY_6                        0x0000000000000050
          KEY_7                        0x0000000000000030
          KEY_8                        0x0000000000000070
          KEY_9                        0x0000000000000008
          10                       0x0000000000000002
          11                       0x0000000000000042
          12                       0x0000000000000022
                                 0x0000000000000062
                                 0x0000000000000012
                                 0x0000000000000052
                                 0x0000000000000032
                                 0x0000000000000004
                                 0x0000000000000044
                                 0x0000000000000074
                                 0x000000000000004A
                                0x0000000000000072
          CHECK                    0x0000000000000058
                              0x0000000000000078
                               0x000000000000000A
          KEY_AGAIN                   0x000000000000001A
                                0x000000000000002A
                            0x0000000000000039
                               0x000000000000004C
                              0x000000000000006C
                        0x0000000000000079
# The following Codes are not on the RM-D921
                         0x000000000000000B
                        0x000000000000002C
                         0x000000000000004B
                                0x0000000000000072
      end codes

end remote


