#
# brand: Sony
# model no. of remote control: RMT-B101A
# devices being controlled by this remote: Sony BDP-S301 Blu-ray player
#
# I derived and normalized these codes manually from an iPronto ICF
# file contributed to remotecentral.com by Robert Scott.  Please note
# the following minor caveats:
#
# 1. The PLAY_MODE code from the ICF file seems to be incorrect,
#    so I've commented it out below.
# 2. I've only tested this with transmitting, not receiving.
# 3. The Sony function codes seem to be stored LSB-first, so the
#    function codes below are actually the 7-bit reverse of the
#    "proper" numbers.  This doesn't matter, unless you're trying
#    to find some pattern in the codes -- i.e. the numeric buttons
#    1-9,0 use the Sony codes 0,1,2,3,... while the reversed,
#    LIRC-friendly codes are 0,64,32,96,...
#
# David Simmons
# January 14, 2009
#

begin remote

	name		Sony_RMT-B101A
	bits		7
	flags		SPACE_ENC|CONST_LENGTH
	eps		30
	aeps		100

	header		2400   600
	one		1200   600
	zero		600    600
	post_data_bits	13
	post_data	0xB47
	gap		44749
	min_repeat	3
	toggle_bit	0

	frequency 40000

	begin codes

		PAUSE			76
		PLAY			44
		STOP			12
		PREV			117
		STEP_BACK		101
		STEP_FORWARD		21
		NEXT			53
		SCAN_BACK		108
		SCAN_FORWARD		28

		1			0
		2			64
		3			32
		4			96
		5			16
		6			80
		7			48
		8			112
		9			8
		0			72
		EJECT			52

		POWER_ON		58
		POWER_OFF		122

		VIDEO_FORMAT		5
		CLEAR			120
#		PLAY_MODE		65 # incorrect

		DIMMER			71
		AUDIO			19
		ANGLE			83
		DISPLAY			65
		SUBTITLE		99

		RED			103
		GREEN			104
		YELLOW			105
		BLUE			102

		SYSTEM_MENU		33
		TOP_MENU		26
		RETURN			97
		POPUP_MENU		74

		NAV_LEFT		110
		NAV_RIGHT		30
		NAV_UP			78
		NAV_DOWN		46
		ENTER			94

	end codes

end remote
