Lars Op den Kamp [Thu, 2 Feb 2012 11:58:53 +0000 (12:58 +0100)]
cec: added an IAdapterCommunicationCallback interface an use a callback method to pass newly received cec_commands to CCECProcessor
Lars Op den Kamp [Thu, 2 Feb 2012 10:28:22 +0000 (11:28 +0100)]
cec: dropped no longer needed start condition and state boolean in CCECProcessor. this is handled by Cthread now
Lars Op den Kamp [Thu, 2 Feb 2012 10:09:43 +0000 (11:09 +0100)]
cosmetics
Lars Op den Kamp [Thu, 2 Feb 2012 02:13:59 +0000 (03:13 +0100)]
cosmetics: AddLog() has formatting params
Lars Op den Kamp [Thu, 2 Feb 2012 01:38:16 +0000 (02:38 +0100)]
cec: added the new msgcodes to MessageCodeAsString()
Lars Op den Kamp [Thu, 2 Feb 2012 01:37:09 +0000 (02:37 +0100)]
linux: fix compilation
Lars Op den Kamp [Thu, 2 Feb 2012 01:25:17 +0000 (02:25 +0100)]
win32: don't link to winsock
Lars Op den Kamp [Thu, 2 Feb 2012 00:58:14 +0000 (01:58 +0100)]
win32: resolve condition methods at runtime
Lars Op den Kamp [Thu, 2 Feb 2012 00:22:51 +0000 (01:22 +0100)]
win32: fix < vista compilation
Lars Op den Kamp [Thu, 2 Feb 2012 00:02:56 +0000 (01:02 +0100)]
cec: close and delete the connection when the processor thread ends. fixes reconnect after standby (access denied / connection already opened)
Bob van Loosen [Wed, 1 Feb 2012 23:55:40 +0000 (00:55 +0100)]
added: set controlled mode on after opening a connection to the adapter
Bob van Loosen [Wed, 1 Feb 2012 23:21:22 +0000 (00:21 +0100)]
added: new enum values
Lars Op den Kamp [Wed, 1 Feb 2012 11:00:59 +0000 (12:00 +0100)]
win64: fixed compilation
Lars Op den Kamp [Tue, 31 Jan 2012 23:05:40 +0000 (00:05 +0100)]
cec: receive and send full cec_commands, not CCECAdapterMessages in CAdapterCommunication. extract an IAdapterCommunication interface. fixed potentially missed data in CAdapterCommunication
Lars Op den Kamp [Tue, 31 Jan 2012 01:33:42 +0000 (02:33 +0100)]
cec: clean up lib/platform
Lars Op den Kamp [Mon, 30 Jan 2012 13:16:47 +0000 (14:16 +0100)]
cec: wait 500 ms before trying to retransmit a command. always wait for the result of a transmission in CCECCommandHandler::Transmit()
Lars Op den Kamp [Mon, 30 Jan 2012 11:15:47 +0000 (12:15 +0100)]
posix: fixed lib/platform/sockets/tcp.h compilation and some bugs. added CTcpSocket::Shutdown()
Lars Op den Kamp [Mon, 30 Jan 2012 10:17:51 +0000 (11:17 +0100)]
also updated the copyright years in posix-only files
Lars Op den Kamp [Mon, 30 Jan 2012 10:07:20 +0000 (11:07 +0100)]
changed the year in copyright notices to 2011-2012
Lars Op den Kamp [Mon, 30 Jan 2012 09:55:33 +0000 (10:55 +0100)]
win32: also timeout when data is received in SocketRead()
Lars Op den Kamp [Mon, 30 Jan 2012 01:28:03 +0000 (02:28 +0100)]
cec: added tcp client sockets to lib/platform
Lars Op den Kamp [Sun, 29 Jan 2012 22:55:22 +0000 (23:55 +0100)]
cec: fill in a couple of TODOs in lib/platform/windows/os-socket.h
Lars Op den Kamp [Sun, 29 Jan 2012 19:58:06 +0000 (20:58 +0100)]
cec: sync win32
Lars Op den Kamp [Sun, 29 Jan 2012 17:45:04 +0000 (18:45 +0100)]
cec: keep trying to reconnect to the com port until the timeout runs out. bugzid: 230
Lars Op den Kamp [Sun, 29 Jan 2012 17:03:32 +0000 (18:03 +0100)]
cec: transmit 'menu state activated' after the stream path has been set to a device that is handled by libCEC. should fix remote commands not working properly on Panasonic TVs and after another source has been active. bugzid: 233
Lars Op den Kamp [Sat, 28 Jan 2012 12:02:01 +0000 (13:02 +0100)]
cec: clean ups and only include what we need from lib/platform.
Lars Op den Kamp [Fri, 27 Jan 2012 20:08:38 +0000 (21:08 +0100)]
cec: add formating parameters to PrintToStdOut()
Lars Op den Kamp [Fri, 27 Jan 2012 20:01:13 +0000 (21:01 +0100)]
cec: set the ackmask to 0x0 when trying to find a free logical address
Lars Op den Kamp [Fri, 27 Jan 2012 12:07:46 +0000 (13:07 +0100)]
cec: bump version numbers for bugfix release 1.4.2
Lars Op den Kamp [Fri, 27 Jan 2012 00:13:53 +0000 (01:13 +0100)]
cec: try to ping the device and grab the firmware version until the connect timeout runs out. fixes failed reconnect after standby, when the adapter is still being initialised
Lars Op den Kamp [Wed, 25 Jan 2012 23:27:36 +0000 (00:27 +0100)]
typo (tab/spaces) in the changelog
Lars Op den Kamp [Wed, 25 Jan 2012 22:32:19 +0000 (23:32 +0100)]
updated changelog and version numbers for v1.4.1
Lars Op den Kamp [Wed, 25 Jan 2012 19:47:46 +0000 (20:47 +0100)]
cec: retry to get the firmware version when it failed. wait for active tranmission to finish when opening a connection to the adapter. fixes initialisation errors
Lars Op den Kamp [Wed, 25 Jan 2012 19:27:53 +0000 (20:27 +0100)]
cec: renamed WaitForTransmitSucceeded() to WaitForAck(). don't wait for an ack when the transmission failed
Lars Op den Kamp [Wed, 25 Jan 2012 19:13:52 +0000 (20:13 +0100)]
cec: retry the ping adapter command when starting libCEC. set the default transmit timeout properly instead of using 0. fixes possible infinite loop in CAdapterCommunication::WaitForTransmitSucceeded()
Lars Op den Kamp [Wed, 25 Jan 2012 18:43:41 +0000 (19:43 +0100)]
cec: don't request the firmware version when the adapter didn't respond to a ping
Lars Op den Kamp [Wed, 25 Jan 2012 18:41:21 +0000 (19:41 +0100)]
cec: added a little extra warning in support/cec-flash-device.sh
Lars Op den Kamp [Wed, 25 Jan 2012 18:31:33 +0000 (19:31 +0100)]
cec: fixed - only the key release events were sent, not keypresses, which appeared in clients as laggy keypresses
Lars Op den Kamp [Wed, 25 Jan 2012 15:45:31 +0000 (16:45 +0100)]
cec: fixed possible deadlock because of a negative timeout in CAdapterCommunication::WaitForTransmitSucceeded()
Lars Op den Kamp [Wed, 25 Jan 2012 14:49:05 +0000 (15:49 +0100)]
cec: sync win32
Lars Op den Kamp [Wed, 25 Jan 2012 14:14:27 +0000 (15:14 +0100)]
cec: simplified AddLog() method
Lars Op den Kamp [Wed, 25 Jan 2012 13:20:11 +0000 (14:20 +0100)]
cec: fixed error message in cec-client (unable to open the device on port ...)
Lars Op den Kamp [Wed, 25 Jan 2012 13:17:33 +0000 (14:17 +0100)]
cec: added a firmware flash script for linux. usage: ./support/cec-flash-device.sh /path/to/firware.hex
Lars Op den Kamp [Wed, 25 Jan 2012 11:33:30 +0000 (12:33 +0100)]
cec: don't send any CEC commands after entering bootloader mode in cec-client
Lars Op den Kamp [Wed, 25 Jan 2012 11:21:46 +0000 (12:21 +0100)]
cec: fixed return value from CAdapterCommunication::Write() when CCECAdapterMessage::expectControllerAck is false
Lars Op den Kamp [Wed, 25 Jan 2012 11:12:19 +0000 (12:12 +0100)]
cec: exit cec-client after entering bootloader mode
Lars Op den Kamp [Wed, 25 Jan 2012 10:41:26 +0000 (11:41 +0100)]
cec: check whether the adapter responds when connecting to it and report the firmware version of the adapter after connecting
Lars Op den Kamp [Wed, 25 Jan 2012 10:07:44 +0000 (11:07 +0100)]
cec: fixed - MSGCODE_START_BOOTLOADER doesn't respond with MSGCODE_COMMAND_ACCEPTED
Lars Op den Kamp [Tue, 24 Jan 2012 23:15:11 +0000 (00:15 +0100)]
cec: move WaitForTransmissionSucceeded() to CAdapterCommunication and wait for MSGCODE_COMMAND_ACCEPTED too when pinging the adapter, starting the bootloader and setting the ackmask
Lars Op den Kamp [Tue, 24 Jan 2012 10:40:42 +0000 (11:40 +0100)]
cec: moved WaitForTransmitSucceeded() to CAdapterCommunication
Lars Op den Kamp [Tue, 24 Jan 2012 10:20:27 +0000 (11:20 +0100)]
cec: moved all adapter related code to src/lib/adapter, camelcased CAdapterMessage methods, removed unneeded m_startCondition in CAdapterCommunication (this is handled by CThread now), cosmetics. win32 needs to be synced after this
Lars Op den Kamp [Mon, 23 Jan 2012 23:39:08 +0000 (00:39 +0100)]
cec: fixed - don't keep the mutex locked in CCECProcessor::Initialise()
Lars Op den Kamp [Mon, 23 Jan 2012 18:30:36 +0000 (19:30 +0100)]
cec: fixed reconnect after standby
Lars Op den Kamp [Mon, 23 Jan 2012 18:30:12 +0000 (19:30 +0100)]
cec: make sure we're not trying to unlock the mutex too many times
Lars Op den Kamp [Mon, 23 Jan 2012 15:53:07 +0000 (16:53 +0100)]
cec: reset m_bStop to false in CreateThread()
Lars Op den Kamp [Fri, 20 Jan 2012 01:52:05 +0000 (02:52 +0100)]
completely removed AM_SILENT_RULES
Lars Op den Kamp [Fri, 20 Jan 2012 01:40:01 +0000 (02:40 +0100)]
don't use AM_SILENT_RULES on darwin
Lars Op den Kamp [Wed, 18 Jan 2012 10:54:49 +0000 (11:54 +0100)]
cec: put the assembly key in AssemblyInfo.cpp
Lars Op den Kamp [Wed, 18 Jan 2012 09:55:23 +0000 (10:55 +0100)]
cec: move create-installer.cmd to support/
Lars Op den Kamp [Wed, 18 Jan 2012 01:13:32 +0000 (02:13 +0100)]
cec: only target .net 2.0, include all the new stuff in the installer
Lars Op den Kamp [Sun, 15 Jan 2012 13:32:26 +0000 (14:32 +0100)]
cec: refactored threading/locking - added windows native instead of pthread-win32, so we can compile native x64 too
Lars Op den Kamp [Sat, 14 Jan 2012 01:05:54 +0000 (02:05 +0100)]
win32: fix compilation after the last commit
Lars Op den Kamp [Fri, 13 Jan 2012 23:49:42 +0000 (00:49 +0100)]
cec: stick some interfaces before the pthread stuff, so we can add other implementations too
Lars Op den Kamp [Fri, 13 Jan 2012 19:17:38 +0000 (20:17 +0100)]
win32: sign .net 2.0 assemblies with a default key
Lars Op den Kamp [Fri, 13 Jan 2012 19:13:48 +0000 (20:13 +0100)]
win32: removed unneeded Stdafx. cleaned up targets
Lars Op den Kamp [Fri, 13 Jan 2012 13:25:52 +0000 (14:25 +0100)]
cec: added a .NET framework 2.0 version of LibCecSharp: LibCecSharp.Net2.dll
Lars Op den Kamp [Thu, 12 Jan 2012 22:48:07 +0000 (23:48 +0100)]
fixed typo in the changelog
Lars Op den Kamp [Thu, 12 Jan 2012 21:02:12 +0000 (22:02 +0100)]
cec: updated changelog and version numbers for v1.4.0
Lars Op den Kamp [Thu, 12 Jan 2012 21:01:44 +0000 (22:01 +0100)]
cec: fix win32 compilation (new parameter)
Lars Op den Kamp [Thu, 12 Jan 2012 19:55:02 +0000 (20:55 +0100)]
cec: add a void* parameter to the callback methods, that can be set when enabling them and will be passed to each call
Lars Op den Kamp [Thu, 12 Jan 2012 17:21:10 +0000 (18:21 +0100)]
cec: fix linux compilation
Lars Op den Kamp [Thu, 12 Jan 2012 16:52:50 +0000 (17:52 +0100)]
cec: use callback methods in CecSharpClient
Lars Op den Kamp [Thu, 12 Jan 2012 16:51:58 +0000 (17:51 +0100)]
cec: fixed typo in AssemblyInfo.cs that prevented CecSharpTester from compiling
Lars Op den Kamp [Thu, 12 Jan 2012 16:51:17 +0000 (17:51 +0100)]
cec: added callbacks to LibCecSharp
Lars Op den Kamp [Thu, 12 Jan 2012 16:27:43 +0000 (17:27 +0100)]
cec: added typedefs for the callback methods
Lars Op den Kamp [Thu, 12 Jan 2012 11:41:05 +0000 (12:41 +0100)]
cec: rewrote an assignment within a condition, so the silly vs compiler understands it too. fixes win32 compilation
Lars Op den Kamp [Thu, 12 Jan 2012 11:30:54 +0000 (12:30 +0100)]
cec: use callback methods in cec-client
Lars Op den Kamp [Thu, 12 Jan 2012 11:30:07 +0000 (12:30 +0100)]
cec: added callback methods to libCEC. enable them by calling EnableCallbacks(ICECCallbacks *callbacks) / cec_enable_callbacks(ICECCallbacks *callbacks). after this method is called, the GetNext...() methods will not return any data
Lars Op den Kamp [Wed, 11 Jan 2012 01:18:34 +0000 (02:18 +0100)]
cec: use the given timeout when trying to open a connection to the CEC adapter
Lars Op den Kamp [Wed, 11 Jan 2012 01:10:27 +0000 (02:10 +0100)]
cec: added the vendor id for Sony
Lars Op den Kamp [Wed, 11 Jan 2012 00:52:37 +0000 (01:52 +0100)]
cec: don't transmit physical addresses while holding a lock in CCECProcessor
Lars Op den Kamp [Wed, 11 Jan 2012 00:42:55 +0000 (01:42 +0100)]
cec: always refresh the power state of a device when it hasn't been updated for 30 seconds
Lars Op den Kamp [Wed, 11 Jan 2012 00:27:49 +0000 (01:27 +0100)]
cec: don't hold a lock when sending an active source message. fixes potential deadlock
Lars Op den Kamp [Tue, 10 Jan 2012 10:55:40 +0000 (11:55 +0100)]
cec: unload libCEC when the lib version is invalid
Lars Op den Kamp [Tue, 10 Jan 2012 09:53:45 +0000 (10:53 +0100)]
disable debug output of package builds
Lars Op den Kamp [Tue, 10 Jan 2012 09:52:48 +0000 (10:52 +0100)]
cec: enable automake silent rules by default
Lars Op den Kamp [Tue, 10 Jan 2012 09:22:30 +0000 (10:22 +0100)]
cec: add -Wno-missing-field-initializers to CXXFLAGS
Lars Op den Kamp [Tue, 10 Jan 2012 09:15:16 +0000 (10:15 +0100)]
cec: silence all 'unused' compiler warnings
Lars Op den Kamp [Sun, 8 Jan 2012 22:58:41 +0000 (14:58 -0800)]
Merge pull request #16 from finson/
65894f58514a9ab61ae20e45cfde06c9d45600e4
Resolve difference between method name in LibCECC.cpp and cecc.h.
Doug Johnson [Wed, 4 Jan 2012 22:47:36 +0000 (14:47 -0800)]
Rename LibCECC implementation of GetMinLibVersion call to match the prototype in cecc.h.
Signed-off-by: Doug Johnson <finson@whidbey.com>
Lars Op den Kamp [Tue, 3 Jan 2012 21:55:00 +0000 (22:55 +0100)]
updated changelog and bumped version numbers to 1.3.2
Lars Op den Kamp [Tue, 3 Jan 2012 17:01:12 +0000 (18:01 +0100)]
cec: don't send deck status updates when sending an active source message by default
Lars Op den Kamp [Tue, 3 Jan 2012 16:57:40 +0000 (17:57 +0100)]
cec: don't send deck status updates when sending an active source message for samsung
Lars Op den Kamp [Tue, 3 Jan 2012 16:18:03 +0000 (17:18 +0100)]
cec: get the physical address of the target device before without holding a lock in CCECProcessor::SetHDMIPort()
Lars Op den Kamp [Tue, 3 Jan 2012 15:08:36 +0000 (16:08 +0100)]
Revert "cec: use CCECCommandHandler::ActivateSource() instead of TransmitActiveSource() in CCECProcessor::SetActiveSource()"
This reverts commit
f26ea36763c4e7cca87a128e87326670699700da.
Lars Op den Kamp [Tue, 3 Jan 2012 15:08:18 +0000 (16:08 +0100)]
cec: forgot to save before committing
Lars Op den Kamp [Tue, 3 Jan 2012 14:50:48 +0000 (15:50 +0100)]
cec: hold a lock in CCECProcessor::SetHDMIPort()
Lars Op den Kamp [Tue, 3 Jan 2012 14:30:17 +0000 (15:30 +0100)]
cec: use CCECCommandHandler::ActivateSource() instead of TransmitActiveSource() in CCECProcessor::SetActiveSource()
Lars Op den Kamp [Tue, 3 Jan 2012 14:20:34 +0000 (15:20 +0100)]
revert the previous commit. CCECCommandHandler::ActivateSource() already sends the menu state
This reverts commit
a2396302c1ce78f95090bfa30ccabc5d4c377b64.
Lars Op den Kamp [Tue, 3 Jan 2012 13:36:31 +0000 (14:36 +0100)]
cec: transmit the menu state when activating the panasonic handler