Lars Op den Kamp [Thu, 8 Mar 2012 19:57:43 +0000 (20:57 +0100)]
cec: set the correct logical address mask before switching to autonomous mode. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 19:39:22 +0000 (20:39 +0100)]
cec: cleanups. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 19:21:42 +0000 (20:21 +0100)]
cec: only wait for multiple 'command accepted' response when sending a transmit command, and only to 1 in other cases. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 19:09:09 +0000 (20:09 +0100)]
cec: set the device type in the firmware too for v2 firmwares. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 17:30:49 +0000 (18:30 +0100)]
cec: try to set the other settings of one fails. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 17:19:38 +0000 (18:19 +0100)]
cec: persist the configuration before closing the connection. only try to persist the configuration when talking to a v2 firmware. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 17:12:31 +0000 (18:12 +0100)]
cec: included the logical addresses in the persisted configuration for v2. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 15:25:04 +0000 (16:25 +0100)]
cec: implemented the write methods for the v2 configuration. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 14:29:10 +0000 (15:29 +0100)]
cec: added v2 msgcodes. bugzid: 543
Lars Op den Kamp [Thu, 8 Mar 2012 14:19:44 +0000 (15:19 +0100)]
cec: ping the adapter every 15 seconds. bugzid: 541
Lars Op den Kamp [Thu, 8 Mar 2012 14:12:30 +0000 (15:12 +0100)]
cec: call SetControlledMode(false) as last command when closing the connection in v2. bugzid: 542
Bob van Loosen [Tue, 6 Mar 2012 16:00:39 +0000 (17:00 +0100)]
fixed: CUSBCECAdapterCommunication::SetControlledMode checked for the wrong sent state
Lars Op den Kamp [Sun, 4 Mar 2012 09:45:18 +0000 (10:45 +0100)]
os-x: don't add 0.5 before dividing in GetTimeMs()
Bob van Loosen [Sat, 3 Mar 2012 22:26:52 +0000 (23:26 +0100)]
fixed: compile
Bob van Loosen [Sat, 3 Mar 2012 16:36:28 +0000 (17:36 +0100)]
fixed: struct timespec now values weren't set correctly on osx
Lars Op den Kamp [Sat, 3 Mar 2012 16:17:37 +0000 (17:17 +0100)]
os-x: fixed GetTimeMs() on OS-X (hopefully). credits @bobo1on1
Lars Op den Kamp [Sat, 3 Mar 2012 16:01:42 +0000 (08:01 -0800)]
Merge pull request #27 from Fneufneu/master
FreeBSD support
Lars Op den Kamp [Sat, 3 Mar 2012 14:22:17 +0000 (15:22 +0100)]
updated changelog and bumped version numbers for v1.5.2
Lars Op den Kamp [Sat, 3 Mar 2012 14:17:37 +0000 (15:17 +0100)]
win32: removed StdString::Trim() call in cec-config. windows doesn't like it for some reason and it's just cosmetics. fixes compiler error on windows.
Lars Op den Kamp [Sat, 3 Mar 2012 14:09:55 +0000 (15:09 +0100)]
cec: default to firmware version 1 after 3 tries. some versions might not send this info.
Lars Op den Kamp [Thu, 1 Mar 2012 10:14:25 +0000 (11:14 +0100)]
added 'libtool' to the prereq's for linux
Lars Op den Kamp [Wed, 29 Feb 2012 16:08:20 +0000 (17:08 +0100)]
fix OS-X compilation
Lars Op den Kamp [Wed, 29 Feb 2012 00:10:18 +0000 (01:10 +0100)]
changelog cosmetics
Lars Op den Kamp [Wed, 29 Feb 2012 00:08:29 +0000 (01:08 +0100)]
cec: fix linux compilation after the last commit
Lars Op den Kamp [Tue, 28 Feb 2012 23:33:43 +0000 (00:33 +0100)]
cec: fix access violation when starting the bootloader directly on windows
Lars Op den Kamp [Tue, 28 Feb 2012 20:19:51 +0000 (21:19 +0100)]
added changelog for v1.5.1
Lars Op den Kamp [Tue, 28 Feb 2012 18:49:13 +0000 (19:49 +0100)]
cec: check the adapter ping and firmware before starting the reader thread, so we really leave the com port alone for a second when it fails because of a busy error
Lars Op den Kamp [Tue, 28 Feb 2012 18:05:25 +0000 (19:05 +0100)]
cec: use the correct Sleep() method in CCECProcessor::OpenConnection(). the thread hasn't been started there yet, so the sleep wasn't working. fixes 'device or resource busy' when plugging in the adapter. issue was reported on the forums
Fneufneu [Tue, 28 Feb 2012 07:22:25 +0000 (08:22 +0100)]
cosmetic replace tab by space
Lars Op den Kamp [Tue, 28 Feb 2012 01:58:15 +0000 (02:58 +0100)]
cec-config-gui: added support for the new 'send inactive source' setting
Lars Op den Kamp [Tue, 28 Feb 2012 01:48:01 +0000 (02:48 +0100)]
LibCecSharp: implemented support for the new 'send inactive source' setting
Lars Op den Kamp [Tue, 28 Feb 2012 01:43:05 +0000 (02:43 +0100)]
LibCecSharp: recreate the delegates properly when (re)connecting to LibCecSharp
Lars Op den Kamp [Tue, 28 Feb 2012 01:23:58 +0000 (02:23 +0100)]
LibCecSharp: more cosmetics
Lars Op den Kamp [Tue, 28 Feb 2012 01:08:14 +0000 (02:08 +0100)]
cec-config-gui: set cbPortNumber enabled when the physical address override isn't checked instead
Lars Op den Kamp [Tue, 28 Feb 2012 01:06:53 +0000 (02:06 +0100)]
cec-config-gui: cosmetics
Lars Op den Kamp [Tue, 28 Feb 2012 00:50:40 +0000 (01:50 +0100)]
cec-config-gui: fix 'enabled' status of cbPortNumber now that libCEC no longer unsets the autodetect bool
Lars Op den Kamp [Mon, 27 Feb 2012 22:35:00 +0000 (23:35 +0100)]
cec: just dlclose()/FreeLibrary() after starting the bootloader
Lars Op den Kamp [Mon, 27 Feb 2012 22:03:33 +0000 (23:03 +0100)]
cec: added a command to the interface to start the bootloader directly, without going through all checks. bugzid: 218
Lars Op den Kamp [Mon, 27 Feb 2012 20:25:46 +0000 (21:25 +0100)]
cec: added an 'send inactive source' option to libcec_configuration, only supported by client/server 1.5.1 and up. bugzid: 439
Lars Op den Kamp [Mon, 27 Feb 2012 19:57:41 +0000 (20:57 +0100)]
cec: ensure that the connection is really closed before retrying to connect. bugzig: 436
Lars Op den Kamp [Mon, 27 Feb 2012 19:40:08 +0000 (20:40 +0100)]
cec: don't wait for the full timeout to pass in CCECProcessor::OpenConnection(), but retry to connect 2 times. fixes 'port busy' errors when initialising libCEC
Lars Op den Kamp [Mon, 27 Feb 2012 19:10:00 +0000 (20:10 +0100)]
cec: fix configuration updates from libCEC. bugzid: 459
Lars Op den Kamp [Mon, 27 Feb 2012 19:09:24 +0000 (20:09 +0100)]
cec: set the server version in the LibCEC's constructor, since this is checked by clients. fixes 'invalid libCEC version' popup when inserting the adapter
Fneufneu [Mon, 27 Feb 2012 17:07:37 +0000 (18:07 +0100)]
Initial FreeBSD support
simply try to use ttyU*
Lars Op den Kamp [Mon, 27 Feb 2012 14:32:13 +0000 (15:32 +0100)]
platform: use gettimeofday() on darwin in GetAbsTime(), as it is specified in OS-X dev guide
Lars Op den Kamp [Mon, 27 Feb 2012 13:23:36 +0000 (14:23 +0100)]
cec: don't send an updated configuration back when initialising. let the client call the GetCurrentConfiguration() method. bugzid: 459
Lars Op den Kamp [Mon, 27 Feb 2012 13:15:26 +0000 (14:15 +0100)]
cec: don't send an updated configuration when libCEC hasn't been initialised fully. bugzid: 459
Lars Op den Kamp [Mon, 27 Feb 2012 13:09:17 +0000 (14:09 +0100)]
cec: don't try to transmit when the processor is being stopped.
Lars Op den Kamp [Sun, 26 Feb 2012 23:51:58 +0000 (00:51 +0100)]
cosmetics
Lars Op den Kamp [Sun, 26 Feb 2012 23:50:25 +0000 (00:50 +0100)]
cec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED
Lars Op den Kamp [Sun, 26 Feb 2012 23:44:10 +0000 (00:44 +0100)]
cec: link to rt. fixes compilation after
c4609291c334e2f5f5b87b8dc37e68a958bfb378
Lars Op den Kamp [Sun, 26 Feb 2012 22:41:09 +0000 (23:41 +0100)]
cec: and now correct
Lars Op den Kamp [Sun, 26 Feb 2012 22:38:59 +0000 (23:38 +0100)]
cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes messages not being parsed in certain occasions
Bob van Loosen [Sun, 26 Feb 2012 22:16:58 +0000 (23:16 +0100)]
fixed: the timeout value of pthread_cond_timedwait has to be referenced to CLOCK_REALTIME
Bob van Loosen [Sun, 26 Feb 2012 22:03:13 +0000 (23:03 +0100)]
fixed: use CLOCK_MONOTONIC for timing info, since gettimeofday is affected by ntp and by manually adjusting the system time
Lars Op den Kamp [Sun, 26 Feb 2012 22:17:21 +0000 (23:17 +0100)]
cec: added a timeout to StopThread()
Lars Op den Kamp [Sun, 26 Feb 2012 21:49:43 +0000 (22:49 +0100)]
cec: don't add data to the input buffer in CUSBCECAdapterCommunication before it's fully initialised
Lars Op den Kamp [Sun, 26 Feb 2012 21:28:04 +0000 (22:28 +0100)]
cec: lock in SyncedBuffer
Lars Op den Kamp [Sat, 25 Feb 2012 19:34:15 +0000 (20:34 +0100)]
cec: fixed invalid forward decl after changing struct into class
Lars Op den Kamp [Sat, 25 Feb 2012 10:16:57 +0000 (11:16 +0100)]
osx compiler was complaining about non-virtual destructors in the interface structs. fixed
Lars Op den Kamp [Sat, 25 Feb 2012 10:07:56 +0000 (11:07 +0100)]
fixed two more accidental double derefs
Lars Op den Kamp [Wed, 22 Feb 2012 10:40:16 +0000 (11:40 +0100)]
cec: fixed c+p monster - CRLCommandHandler is for Toshiba, not Panasonic
Lars Op den Kamp [Tue, 21 Feb 2012 12:40:43 +0000 (13:40 +0100)]
platform: fixed accidental double deref. the method parameter already does that. closes #24
Lars Op den Kamp [Tue, 21 Feb 2012 12:10:49 +0000 (13:10 +0100)]
cec: added Toshiba's vendor id, and set the device ID of the primary device to Toshiba's and transmit it when starting
Lars Op den Kamp [Tue, 21 Feb 2012 12:09:54 +0000 (13:09 +0100)]
win32: moved all the code signing data into support/private
Lars Op den Kamp [Sun, 19 Feb 2012 10:29:39 +0000 (11:29 +0100)]
fixed tabs -> spaces in the changelog
Lars Op den Kamp [Sun, 19 Feb 2012 01:29:02 +0000 (02:29 +0100)]
cec: also send deck status 0x20 when no active source message has been sent, or keypresses won't work after a source switch
Lars Op den Kamp [Sun, 19 Feb 2012 01:16:05 +0000 (02:16 +0100)]
cec-config-gui: ask the user whether he wants to try to reconnect when the connection failed.
Lars Op den Kamp [Sun, 19 Feb 2012 01:18:11 +0000 (02:18 +0100)]
cec: don't send an updated configuration when the connection failed
Lars Op den Kamp [Sun, 19 Feb 2012 00:59:30 +0000 (01:59 +0100)]
cec-config-gui: make overriding the physical address optional
Lars Op den Kamp [Sun, 19 Feb 2012 00:32:13 +0000 (01:32 +0100)]
updated changelog for 1.5.0
Lars Op den Kamp [Sat, 18 Feb 2012 11:13:46 +0000 (12:13 +0100)]
cec: fixed crash when replacing handlers - std::map::clear() already calls the destructors of each item
Lars Op den Kamp [Sat, 18 Feb 2012 02:18:03 +0000 (03:18 +0100)]
win32: don't install libcec to the system directory by default, and delete previous (testing) copies if present
Lars Op den Kamp [Sat, 18 Feb 2012 01:50:34 +0000 (02:50 +0100)]
cec: wait for multiple responses, not just for one. don't try to read and write at the same time
Lars Op den Kamp [Fri, 17 Feb 2012 17:36:43 +0000 (18:36 +0100)]
cec: don't keep the mutex locked while opening/closing a connection in CCECProcessor now that the communication thread executes commands directly instead of via a buffer. fixes lockup on exit when data is being received
Lars Op den Kamp [Fri, 17 Feb 2012 14:36:18 +0000 (15:36 +0100)]
cec: fixed compilation warning on win32 (possibly uninitialised var)
Lars Op den Kamp [Fri, 17 Feb 2012 11:30:23 +0000 (12:30 +0100)]
cec: don't transmit in CCECProcessor while keeping the mutex locked. don't set the device state to not present when no acked was received, because that can have other causes
Lars Op den Kamp [Fri, 17 Feb 2012 10:55:05 +0000 (11:55 +0100)]
cec: fixed typo in GetStatus()
Lars Op den Kamp [Fri, 17 Feb 2012 10:37:20 +0000 (11:37 +0100)]
cec: process messages that were received async, or all incoming requests will time out
Lars Op den Kamp [Fri, 17 Feb 2012 10:23:12 +0000 (11:23 +0100)]
cec: ensure that the vendor id is requested first when requesting info from a device, so we are using the correct handler
Lars Op den Kamp [Fri, 17 Feb 2012 10:14:08 +0000 (11:14 +0100)]
cec: cleaned up CCECBusDevice::GetStatus()
Lars Op den Kamp [Fri, 17 Feb 2012 09:55:03 +0000 (10:55 +0100)]
cec: LG devices don't respond to CEC version requests (unsupported feature). set it to 1.3a for all LG devices
Lars Op den Kamp [Fri, 17 Feb 2012 09:53:56 +0000 (10:53 +0100)]
cec: fixed 'unsupported command' marking in CCECBusDevice
Lars Op den Kamp [Fri, 17 Feb 2012 09:53:17 +0000 (10:53 +0100)]
cec: fixed - directly process commands that have been received, or all the 'request' methods will fail initially
Lars Op den Kamp [Fri, 17 Feb 2012 01:59:46 +0000 (02:59 +0100)]
tabs -> spaces
Lars Op den Kamp [Fri, 17 Feb 2012 01:58:48 +0000 (02:58 +0100)]
platform: fixed return value from CCondition::Wait()
Lars Op den Kamp [Thu, 16 Feb 2012 19:28:08 +0000 (20:28 +0100)]
cec-config-gui: fixed typo that saved the incorrect base device setting
Lars Op den Kamp [Thu, 16 Feb 2012 18:48:02 +0000 (19:48 +0100)]
cec: bump version numbers to 1.5, to prepare for the new release
Lars Op den Kamp [Thu, 16 Feb 2012 13:54:21 +0000 (14:54 +0100)]
cec: restore the order in the headers
Lars Op den Kamp [Thu, 16 Feb 2012 13:11:09 +0000 (14:11 +0100)]
cec: added RescanDevices()/cec_rescan_devices() to the interface, to let libCEC force polls to all logical addresses. deprecated GetLibVersion() methods, and added the server version to libcec_configuration. added missing libcec_configuration conversions in LibCecSharp.
Lars Op den Kamp [Thu, 16 Feb 2012 11:12:42 +0000 (12:12 +0100)]
installer: reuse the previous driver installer if it's found
Lars Op den Kamp [Thu, 16 Feb 2012 09:57:26 +0000 (10:57 +0100)]
cec: check whether the port is open, not whether libCEC is initialised in Transmit()
Lars Op den Kamp [Thu, 16 Feb 2012 09:44:27 +0000 (10:44 +0100)]
cec: ensure that the ackmask is always set to 0 when closing the connection and that the call doesn't block the Close() call
Lars Op den Kamp [Thu, 16 Feb 2012 09:08:13 +0000 (10:08 +0100)]
cec-config-gui: make the progress bar invisible when done. disable the physical address/hdmi port settings when the address is autodetected.
Lars Op den Kamp [Thu, 16 Feb 2012 09:07:23 +0000 (10:07 +0100)]
cec: moved the autodetect address api call to libcec_configuration. only send power up commands to non-tv devices when the power state is not on/transition->on. let players call the power up/power down command.
Lars Op den Kamp [Thu, 16 Feb 2012 01:13:40 +0000 (02:13 +0100)]
cec: removed unneeded client version from the CCECProcessor constructor
Lars Op den Kamp [Thu, 16 Feb 2012 00:59:44 +0000 (01:59 +0100)]
cec-config-gui: added implementations for "wake devices" and "standby devices"
Lars Op den Kamp [Thu, 16 Feb 2012 00:59:06 +0000 (01:59 +0100)]
LibCecSharp: pass correctly formatted logical address lists
Lars Op den Kamp [Thu, 16 Feb 2012 00:58:29 +0000 (01:58 +0100)]
cec: fix active source switches for the standard CEC implementation. added some log messages. ensure that we don't send data to ourself
Lars Op den Kamp [Thu, 16 Feb 2012 00:04:58 +0000 (01:04 +0100)]
cec: don't hold a lock in CCECBusDevice when calling GetStatus()