#
# 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
	'PLAY'                0x0000000000000026    # PLAY
	'PAUSE'               0x000000000000004E    # PAUSE
	'STOP'                0x000000000000000E    # STOP
	'PREV'                0x0000000000000006    # PREV
	'NEXT'                0x0000000000000046    # NEXT
	'REW'                 0x0000000000000066    # REW
	'FF'                  0x0000000000000016    # FF
	'SLOWREW'             0x000000000000002E    # SLOWREW
	'SLOWFF'              0x000000000000006E    # SLOWFF
	'INDEX-'              0x0000000000000036    # INDEX-
	'INDEX+'              0x0000000000000076    # INDEX+
	'FADER'               0x000000000000007D    # FADER
	'VOLUMEUP'            0x0000000000000024    # VOL+
	'VOLUMEDOWN'          0x0000000000000064    # VOL-
	'OPEN/CLOSE'          0x0000000000000034    # OPEN/CLOSE
	'DISPLAY_MODE'        0x0000000000000035    # DISPLAY_MODE
	'CONTINUE'            0x000000000000005C    # CONTINUE
	'SHUFFLE'             0x0000000000000056    # SHUFFLE
	'PROGRAM'             0x000000000000007C    # PROGRAM
	'C.INDEX'             0x000000000000000C    # C.INDEX
	'MUSIC_SCAN'          0x000000000000001E    # MUSIC_SCAN
	'1'                   0x0000000000000000    # 1
	'2'                   0x0000000000000040    # 2
	'3'                   0x0000000000000020    # 3
	'4'                   0x0000000000000060    # 4
	'5'                   0x0000000000000010    # 5
	'6'                   0x0000000000000050    # 6
	'7'                   0x0000000000000030    # 7
	'8'                   0x0000000000000070    # 8
	'9'                   0x0000000000000008    # 9
	'10'                  0x0000000000000002    # 10
	'11'                  0x0000000000000042    # 11
	'12'                  0x0000000000000022    # 12
	'13'                  0x0000000000000062    # 13
	'14'                  0x0000000000000012    # 14
	'15'                  0x0000000000000052    # 15
	'16'                  0x0000000000000032    # 16
	'17'                  0x0000000000000004    # 17
	'18'                  0x0000000000000044    # 18
	'19'                  0x0000000000000074    # 19
	'20'                  0x000000000000004A    # 20
	'>20'                 0x0000000000000072    # >20
	'CHECK'               0x0000000000000058    # CHECK
	'CLEAR'               0x0000000000000078    # CLEAR
	'TIME'                0x000000000000000A    # TIME
	'REPEAT'              0x000000000000001A    # REPEAT
	'A-B'                 0x000000000000002A    # A-B
	'A.SPACE'             0x0000000000000039    # A.SPACE
	'FILE'                0x000000000000004C    # FILE
	'ERASE'               0x000000000000006C    # ERASE
	'PEAK_SEARCH'         0x0000000000000079    # PEAK_SEARCH
# The following Codes are not on the RM-D921
	'LEVEL_FILE'          0x000000000000000B    # LEVEL_FILE
	'FILE_RECALL'         0x000000000000002C    # FILE_RECALL
	'MEMO_INPUT'          0x000000000000004B    # MEMO_INPUT
	'>10'                 0x0000000000000072    # >10
      end codes

end remote
