Lars Op den Kamp [Thu, 26 Apr 2012 12:50:41 +0000 (14:50 +0200)]
cec: fixed serverVersion assignment that went out of scope in CECInitialise()
Lars Op den Kamp [Thu, 26 Apr 2012 12:37:07 +0000 (14:37 +0200)]
cec-client: show the firmware build date if it's available in cec-client -l. fixed double delete on exit in cec-client -l
Lars Op den Kamp [Thu, 26 Apr 2012 12:32:31 +0000 (14:32 +0200)]
cec: replaced a load of magic numbers
Lars Op den Kamp [Thu, 26 Apr 2012 12:13:05 +0000 (14:13 +0200)]
cec: fixed CCECProcessor::IsActiveSource() - TV was never checked
Lars Op den Kamp [Thu, 26 Apr 2012 12:11:57 +0000 (14:11 +0200)]
cec: don't call the deprecated SetActiveView() method in cec-client
Lars Op den Kamp [Thu, 26 Apr 2012 12:08:16 +0000 (14:08 +0200)]
cec: request the active source if it's unknown in CCECProcessor::GetActiveSource()
Lars Op den Kamp [Thu, 26 Apr 2012 11:59:12 +0000 (13:59 +0200)]
cec: don't suppress PA updates when called via CCECProcessor::GetDevicePhysicalAddress()
Lars Op den Kamp [Thu, 26 Apr 2012 11:55:27 +0000 (13:55 +0200)]
cec: don't try to match a device with PA 0xFFFF. don't change the power status of a device when changing the stream path
Lars Op den Kamp [Thu, 26 Apr 2012 11:44:23 +0000 (13:44 +0200)]
cec-client: don't activate the source when starting
Lars Op den Kamp [Thu, 26 Apr 2012 11:43:13 +0000 (13:43 +0200)]
cec-client: group up the output of the 'scan' command, and add the currently active source to the output
Lars Op den Kamp [Thu, 26 Apr 2012 11:42:15 +0000 (13:42 +0200)]
cec: set the initial stream path to PA 0xFFFF instead of 0x0. added some logging
Lars Op den Kamp [Thu, 26 Apr 2012 11:10:56 +0000 (13:10 +0200)]
cec: don't set the power status to 'powered off' when marking the source managed by libcec as inactive, or the tv will might send a power control keycode when making it active again, potentially shutting down the system
Lars Op den Kamp [Thu, 26 Apr 2012 11:07:24 +0000 (13:07 +0200)]
cec: fixed potential segfault in CCECProcessor::GetDeviceByPhysicalAddress()
Lars Op den Kamp [Thu, 26 Apr 2012 11:04:50 +0000 (13:04 +0200)]
cec: fixed stream path changes when changed to the TV source (PA 0)
Lars Op den Kamp [Thu, 26 Apr 2012 10:55:32 +0000 (12:55 +0200)]
cec: clear the unsupported features list in CCECBusDevice::ResetDeviceStatus()
Lars Op den Kamp [Thu, 26 Apr 2012 10:54:13 +0000 (12:54 +0200)]
cec: never mark vendor commands as unsupported (only some may be unsupported), as well as some others that should never be marked unsupported
Lars Op den Kamp [Thu, 26 Apr 2012 10:49:07 +0000 (12:49 +0200)]
cec: changed the log level of the 'unsupported feature' message to debug
Lars Op den Kamp [Thu, 26 Apr 2012 10:46:58 +0000 (12:46 +0200)]
cec: drop no longer needed parameters for CCECCommandHandler::Transmit()
Lars Op den Kamp [Thu, 26 Apr 2012 10:36:13 +0000 (12:36 +0200)]
cec: signal waiting threads when receiving a feature abort too
Lars Op den Kamp [Thu, 26 Apr 2012 10:35:35 +0000 (12:35 +0200)]
cec: added GetResponseOpcode(cec_opcode opcode) to cec_command
Lars Op den Kamp [Thu, 26 Apr 2012 09:50:13 +0000 (11:50 +0200)]
cec: don't retry in CCECCommandHandler if the command has been marked as unsupported
Lars Op den Kamp [Thu, 26 Apr 2012 09:29:17 +0000 (11:29 +0200)]
cec: fixed - don't request the PA of devices when handling an incoming CEC command, or it'll block things while waiting for a response. if that response never comes, or comes late, then other incoming commands will be timed out before they are handled
Lars Op den Kamp [Wed, 25 Apr 2012 23:15:31 +0000 (01:15 +0200)]
cec: fixed compilation warning on win64
Lars Op den Kamp [Wed, 25 Apr 2012 13:45:29 +0000 (15:45 +0200)]
cec: added the firmware build date to libcec_configuration, so it can be displayed by the client too. added missing strDeviceLanguage setting in CCECProcessor::GetCurrentConfiguration()
Lars Op den Kamp [Wed, 25 Apr 2012 13:27:44 +0000 (15:27 +0200)]
cec: bump libCEC internal version number to 1.6.2. drop dupe libcec server version assignment
Lars Op den Kamp [Wed, 25 Apr 2012 13:21:16 +0000 (15:21 +0200)]
cec: also log the libCEC version in the 'connected to the CEC adapter' log entry, and add the firmware build date to the line if it's available, so all relevant version info is available in 1 log line. log the firmware build date in GMT, not local time
Lars Op den Kamp [Wed, 25 Apr 2012 12:50:38 +0000 (14:50 +0200)]
cec: don't retry MSGCODE_GET_BUILDDATE if it was rejected by the controller, because the same value had a different meaning in older fw builds
Lars Op den Kamp [Wed, 25 Apr 2012 12:15:11 +0000 (14:15 +0200)]
cec: optimisation - strip unneeded virtual keywords from top level implementations
Lars Op den Kamp [Tue, 24 Apr 2012 23:06:40 +0000 (01:06 +0200)]
only request the build date once
Lars Op den Kamp [Tue, 24 Apr 2012 22:52:10 +0000 (00:52 +0200)]
cec: show the build date for firmwares that have this command
Lars Op den Kamp [Tue, 24 Apr 2012 20:30:41 +0000 (22:30 +0200)]
cec: removed no longer used CCECBusScan
Lars Op den Kamp [Tue, 24 Apr 2012 20:29:54 +0000 (22:29 +0200)]
cec: use the vlcommandhandler for the primary device that is handled by libCEC when a panasonic tv is detected, so delayed activate source commands are using the correct handler. bugzid: 723
Lars Op den Kamp [Tue, 24 Apr 2012 20:17:50 +0000 (22:17 +0200)]
cosmetics
Lars Op den Kamp [Tue, 24 Apr 2012 20:15:35 +0000 (22:15 +0200)]
cec: set the power status of device controlled by libCEC to CEC_POWER_STATUS_ON instead of IN_TRANSITION_STANDBY_TO_ON. reset the device status of a device if it was detected as removed. bugzid: 755
Lars Op den Kamp [Tue, 24 Apr 2012 19:50:26 +0000 (21:50 +0200)]
cec: fixed potentially uninitialised values in cec_command
Lars Op den Kamp [Tue, 24 Apr 2012 19:43:08 +0000 (21:43 +0200)]
cec: async writes for CUSBCECAdapterCommunication. less locks and polls, more speed
Lars Op den Kamp [Tue, 24 Apr 2012 16:17:35 +0000 (18:17 +0200)]
cec: delay the 'active source' command for panasonic, until the vendor command that reports that the TV is powered on has been received. bugzid: 723
Mark Kendall [Tue, 24 Apr 2012 15:17:27 +0000 (16:17 +0100)]
Only respond to Give Physical Address with Report Physical Address.
bugzid: 592
This fixes several reports of the TV improperly switching to the libcec
device after it has previously switched to another source. Fix confirmed
with Panasonic and also reported to be an issue with Samsung and
Philips.
The previous extra processing (SetActiveSource and ImageViewOn) was put
in place for Samsung and may need revisiting.
Mark Kendall [Tue, 24 Apr 2012 09:35:12 +0000 (10:35 +0100)]
LibCecSharp: Update for 1.6.2
bugzid: 699 bugzid: 660
Lars Op den Kamp [Tue, 24 Apr 2012 09:04:29 +0000 (11:04 +0200)]
cec: added the new menu state changed callback to LibCecSharp. free the alert GC callback when cleaning up
Lars Op den Kamp [Tue, 24 Apr 2012 08:47:30 +0000 (10:47 +0200)]
cec: added v1.6.2 enum values to LibCecSharp
Lars Op den Kamp [Mon, 23 Apr 2012 15:26:25 +0000 (17:26 +0200)]
cec: added some more logging about what was received exactly when requesting settings from the eeprom
Lars Op den Kamp [Mon, 23 Apr 2012 15:01:27 +0000 (17:01 +0200)]
cec: log the previous value when changing a setting in the eeprom
Lars Op den Kamp [Mon, 23 Apr 2012 14:54:32 +0000 (16:54 +0200)]
cec: check whether callback methods are set to a valid ptr
Lars Op den Kamp [Mon, 23 Apr 2012 14:46:08 +0000 (16:46 +0200)]
cec: use client version 1.6.2 for cec-client
Lars Op den Kamp [Mon, 23 Apr 2012 14:42:50 +0000 (16:42 +0200)]
cec: fixed - number of retries for polls
Lars Op den Kamp [Mon, 23 Apr 2012 13:29:51 +0000 (15:29 +0200)]
win32: fix build in paths with spaces. bugzid: 730
Lars Op den Kamp [Mon, 23 Apr 2012 12:55:39 +0000 (14:55 +0200)]
cec: updated documentation for CBCecMenuStateChanged because we can't suppress displaying the menu on the TV
Lars Op den Kamp [Mon, 23 Apr 2012 12:48:30 +0000 (14:48 +0200)]
cec: log the response message when receiving a response in CCECAdapterMessageQueueEntry::MessageReceivedResponse()
Lars Op den Kamp [Mon, 23 Apr 2012 12:14:37 +0000 (14:14 +0200)]
cec: fixed compiler warning on non-windows
Lars Op den Kamp [Mon, 23 Apr 2012 12:02:58 +0000 (14:02 +0200)]
cec: fixed - the wrong setting was being read when powering on devices. added debug logging for wakeup/standby/activate source
Lars Op den Kamp [Mon, 23 Apr 2012 09:34:33 +0000 (11:34 +0200)]
cec: close the connection when a comm error was detected, and notify the client via an alert
Lars Op den Kamp [Mon, 23 Apr 2012 09:19:58 +0000 (11:19 +0200)]
cec: added static CLibCEC::Alert() method and CEC_ALERT_CONNECTION_LOST enum value
Lars Op den Kamp [Mon, 23 Apr 2012 09:18:45 +0000 (11:18 +0200)]
cosmetics
Lars Op den Kamp [Mon, 23 Apr 2012 09:18:34 +0000 (11:18 +0200)]
posix: don't segfault when calling ThreadsWait() without a valid thread
Lars Op den Kamp [Sat, 21 Apr 2012 11:26:50 +0000 (13:26 +0200)]
win32: fixed "unreferenced local variable" warning
Lars Op den Kamp [Fri, 20 Apr 2012 14:06:22 +0000 (16:06 +0200)]
lib/platform: fixed memleak
Lars Op den Kamp [Fri, 20 Apr 2012 14:01:18 +0000 (16:01 +0200)]
cec: fixed leak in CCECAdapterMessageQueue::Write
Mark Kendall [Fri, 20 Apr 2012 14:57:14 +0000 (15:57 +0100)]
Don't send commands if we know them to be unsupported. bugzid: 725
The bulk of the change is to move the retry handling into CECProcessor
so that we have access to the unsupported features.
Lars Op den Kamp [Fri, 20 Apr 2012 12:02:59 +0000 (14:02 +0200)]
cec: changed the name of the new menu state callback to match the formatting of the other callbacks. bugzid: 724
Lars Op den Kamp [Fri, 20 Apr 2012 11:36:07 +0000 (13:36 +0200)]
cosmetics
Lars Op den Kamp [Fri, 20 Apr 2012 11:25:48 +0000 (13:25 +0200)]
cec: added a callback to handle menu state changes. if the callback method returns 1, then the change is processed by the CCECBusDevice too. if 0, then the CCECBusDevice will always have menu state 'activated', so keypresses are routed. bugzid: 724
Mark Kendall [Fri, 20 Apr 2012 10:56:06 +0000 (11:56 +0100)]
Add a default menu language to libcec_configuration. bugzid: 699
and set this language for devices controlled by libcec.
Lars Op den Kamp [Fri, 20 Apr 2012 10:26:29 +0000 (12:26 +0200)]
added 'make docs' target, that updates the doxygen documentation
Lars Op den Kamp [Fri, 20 Apr 2012 09:53:52 +0000 (11:53 +0200)]
cec: cec_menu_language is 4 chars wide on the interface, but should have been 3. changing it now will break backwards compat, so added to the @bug list
Mark Kendall [Fri, 20 Apr 2012 07:42:50 +0000 (08:42 +0100)]
Windows Installer: Add VS 2010 Redistributable download.
Redistributables are hosted on the pacakages pages. The installer will attempt to determine if the redistributable is installed already and hides the option if they are found. If not found, the option is selected by default (there is no harm in re-installing them).
bugzid: 563
Mark Kendall [Thu, 19 Apr 2012 18:32:39 +0000 (19:32 +0100)]
create-installer.bat: Don't try and use Visual C++ 2008.
It doesn't work from the command line. We may additionally need to
remove references to Visual C++ 2010.
bugzid: 563
Mark Kendall [Thu, 19 Apr 2012 18:29:11 +0000 (19:29 +0100)]
README: Make it clear that Visual Studio is required for command line
compilation of the installer. bugzid: 563
Lars Op den Kamp [Thu, 19 Apr 2012 15:04:36 +0000 (17:04 +0200)]
added some missing documentation in cectypes.h
Lars Op den Kamp [Thu, 19 Apr 2012 14:51:15 +0000 (16:51 +0200)]
updated Doxyfile to include __cplusplus in the preprocessor args and optimise for c++ output
Lars Op den Kamp [Thu, 19 Apr 2012 12:42:12 +0000 (14:42 +0200)]
added Doxyfile to generate Doxygen documentation. to update your copy of the documentation, run 'doxygen' in the top level source directory, and it will generate the docs in ./documentation
added some missing documentation and fixed some wrong tags
Lars Op den Kamp [Thu, 19 Apr 2012 10:46:18 +0000 (12:46 +0200)]
win32: only call 'exit' when building in teamcity
Lars Op den Kamp [Thu, 19 Apr 2012 10:42:33 +0000 (12:42 +0200)]
README updated for windows
Lars Op den Kamp [Wed, 18 Apr 2012 09:39:33 +0000 (11:39 +0200)]
cec: updated changelog and bumped version numbers for 1.6.1
Lars Op den Kamp [Wed, 18 Apr 2012 08:28:43 +0000 (10:28 +0200)]
cec: fixed typo in CUSBCECAdapterCommands::RequestSettings() that prevented the settings from being read. the settings were still written, but never read when bGetSettingsFromROM = 1
Lars Op den Kamp [Tue, 17 Apr 2012 20:51:01 +0000 (22:51 +0200)]
cec: fixed typo in the log message when the physical address setting was unchanged
Lars Op den Kamp [Mon, 16 Apr 2012 16:06:48 +0000 (18:06 +0200)]
cec: updated changelog and bumped version numbers for 1.6.0
Lars Op den Kamp [Mon, 16 Apr 2012 14:29:43 +0000 (16:29 +0200)]
cec: validate the input in CCECProcessor::IsActiveSource(). fixes potential crash when the active source isn't known. bugzid: 671
Lars Op den Kamp [Mon, 16 Apr 2012 14:05:13 +0000 (16:05 +0200)]
cec-config-gui: persist settings both in the eeprom and in the settings xml file
Lars Op den Kamp [Mon, 16 Apr 2012 11:53:40 +0000 (13:53 +0200)]
cec: persist settings directly when they're changed, only persist settings that actually changed, only instruct the device to persist the settings in eeprom when something changed, and don't persist settings on exit. bugzid: 715
Lars Op den Kamp [Mon, 16 Apr 2012 00:26:21 +0000 (02:26 +0200)]
cec: only delete m_port in CUSBCECAdapterCommunication's destructor. fixes potential 'port is null' error messages when closing the connection
Lars Op den Kamp [Sun, 15 Apr 2012 19:59:50 +0000 (21:59 +0200)]
Merge branch 'adaptercomm'. bugzid: 654
Lars Op den Kamp [Sun, 15 Apr 2012 19:50:12 +0000 (21:50 +0200)]
win32: sync vs2010 projects and wrong param when starting the bootloader
Lars Op den Kamp [Sun, 15 Apr 2012 19:19:49 +0000 (21:19 +0200)]
cec: fixed - transmissions can come in while waiting for a response to a command
Lars Op den Kamp [Sun, 15 Apr 2012 12:59:26 +0000 (14:59 +0200)]
cec: don't wait 1 second when clearing input when there is no input
Lars Op den Kamp [Thu, 12 Apr 2012 11:11:34 +0000 (13:11 +0200)]
cec: refactor USB adapter communication. less locks, shorter locks, added documentation, lots of clean ups and no more incoming messages that are skipped
Mark Kendall [Thu, 12 Apr 2012 14:13:48 +0000 (15:13 +0100)]
Add bShutdownOnStandby to libcec_configuration. bugzid: 660
This setting tells the client to shutdown when the TV switches off and
is complimentary to bPowerOffOnStandby, which tells the PC to suspend.
They are kept separate to maintain backwards compatability.
Lars Op den Kamp [Thu, 12 Apr 2012 08:06:56 +0000 (10:06 +0200)]
cec: don't read without a timeout in CUSBCECAdapterCommunication::Process()
Lars Op den Kamp [Wed, 11 Apr 2012 15:40:49 +0000 (17:40 +0200)]
cec: don't call ReadFromDevice() separately in CUSBCECAdapterCommunication. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 15:04:16 +0000 (17:04 +0200)]
cec: moved the timed ping to a separate thread. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 14:39:53 +0000 (16:39 +0200)]
cec: removed m_outBuffer in CUSBCECAdapterCommunication. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 14:35:02 +0000 (16:35 +0200)]
cec: extra guard so no commands are transmitted without a valid initiator. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 14:29:15 +0000 (16:29 +0200)]
cec: fixed possible crash when trying to request a vendor id of a device when the address of libCEC isn't known yet. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 08:59:04 +0000 (10:59 +0200)]
win32: serial socket timeouts. bugzid: 654
Mark Kendall [Tue, 10 Apr 2012 09:16:24 +0000 (10:16 +0100)]
Respond to Get Menu Language. bugzid: 547
In the event that the menu language is undefined in libcec (currently
the default), the response will be a feature abort.
Lars Op den Kamp [Sat, 7 Apr 2012 13:11:40 +0000 (15:11 +0200)]
cec: added buttoncode for 'channels list' on samsung (0x96)
Mark Kendall [Fri, 6 Apr 2012 07:57:30 +0000 (08:57 +0100)]
Fix LibCecSharp build. bugzid: 462
Lars Op den Kamp [Thu, 5 Apr 2012 18:03:48 +0000 (20:03 +0200)]
win32: added an exit code in the build script
Mark Kendall [Thu, 5 Apr 2012 13:39:27 +0000 (14:39 +0100)]
Add an Alert callback. bigzid: 462
This will be used to signal the client application to signal the user
about critical issues.
Also adds new libcec_parameter and libcec_parameter_types types for
future expansion.
Lars Op den Kamp [Tue, 3 Apr 2012 12:33:21 +0000 (14:33 +0200)]
cec: don't send an active source command when the physical address couldn't be set, or it might confuse other CEC devices