# contributed by:
#	Kipp Cannon <kipp|gravity.phys.uwm.edu>
#
# brand:
#	Sony
# model no. of remote control:
#	RMT-V402A
# devices being controlled by this remote:
#	VCR (SLV-N750), TV (generic Sony)
#
# Notes:
# This remote came bundled with a Sony VCR model SLV-N750.  It has a switch
# on it that switches the remote between VCR and television operation
# (labeled TV/VIDEO).  The two modes of operation are listed as seperate
# remotes in this configuration file because several buttons (notably the
# numerals) produce different codes depending on the remote's mode.  The
# VCR's transport control buttons, for example PLAY, FF, etc., produce
# longer codes than the buttons on the rest of the remote, and so these too
# must be listed as a seperate remote which I have called the "SHUTTLE"
# functions.
#
# I have discovered that the VCR which this remote controls also responds
# to STOP, REW, etc., commands other than those produced by the remote.
# The universal remote that came with my satellite TV receiver produces
# "Sony" VCR codes different from those of my remote but which my VCR,
# nevertheless, responds to.  I have added these codes to this remote file,
# even though the remote doesn't produce them.  The idea here is to enable
# one to control the matching VCR by sending them, or to allow the computer
# to respond to universal remotes programmed for the VCR.  These extra
# codes match the format of the "VIDEO" codes below, so that's where they
# are listed.
#
# So to be clear:  the remote's buttons generate the codes in the "TV", and
# "SHUTTLE" lists below, and all the buttons in the "VIDEO" list excluding
# the "extra" codes;  the VCR responds to none of the "TV" codes, but all
# of the codes in the "SHUTTLE" and "VIDEO" lists including the extra
# codes.

begin remote
	name	Sony_RMT-V402A-VIDEO
	flags	SPACE_ENC|CONST_LENGTH
	eps	25

	frequency	40000
	header	2400	600
	one	1200	600
	zero	600	600
	gap	44835

	bits	7
	post_data_bits	5
	post_data	0x1A
	min_repeat	2

	begin codes
		EJECT          0x34
		POWER          0x54
		TV/VIDEO       0x2A
		COUNTER/REMAIN 0x41
		AUDIOMONITOR   0x74
		DISPLAY        0x2D
		CLEAR          0x63
		1              0x00
		2              0x40
		3              0x20
		4              0x60
		5              0x10
		6              0x50
		7              0x30
		8              0x70
		9              0x08
		0              0x48
		ENTER          0x68
		SP/EP          0x0D
		CH+            0x04
		INPUTSELECT    0x79
		CH-            0x44
		REC            0x5C
		SEARCH         0x35
		SLOW           0x62
		X2             0x14
		MENU           0x59
		COMMERCIALSKIP 0x5D
# extra codes:
		STOP           0x0C
		FF             0x1C
		PLAY           0x2C
		PAUSE          0x4C
		REW            0x6C
	end codes
end remote


begin remote
	name	Sony_RMT-V402A-SHUTTLE
	flags	SPACE_ENC|CONST_LENGTH
	eps	25

	frequency	40000
	header	2400	600
	one	1200	600
	zero	600	600
	gap	44835

	bits	7
	post_data_bits	8
	post_data	0x5D
	min_repeat	2

	begin codes
		REPLAY    0x6D
		PAUSE/UP  0x38
		FF/RIGHT  0x44
		STOP/DOWN 0x78
		REW/LEFT  0x04
		PLAY/OK   0x0C
	end codes
end remote


begin remote
	name	Sony_RMT-V402A-TV
	flags	SPACE_ENC|CONST_LENGTH
	eps	25

	frequency	40000
	header	2400	600
	one	1200	600
	zero	600	600
	gap	44835

	bits	7
	post_data_bits	5
	post_data	0x10
	min_repeat	2

	begin codes
		POWER        0x54
		TV/VIDEO     0x52
		AUDIOMONITOR 0x74
		DISPLAY      0x2E
		1            0x00
		2            0x40
		3            0x20
		4            0x60
		5            0x10
		6            0x50
		7            0x30
		8            0x70
		9            0x08
		0            0x48
		ENTER        0x68
		CH+          0x04
		VOL+         0x24
		VOL-         0x64
		CH-          0x44
	end codes
end remote
