deb_libcec.git
12 years agocec: cleanups in ActivateSource() and CSLCommandHandler
Lars Op den Kamp [Mon, 13 Feb 2012 23:29:26 +0000 (00:29 +0100)] 
cec: cleanups in ActivateSource() and CSLCommandHandler

12 years agocec: fix the initial hdmi port setting
Lars Op den Kamp [Mon, 13 Feb 2012 19:45:35 +0000 (20:45 +0100)] 
cec: fix the initial hdmi port setting

12 years agocec: fix SL reconnect when the source has been switched before standby
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

12 years agocec: also send 'image view on' before setting the active source
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

12 years agocec: added defines for SL vendor command 02
Lars Op den Kamp [Mon, 13 Feb 2012 18:16:56 +0000 (19:16 +0100)] 
cec: added defines for SL vendor command 02

12 years agocec: don't send power on, acitve source and standby commands by default in cec-client
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

12 years agocec: implemented power up for LG devices other than a TV
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

12 years agocec: poll the next device when the current is handled by libCEC. check the vendor...
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

12 years agocec: just send the vendor id in InitHandler()
Lars Op den Kamp [Mon, 13 Feb 2012 16:19:06 +0000 (17:19 +0100)] 
cec: just send the vendor id in InitHandler()

12 years agocec: replace the handler for the primary device directly after setting the type to LG
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

12 years agocec: protect the SL state vars with a mutex
Lars Op den Kamp [Mon, 13 Feb 2012 12:36:00 +0000 (13:36 +0100)] 
cec: protect the SL state vars with a mutex

12 years agocec: added a couple of debug lines
Lars Op den Kamp [Mon, 13 Feb 2012 12:22:42 +0000 (13:22 +0100)] 
cec: added a couple of debug lines

12 years agocec: send the physical address before sending the vendor id in the SL handler
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

12 years agocec: send power state 'standby->on' to the tv when initing 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

12 years agocec: don't send 'image view on' when calling SetActiveSource()
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()

12 years agocec: don't send menu state updates to LG
Lars Op den Kamp [Mon, 13 Feb 2012 11:41:20 +0000 (12:41 +0100)] 
cec: don't send menu state updates to LG

12 years agocec: only let SL bug out when the power state is requested twice in 5 seconds. don...
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

12 years agoplatform: added an Init() method in CTimeout, so it can be reset
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

12 years agocec: only replace handlers in the background thread in CCECProcessor. don't keep...
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

12 years agocec: don't keep the mutex in CCECBusDevice locked in TransmitImageViewOn()
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()

12 years agocec: send LG's vendor id to broadcast, not the tv
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

12 years agocec: reconnect SL after TV standby
Lars Op den Kamp [Sun, 12 Feb 2012 19:32:30 +0000 (20:32 +0100)] 
cec: reconnect SL after TV standby

12 years agocec: vendor command 05 -> TransmitVendorCommandSetDeviceMode
Lars Op den Kamp [Sun, 12 Feb 2012 19:10:10 +0000 (20:10 +0100)] 
cec: vendor command 05 -> TransmitVendorCommandSetDeviceMode

12 years agocec: more SL hacks
Lars Op den Kamp [Sun, 12 Feb 2012 19:01:44 +0000 (20:01 +0100)] 
cec: more SL hacks

12 years agocec: more LG loop fix hacks
Lars Op den Kamp [Sun, 12 Feb 2012 16:20:09 +0000 (17:20 +0100)] 
cec: more LG loop fix hacks

12 years agocec: stop replying to power status requests from LG when the power state is 'on'
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'

12 years agocec: fix loop when initialising LG
Lars Op den Kamp [Sun, 12 Feb 2012 14:34:53 +0000 (15:34 +0100)] 
cec: fix loop when initialising LG

12 years agocec: don't send 'image view on' to LG unless needed, or the tv will get caught in...
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

12 years agocec: lg expects the device type on 89:05. set deck status 0x20 only for recorders
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

12 years agocec: send feature abort to LG devices when they send a vendor id. start with status...
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

12 years agocec: don't try to lock the transmit mutex when deleting a command handler
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

12 years agocec: fix 104125dc8316fb58253c34f417ded1e85b22c9f8
Lars Op den Kamp [Sat, 11 Feb 2012 20:28:58 +0000 (21:28 +0100)] 
cec: fix 104125dc8316fb58253c34f417ded1e85b22c9f8

12 years agocec: don't keep the mutex locked in CCECBusDevice when calling InitHandler
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

12 years agocec: prevent possible deadlock when closing the connection in CUSBCECAdapterCommunica...
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()

12 years agocec: keep the 'busy state' of the command handler in CCECBusDevice
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

12 years agocec: and now proper predicates
Lars Op den Kamp [Sat, 11 Feb 2012 18:50:50 +0000 (19:50 +0100)] 
cec: and now proper predicates

12 years agoRevert "platform: added predicate in CCondition"
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.

12 years agoplatform: fixed return values of socket operations in lib/platform
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

12 years agoplatform: added predicate in CCondition
Lars Op den Kamp [Sat, 11 Feb 2012 01:26:37 +0000 (02:26 +0100)] 
platform: added predicate in CCondition

12 years agocec: fix linux compilation and warning after the recent changes
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

12 years agocec-config-gui: display the detected menu language
Lars Op den Kamp [Fri, 10 Feb 2012 20:15:01 +0000 (21:15 +0100)] 
cec-config-gui: display the detected menu language

12 years agocec-config-gui: added some tooltips
Lars Op den Kamp [Fri, 10 Feb 2012 20:00:20 +0000 (21:00 +0100)] 
cec-config-gui: added some tooltips

12 years agodeleted the signed driver from the tree, since that doesn't work. let the installer...
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

12 years agoadded the new config tool to the installer
Lars Op den Kamp [Fri, 10 Feb 2012 19:19:17 +0000 (20:19 +0100)] 
added the new config tool to the installer

12 years agocec: added a .net CEC configuration tool
Lars Op den Kamp [Fri, 10 Feb 2012 18:52:25 +0000 (19:52 +0100)] 
cec: added a .net CEC configuration tool

12 years agocec: added GetLogicalAddresses() and SetStreamPath() to LibCecSharp
Lars Op den Kamp [Fri, 10 Feb 2012 11:53:11 +0000 (12:53 +0100)] 
cec: added GetLogicalAddresses() and SetStreamPath() to LibCecSharp

12 years agocec: use the new "config constructor" in CecSharpClient
Lars Op den Kamp [Fri, 10 Feb 2012 11:45:11 +0000 (12:45 +0100)] 
cec: use the new "config constructor" in CecSharpClient

12 years agocec: don't override callback methods in the new LibCecSharp constructor
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

12 years agocec: create a default device type config in LibCecSharp
Lars Op den Kamp [Fri, 10 Feb 2012 11:44:11 +0000 (12:44 +0100)] 
cec: create a default device type config in LibCecSharp

12 years agocec: added the new config persistence methods to 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

12 years agocec: added the new initialise method to LibCecSharp (as a new constructor)
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)

12 years agocec: extracted CecSharpTypes.h in LibCecSharp. LibCecSharp is now in the CecSharp...
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

12 years agocec-config: save the config xml if the adapter doesn't support persisting settings.
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.

12 years agocec-config: make the chosen physical address active
Lars Op den Kamp [Fri, 10 Feb 2012 01:13:58 +0000 (02:13 +0100)] 
cec-config: make the chosen physical address active

12 years agocec: set the ackmask to 0 when closing the connection
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

12 years agocec: added CanPersistConfiguration()/cec_can_persist_configuration() and PersistConfi...
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()

12 years agocec-config: added the other options from xbmc to the config
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

12 years agocec: added GetCurrentConfiguration()/cec_get_current_configuration()
Lars Op den Kamp [Thu, 9 Feb 2012 23:13:42 +0000 (00:13 +0100)] 
cec: added GetCurrentConfiguration()/cec_get_current_configuration()

12 years agocec-config: use the new LibCecInitialise()
Lars Op den Kamp [Thu, 9 Feb 2012 22:31:58 +0000 (23:31 +0100)] 
cec-config: use the new LibCecInitialise()

12 years agocec: added a new initialiser method: CecInitialise()/cec_initialise(), that accepts...
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.

12 years agocec-config: fixed typo
Lars Op den Kamp [Thu, 9 Feb 2012 15:23:12 +0000 (16:23 +0100)] 
cec-config: fixed typo

12 years agoplatform: fix tcp socket error handling and return value.
Lars Op den Kamp [Thu, 9 Feb 2012 14:36:59 +0000 (15:36 +0100)] 
platform: fix tcp socket error handling and return value.

12 years agocec: added cec-config, a libCEC configuration wizard. WIP. currently only detects...
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.

12 years agocec: allow HDMI port changes after the physical address has been set, or it can't...
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.

12 years agocec: use CTryLockObject when trying to replace handlers in CCECBusDevice
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

12 years agocec: added CTryLockObject
Lars Op den Kamp [Thu, 9 Feb 2012 11:59:21 +0000 (12:59 +0100)] 
cec: added CTryLockObject

12 years agocec: include stdint.h in windows/os-types.h instead of typedef'ing ints
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

12 years agocec: add a physical address override parameter to libCEC's init method. when set...
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.

12 years agocec: removed deprecated CECCreate() method
Lars Op den Kamp [Wed, 8 Feb 2012 23:07:48 +0000 (00:07 +0100)] 
cec: removed deprecated CECCreate() method

12 years agocec: don't try to read or write in CUSBCECAdapterCommunication when the connection...
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

12 years agocec: extracted a Close() method in CCECProcessor
Lars Op den Kamp [Wed, 8 Feb 2012 22:29:16 +0000 (23:29 +0100)] 
cec: extracted a Close() method in CCECProcessor

12 years agoLibCecSharp: added quotes to the linker statement for libcec.lib. fixes compilation...
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

12 years agocec: use the local cec.h/cectypes.h instead of system wide when compiling libCEC...
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

12 years agocec: include the local cectypes.h in cec.h and cecc.h instead of system wide
Lars Op den Kamp [Wed, 8 Feb 2012 10:56:02 +0000 (11:56 +0100)] 
cec: include the local cectypes.h in cec.h and cecc.h instead of system wide

12 years agocec: don't broadcast but wake one thread in CProtectedSocket::MarkReady()
Lars Op den Kamp [Tue, 7 Feb 2012 01:32:43 +0000 (02:32 +0100)] 
cec: don't broadcast but wake one thread in CProtectedSocket::MarkReady()

12 years agocec: moved the previously added OS-X ifdef to posix/os-socket.h
Lars Op den Kamp [Tue, 7 Feb 2012 01:13:40 +0000 (02:13 +0100)] 
cec: moved the previously added OS-X ifdef to posix/os-socket.h

12 years agocec: fix OS-X compilation. credits: Dustin Cooper
Lars Op den Kamp [Tue, 7 Feb 2012 00:36:56 +0000 (01:36 +0100)] 
cec: fix OS-X compilation. credits: Dustin Cooper

12 years agocec: added GetLogicalAddresses()/cec_get_logical_addresses() to the interface, that...
Lars Op den Kamp [Mon, 6 Feb 2012 15:05:25 +0000 (16:05 +0100)] 
cec: added GetLogicalAddresses()/cec_get_logical_addresses() to the interface, that returns the list of addresses controlled by libCEC

12 years agocec: fixed typo in CUSBCECAdapterCommunication::Read()
Lars Op den Kamp [Mon, 6 Feb 2012 14:36:55 +0000 (15:36 +0100)] 
cec: fixed typo in CUSBCECAdapterCommunication::Read()

12 years agoupdated changelog and bumped version numbers to 1.4.3
Lars Op den Kamp [Mon, 6 Feb 2012 13:29:44 +0000 (14:29 +0100)] 
updated changelog and bumped version numbers to 1.4.3

12 years agocec: fixed crash on exit in LibCecSharp
Lars Op den Kamp [Mon, 6 Feb 2012 13:04:04 +0000 (14:04 +0100)] 
cec: fixed crash on exit in LibCecSharp

12 years agocec: don't sign development binaries with a temporary key. devs can do that themselve...
Lars Op den Kamp [Mon, 6 Feb 2012 12:28:53 +0000 (13:28 +0100)] 
cec: don't sign development binaries with a temporary key. devs can do that themselves when they want LibCecSharp in the GAC

12 years agocec: added SetStreamPath()/cec_set_stream_path_logical()/cec_set_stream_path_physical...
Lars Op den Kamp [Mon, 6 Feb 2012 11:47:34 +0000 (12:47 +0100)] 
cec: added SetStreamPath()/cec_set_stream_path_logical()/cec_set_stream_path_physical() to the interface, to send a "set stream path" command over the CEC bus, used to activate another source.

12 years agocosmetics
Lars Op den Kamp [Mon, 6 Feb 2012 10:15:37 +0000 (11:15 +0100)] 
cosmetics

12 years agocec: keep the mutex locked when calling ReplaceHandlers() in CCECProcessor
Lars Op den Kamp [Mon, 6 Feb 2012 10:15:22 +0000 (11:15 +0100)] 
cec: keep the mutex locked when calling ReplaceHandlers() in CCECProcessor

12 years agocec: thread methods should be virtual, not inline. fixes access violation on win32
Lars Op den Kamp [Mon, 6 Feb 2012 10:14:44 +0000 (11:14 +0100)] 
cec: thread methods should be virtual, not inline. fixes access violation on win32

12 years agocec: created a separate driver installer, which is included in the libCEC installer...
Lars Op den Kamp [Sun, 5 Feb 2012 13:45:24 +0000 (14:45 +0100)] 
cec: created a separate driver installer, which is included in the libCEC installer. uninstalls the old unsigned version of libCEC and the driver when it's found and installs the new one in C:\Program Files(x86)\Pulse Eight\USB-CEC Adapter.

12 years agocec: added "driver only" and "driver + libcec" sections to the installer
Lars Op den Kamp [Sat, 4 Feb 2012 16:14:33 +0000 (17:14 +0100)] 
cec: added "driver only" and "driver + libcec" sections to the installer

12 years agocec: let create-installer.cmd sign all binaries on the production build system.
Lars Op den Kamp [Sat, 4 Feb 2012 16:14:06 +0000 (17:14 +0100)] 
cec: let create-installer.cmd sign all binaries on the production build system.

12 years agocec: added a signed driver
Lars Op den Kamp [Sat, 4 Feb 2012 10:27:00 +0000 (11:27 +0100)] 
cec: added a signed driver

12 years agocec: fixed possible crash when command handler were switched while it was being used
Lars Op den Kamp [Thu, 2 Feb 2012 23:46:06 +0000 (00:46 +0100)] 
cec: fixed possible crash when command handler were switched while it was being used

12 years agocec: don't replace handlers when not initialised, or the primary device's logical...
Lars Op den Kamp [Thu, 2 Feb 2012 20:06:21 +0000 (21:06 +0100)] 
cec: don't replace handlers when not initialised, or the primary device's logical addres isn't known yet, which can lead to crashes. don't call handlers directly in CCECProcessor without holding a lock on them

12 years agocec: ping the adapter and request the firmware version in CUSBCECAdapterCommunication...
Lars Op den Kamp [Thu, 2 Feb 2012 19:20:10 +0000 (20:20 +0100)] 
cec: ping the adapter and request the firmware version in CUSBCECAdapterCommunication instead of CCECProcesssor. fixes failed libCEC inits on win32

12 years agocec: fixed compilation warnings
Lars Op den Kamp [Thu, 2 Feb 2012 13:46:16 +0000 (14:46 +0100)] 
cec: fixed compilation warnings

12 years agocec: added an IAdapterCommunicationCallback interface an use a callback method to...
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

12 years agocec: dropped no longer needed start condition and state boolean in 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

12 years agocosmetics
Lars Op den Kamp [Thu, 2 Feb 2012 10:09:43 +0000 (11:09 +0100)] 
cosmetics

12 years agocosmetics: AddLog() has formatting params
Lars Op den Kamp [Thu, 2 Feb 2012 02:13:59 +0000 (03:13 +0100)] 
cosmetics: AddLog() has formatting params

12 years agocec: added the new msgcodes to MessageCodeAsString()
Lars Op den Kamp [Thu, 2 Feb 2012 01:38:16 +0000 (02:38 +0100)] 
cec: added the new msgcodes to MessageCodeAsString()

12 years agolinux: fix compilation
Lars Op den Kamp [Thu, 2 Feb 2012 01:37:09 +0000 (02:37 +0100)] 
linux: fix compilation