# Lirc config file for Sony RM-U306A
#
# contributed by Oliver Nittka <oly|nittka.com>
#
# brand:             Sony
# model:             RM-U306A
# supported devices: AV Receiver STR-DE595
#
# NOTE:
# if the numer keys or the play/stop controls don't work,
# try pressing the VIDEO1 key, the remote seems to toggle
# the meaning (or even the activity) of some keys depending
# on the current input mode
# (which it thinks the receiver is in ;-)
#
 
# RM-U306A_PWR
# First row of buttons

begin remote

  name  RM-U306A_PWR
  bits           14
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2463   521
  one          1262   518
  zero          663   518
  ptrail        667
  gap          45116
  min_repeat      3
  toggle_bit      0


      begin codes
          SLEEP                    0x0000000000000186
          STANDBY                  0x0000000000002A06
      end codes

end remote

# RM-U306A_INP
# Input Selectors

begin remote

  name  RM-U306A_INP
  bits           14
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2463   520
  one          1264   516
  zero          666   516
  ptrail        668
  gap          45091
  min_repeat      3
  toggle_bit      0


      begin codes
          VIDEO1                   0x0000000000001106
          VIDEO2                   0x0000000000001E06
          DVD                      0x0000000000002F86
          MDTAPE                   0x0000000000002586
          CD                       0x0000000000002906
          TUNER                    0x0000000000002106
      end codes

end remote


# RM-U306A_NUM
# Number block

begin remote

  name  RM-U306A_NUM
  bits           11
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2463   521
  one          1266   515
  zero          668   515
  ptrail        668
  gap          44556
  min_repeat      4
  toggle_bit      0


      begin codes
          1                        0x000000000000000D
          2                        0x000000000000040D
          3                        0x000000000000020D
          4                        0x000000000000060D
          5                        0x000000000000010D
          6                        0x000000000000050D
          7                        0x000000000000030D
          8                        0x000000000000070D
          9                        0x000000000000008D
          SHIFT                    0x000000000000028D
          0                        0x000000000000048D
          ENTER                    0x000000000000068D
      end codes

end remote

# RM-U306A_PLY
# Play/Stop controls

begin remote

  name  RM-U306A_PLY
  bits           11
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2467   519
  one          1268   513
  zero          670   513
  ptrail        670
  gap          44527
  min_repeat      3
  toggle_bit      0


      begin codes
          CH-                      0x000000000000044D
          CH+                      0x000000000000004D
          TVVIDEO                  0x0000000000000528
          SKIP-                    0x00000000000006CD
          SKIP+                    0x00000000000001CD
          DSKIP                    0x00000000000002AD
          PLAY                     0x00000000000002CD
          PAUSE                    0x00000000000004CD
          STOP                     0x00000000000000CD
      end codes

end remote

# RM-U306A_SND
# Sound effects

begin remote

  name  RM-U306A_SND
  bits           15
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2466   518
  one          1269   510
  zero          671   510
  gap          44553
  min_repeat      3
  toggle_bit      0


      begin codes
          2CH                      0x000000000000410D
          AFD                      0x000000000000710D
          MOVIE                    0x0000000000003B0D
          TESTTONE                 0x000000000000290D
          MAINMENU                 0x000000000000770D
          MULTICH                  0x000000000000270C
      end codes

end remote

# RM-U306A_MENU
# Menu buttons

begin remote

  name  RM-U306A_MENU
  bits            6
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2467   518
  one          1269   510
  zero          671   510
  ptrail       1269
  post_data_bits  8
  post_data      0x86
  gap          44500
  min_repeat      3
  toggle_bit      0


      begin codes
          MENU<                    0x0000000000000013
          MENU>                    0x0000000000000033
          -                        0x000000000000000B
          +                        0x000000000000002B
      end codes

end remote

# RM-U306A_VOL
# Volume control / Mute (lower right corner)

begin remote

  name  RM-U306A_VOL
  bits            6
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2461   524
  one          1265   516
  zero          665   516
  ptrail        666
  post_data_bits  8
  post_data      0x6
  gap          45043
  min_repeat      3
  toggle_bit      0


      begin codes
          MUTING                   0x000000000000000A
          VOL+                     0x0000000000000012
          VOL-                     0x0000000000000032
      end codes

end remote

# RM-U306A_VOL
# TV Channel/Volume (lower left corner)

begin remote

  name  RM-U306A_TV
  bits            3
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2466   518
  one          1269   512
  zero          671   512
  ptrail        671
  post_data_bits  8
  post_data      0x48
  gap          44553
  min_repeat      3
  toggle_bit      0


      begin codes
          TVVOL-                   0x0000000000000006
          TVVOL+                   0x0000000000000002
          TVCH-                    0x0000000000000004
          TVCH+                    0x0000000000000000
      end codes

end remote


