Lars Op den Kamp [Wed, 15 Feb 2012 18:37:41 +0000 (19:37 +0100)]
cec: don't lock the mutex when checking for the poll status of a device. this is always called from the same thread
Lars Op den Kamp [Wed, 15 Feb 2012 18:37:01 +0000 (19:37 +0100)]
cec: don't do a full reinit when not needed
Lars Op den Kamp [Wed, 15 Feb 2012 16:29:36 +0000 (17:29 +0100)]
LibCecSharp: delete the internal callback struct when closing the connection
Lars Op den Kamp [Wed, 15 Feb 2012 16:28:59 +0000 (17:28 +0100)]
cec-config-gui: cosmetics
Lars Op den Kamp [Wed, 15 Feb 2012 15:27:06 +0000 (16:27 +0100)]
cec-config-gui: read/write the vendor id override setting
Lars Op den Kamp [Wed, 15 Feb 2012 15:02:26 +0000 (16:02 +0100)]
cec-config-gui: added the new parameters. cleanup round.
Lars Op den Kamp [Wed, 15 Feb 2012 15:01:35 +0000 (16:01 +0100)]
LibCecSharp: added the new parameters
Lars Op den Kamp [Wed, 15 Feb 2012 15:00:56 +0000 (16:00 +0100)]
cec: added poweroff devices parameter to the config (instead of a boolean parameter). changed the power on parameter into activate source.
Lars Op den Kamp [Wed, 15 Feb 2012 12:07:28 +0000 (13:07 +0100)]
cec: added a callback that is called when libCEC's configuration changed.
Lars Op den Kamp [Wed, 15 Feb 2012 10:00:33 +0000 (11:00 +0100)]
cec: don't reset the "adapter message sent" event
Lars Op den Kamp [Wed, 15 Feb 2012 01:55:06 +0000 (02:55 +0100)]
cec: transmit a keypress and key release as power on command when the target device isn't the TV
Lars Op den Kamp [Wed, 15 Feb 2012 01:48:39 +0000 (02:48 +0100)]
cec-config-gui: updated labels, added 'not implemented' warning for the button config, leave unimplemented inputs disabled
Lars Op den Kamp [Tue, 14 Feb 2012 19:06:04 +0000 (20:06 +0100)]
cec-config-gui: added some basic test commands and device information
Lars Op den Kamp [Tue, 14 Feb 2012 16:56:48 +0000 (17:56 +0100)]
cec: return the anynet return keycode directly instead of translating it to 'return' for v1.5.0+ clients
Lars Op den Kamp [Tue, 14 Feb 2012 16:33:00 +0000 (17:33 +0100)]
cec: added SetConfiguration()/cec_set_configuration() to the interface
Lars Op den Kamp [Tue, 14 Feb 2012 14:44:50 +0000 (15:44 +0100)]
LibCecSharp: set the callback methods in libcec to NULL before closing the connection, since these might already have been destroyed in .NET
Lars Op den Kamp [Tue, 14 Feb 2012 14:40:28 +0000 (15:40 +0100)]
cec: ensure that there always is at least one device type set
Lars Op den Kamp [Tue, 14 Feb 2012 13:42:24 +0000 (14:42 +0100)]
cec-config-gui: read the configuration before initialising libCEC
Lars Op den Kamp [Tue, 14 Feb 2012 13:20:16 +0000 (14:20 +0100)]
cec-config-gui: added a button configuration panel. currently only shows all cec keys and select the correct row when a key is pressed
Lars Op den Kamp [Tue, 14 Feb 2012 11:42:13 +0000 (12:42 +0100)]
cec-config-gui: added log level configuration and a 'save' and 'clear' button for the log
Lars Op den Kamp [Tue, 14 Feb 2012 11:01:53 +0000 (12:01 +0100)]
cec-config-gui: don't enable the 'connected device' selection when there's only one device
Lars Op den Kamp [Tue, 14 Feb 2012 10:39:56 +0000 (11:39 +0100)]
platform: added CCondition::Wait() without a timeout for windows. fixes compilation on windows
Lars Op den Kamp [Tue, 14 Feb 2012 10:39:20 +0000 (11:39 +0100)]
platform: let CTimeout return uint32_t instead of uint64_t. fixes compilation warning
Lars Op den Kamp [Tue, 14 Feb 2012 01:14:50 +0000 (02:14 +0100)]
cec: add an option to wake multiple devices via the initial configuration
Lars Op den Kamp [Tue, 14 Feb 2012 01:09:49 +0000 (02:09 +0100)]
cec: allow to override the TV vendor id via the initial configuration
Lars Op den Kamp [Tue, 14 Feb 2012 01:04:59 +0000 (02:04 +0100)]
cec-config: always set the hdmi port number and device, or v1.4- clients won't work properly
Lars Op den Kamp [Tue, 14 Feb 2012 00:43:03 +0000 (01:43 +0100)]
cec: send power state 'standby->on' before 'on' for SL
Lars Op den Kamp [Mon, 13 Feb 2012 23:29:26 +0000 (00:29 +0100)]
cec: cleanups in ActivateSource() and CSLCommandHandler
Lars Op den Kamp [Mon, 13 Feb 2012 19:45:35 +0000 (20:45 +0100)]
cec: fix the initial hdmi port setting
Lars Op den Kamp [Mon, 13 Feb 2012 19:40:47 +0000 (20:40 +0100)]
cec: fix SL reconnect when the source has been switched before standby
Lars Op den Kamp [Mon, 13 Feb 2012 19:21:20 +0000 (20:21 +0100)]
cec: also send 'image view on' before setting the active source
Lars Op den Kamp [Mon, 13 Feb 2012 18:16:56 +0000 (19:16 +0100)]
cec: added defines for SL vendor command 02
Lars Op den Kamp [Mon, 13 Feb 2012 17:42:18 +0000 (18:42 +0100)]
cec: don't send power on, acitve source and standby commands by default in cec-client
Lars Op den Kamp [Mon, 13 Feb 2012 17:07:24 +0000 (18:07 +0100)]
cec: implemented power up for LG devices other than a TV
Lars Op den Kamp [Mon, 13 Feb 2012 17:06:49 +0000 (18:06 +0100)]
cec: poll the next device when the current is handled by libCEC. check the vendor id of a device before sending a power on command
Lars Op den Kamp [Mon, 13 Feb 2012 16:19:06 +0000 (17:19 +0100)]
cec: just send the vendor id in InitHandler()
Lars Op den Kamp [Mon, 13 Feb 2012 13:44:42 +0000 (14:44 +0100)]
cec: replace the handler for the primary device directly after setting the type to LG
Lars Op den Kamp [Mon, 13 Feb 2012 12:36:00 +0000 (13:36 +0100)]
cec: protect the SL state vars with a mutex
Lars Op den Kamp [Mon, 13 Feb 2012 12:22:42 +0000 (13:22 +0100)]
cec: added a couple of debug lines
Lars Op den Kamp [Mon, 13 Feb 2012 12:05:00 +0000 (13:05 +0100)]
cec: send the physical address before sending the vendor id in the SL handler
Lars Op den Kamp [Mon, 13 Feb 2012 12:01:14 +0000 (13:01 +0100)]
cec: send power state 'standby->on' to the tv when initing the SL handler
Lars Op den Kamp [Mon, 13 Feb 2012 11:56:16 +0000 (12:56 +0100)]
cec: don't send 'image view on' when calling SetActiveSource()
Lars Op den Kamp [Mon, 13 Feb 2012 11:41:20 +0000 (12:41 +0100)]
cec: don't send menu state updates to LG
Lars Op den Kamp [Mon, 13 Feb 2012 09:28:14 +0000 (10:28 +0100)]
cec: only let SL bug out when the power state is requested twice in 5 seconds. don't allow to send active source message when SL isn't initialised
Lars Op den Kamp [Mon, 13 Feb 2012 02:02:55 +0000 (03:02 +0100)]
platform: added an Init() method in CTimeout, so it can be reset
Lars Op den Kamp [Mon, 13 Feb 2012 01:27:20 +0000 (02:27 +0100)]
cec: only replace handlers in the background thread in CCECProcessor. don't keep the mutex locked
Lars Op den Kamp [Mon, 13 Feb 2012 01:23:58 +0000 (02:23 +0100)]
cec: don't keep the mutex in CCECBusDevice locked in TransmitImageViewOn()
Lars Op den Kamp [Mon, 13 Feb 2012 00:09:11 +0000 (01:09 +0100)]
cec: send LG's vendor id to broadcast, not the tv
Lars Op den Kamp [Sun, 12 Feb 2012 19:32:30 +0000 (20:32 +0100)]
cec: reconnect SL after TV standby
Lars Op den Kamp [Sun, 12 Feb 2012 19:10:10 +0000 (20:10 +0100)]
cec: vendor command 05 -> TransmitVendorCommandSetDeviceMode
Lars Op den Kamp [Sun, 12 Feb 2012 19:01:44 +0000 (20:01 +0100)]
cec: more SL hacks
Lars Op den Kamp [Sun, 12 Feb 2012 16:20:09 +0000 (17:20 +0100)]
cec: more LG loop fix hacks
Lars Op den Kamp [Sun, 12 Feb 2012 14:42:03 +0000 (15:42 +0100)]
cec: stop replying to power status requests from LG when the power state is 'on'
Lars Op den Kamp [Sun, 12 Feb 2012 14:34:53 +0000 (15:34 +0100)]
cec: fix loop when initialising LG
Lars Op den Kamp [Sun, 12 Feb 2012 14:04:07 +0000 (15:04 +0100)]
cec: don't send 'image view on' to LG unless needed, or the tv will get caught in a loop
Lars Op den Kamp [Sat, 11 Feb 2012 21:24:28 +0000 (22:24 +0100)]
cec: lg expects the device type on 89:05. set deck status 0x20 only for recorders
Lars Op den Kamp [Sat, 11 Feb 2012 20:57:26 +0000 (21:57 +0100)]
cec: send feature abort to LG devices when they send a vendor id. start with status 'in transition standby to on' for LG
Lars Op den Kamp [Sat, 11 Feb 2012 20:46:09 +0000 (21:46 +0100)]
cec: don't try to lock the transmit mutex when deleting a command handler
Lars Op den Kamp [Sat, 11 Feb 2012 20:28:58 +0000 (21:28 +0100)]
Lars Op den Kamp [Sat, 11 Feb 2012 20:06:33 +0000 (21:06 +0100)]
cec: don't keep the mutex locked in CCECBusDevice when calling InitHandler
Lars Op den Kamp [Sat, 11 Feb 2012 20:02:32 +0000 (21:02 +0100)]
cec: prevent possible deadlock when closing the connection in CUSBCECAdapterCommunication::Close()
Lars Op den Kamp [Sat, 11 Feb 2012 20:01:02 +0000 (21:01 +0100)]
cec: keep the 'busy state' of the command handler in CCECBusDevice
Lars Op den Kamp [Sat, 11 Feb 2012 18:50:50 +0000 (19:50 +0100)]
cec: and now proper predicates
Lars Op den Kamp [Sat, 11 Feb 2012 17:55:28 +0000 (18:55 +0100)]
Revert "platform: added predicate in CCondition"
This reverts commit
41c655b6ba019bd5c342be9fcfa8c34fad0178ef.
Lars Op den Kamp [Sat, 11 Feb 2012 01:40:56 +0000 (02:40 +0100)]
platform: fixed return values of socket operations in lib/platform
Lars Op den Kamp [Sat, 11 Feb 2012 01:26:37 +0000 (02:26 +0100)]
platform: added predicate in CCondition
Lars Op den Kamp [Fri, 10 Feb 2012 23:31:30 +0000 (00:31 +0100)]
cec: fix linux compilation and warning after the recent changes
Lars Op den Kamp [Fri, 10 Feb 2012 20:15:01 +0000 (21:15 +0100)]
cec-config-gui: display the detected menu language
Lars Op den Kamp [Fri, 10 Feb 2012 20:00:20 +0000 (21:00 +0100)]
cec-config-gui: added some tooltips
Lars Op den Kamp [Fri, 10 Feb 2012 19:43:12 +0000 (20:43 +0100)]
deleted the signed driver from the tree, since that doesn't work. let the installer create a new signed driver on the production build system
Lars Op den Kamp [Fri, 10 Feb 2012 19:19:17 +0000 (20:19 +0100)]
added the new config tool to the installer
Lars Op den Kamp [Fri, 10 Feb 2012 18:52:25 +0000 (19:52 +0100)]
cec: added a .net CEC configuration tool
Lars Op den Kamp [Fri, 10 Feb 2012 11:53:11 +0000 (12:53 +0100)]
cec: added GetLogicalAddresses() and SetStreamPath() to LibCecSharp
Lars Op den Kamp [Fri, 10 Feb 2012 11:45:11 +0000 (12:45 +0100)]
cec: use the new "config constructor" in CecSharpClient
Lars Op den Kamp [Fri, 10 Feb 2012 11:44:34 +0000 (12:44 +0100)]
cec: don't override callback methods in the new LibCecSharp constructor
Lars Op den Kamp [Fri, 10 Feb 2012 11:44:11 +0000 (12:44 +0100)]
cec: create a default device type config in LibCecSharp
Lars Op den Kamp [Fri, 10 Feb 2012 11:33:56 +0000 (12:33 +0100)]
cec: added the new config persistence methods to LibCecSharp
Lars Op den Kamp [Fri, 10 Feb 2012 11:24:43 +0000 (12:24 +0100)]
cec: added the new initialise method to LibCecSharp (as a new constructor)
Lars Op den Kamp [Fri, 10 Feb 2012 10:57:48 +0000 (11:57 +0100)]
cec: extracted CecSharpTypes.h in LibCecSharp. LibCecSharp is now in the CecSharp namespace
Lars Op den Kamp [Fri, 10 Feb 2012 09:32:48 +0000 (10:32 +0100)]
cec-config: save the config xml if the adapter doesn't support persisting settings.
Lars Op den Kamp [Fri, 10 Feb 2012 01:13:58 +0000 (02:13 +0100)]
cec-config: make the chosen physical address active
Lars Op den Kamp [Fri, 10 Feb 2012 00:59:48 +0000 (01:59 +0100)]
cec: set the ackmask to 0 when closing the connection
Lars Op den Kamp [Fri, 10 Feb 2012 00:57:17 +0000 (01:57 +0100)]
cec: added CanPersistConfiguration()/cec_can_persist_configuration() and PersistConfiguration()/cec_persist_configuration()
Lars Op den Kamp [Thu, 9 Feb 2012 23:37:01 +0000 (00:37 +0100)]
cec-config: added the other options from xbmc to the config
Lars Op den Kamp [Thu, 9 Feb 2012 23:13:42 +0000 (00:13 +0100)]
cec: added GetCurrentConfiguration()/cec_get_current_configuration()
Lars Op den Kamp [Thu, 9 Feb 2012 22:31:58 +0000 (23:31 +0100)]
cec-config: use the new LibCecInitialise()
Lars Op den Kamp [Thu, 9 Feb 2012 21:42:31 +0000 (22:42 +0100)]
cec: added a new initialiser method: CecInitialise()/cec_initialise(), that accepts a "libc_configuration" struct as parameter. this way, the signature of the init method can stay the same when adding new options.
Lars Op den Kamp [Thu, 9 Feb 2012 15:23:12 +0000 (16:23 +0100)]
cec-config: fixed typo
Lars Op den Kamp [Thu, 9 Feb 2012 14:36:59 +0000 (15:36 +0100)]
platform: fix tcp socket error handling and return value.
Lars Op den Kamp [Thu, 9 Feb 2012 13:07:26 +0000 (14:07 +0100)]
cec: added cec-config, a libCEC configuration wizard. WIP. currently only detects the physical address.
Lars Op den Kamp [Thu, 9 Feb 2012 12:00:35 +0000 (13:00 +0100)]
cec: allow HDMI port changes after the physical address has been set, or it can't be changed anymore after libCEC has been initialised.
Lars Op den Kamp [Thu, 9 Feb 2012 11:59:54 +0000 (12:59 +0100)]
cec: use CTryLockObject when trying to replace handlers in CCECBusDevice
Lars Op den Kamp [Thu, 9 Feb 2012 11:59:21 +0000 (12:59 +0100)]
cec: added CTryLockObject
Lars Op den Kamp [Thu, 9 Feb 2012 00:04:41 +0000 (01:04 +0100)]
cec: include stdint.h in windows/os-types.h instead of typedef'ing ints
Lars Op den Kamp [Wed, 8 Feb 2012 23:21:43 +0000 (00:21 +0100)]
cec: add a physical address override parameter to libCEC's init method. when set to non-0, the given physical address will be used and autodetection and SetHDMIPort() will be disabled.
Lars Op den Kamp [Wed, 8 Feb 2012 23:07:48 +0000 (00:07 +0100)]
cec: removed deprecated CECCreate() method
Lars Op den Kamp [Wed, 8 Feb 2012 22:32:56 +0000 (23:32 +0100)]
cec: don't try to read or write in CUSBCECAdapterCommunication when the connection has been closed
Lars Op den Kamp [Wed, 8 Feb 2012 22:29:16 +0000 (23:29 +0100)]
cec: extracted a Close() method in CCECProcessor
Lars Op den Kamp [Wed, 8 Feb 2012 11:12:18 +0000 (12:12 +0100)]
LibCecSharp: added quotes to the linker statement for libcec.lib. fixes compilation in paths with spaces. closes #20
Lars Op den Kamp [Wed, 8 Feb 2012 11:04:51 +0000 (12:04 +0100)]
cec: use the local cec.h/cectypes.h instead of system wide when compiling libCEC and cec-client