deb_libcec.git
12 years agocec: added static CLibCEC::Alert() method and CEC_ALERT_CONNECTION_LOST enum value
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

12 years agocosmetics
Lars Op den Kamp [Mon, 23 Apr 2012 09:18:45 +0000 (11:18 +0200)] 
cosmetics

12 years agoposix: don't segfault when calling ThreadsWait() without a valid thread
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

12 years agowin32: fixed "unreferenced local variable" warning
Lars Op den Kamp [Sat, 21 Apr 2012 11:26:50 +0000 (13:26 +0200)] 
win32: fixed "unreferenced local variable" warning

12 years agolib/platform: fixed memleak
Lars Op den Kamp [Fri, 20 Apr 2012 14:06:22 +0000 (16:06 +0200)] 
lib/platform: fixed memleak

12 years agocec: fixed leak in CCECAdapterMessageQueue::Write
Lars Op den Kamp [Fri, 20 Apr 2012 14:01:18 +0000 (16:01 +0200)] 
cec: fixed leak in CCECAdapterMessageQueue::Write

12 years agoDon't send commands if we know them to be unsupported. bugzid: 725
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.

12 years agocec: changed the name of the new menu state callback to match the formatting of the...
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

12 years agocosmetics
Lars Op den Kamp [Fri, 20 Apr 2012 11:36:07 +0000 (13:36 +0200)] 
cosmetics

12 years agocec: added a callback to handle menu state changes. if the callback method returns...
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

12 years agoAdd a default menu language to libcec_configuration. bugzid: 699
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.

12 years agoadded 'make docs' target, that updates the doxygen documentation
Lars Op den Kamp [Fri, 20 Apr 2012 10:26:29 +0000 (12:26 +0200)] 
added 'make docs' target, that updates the doxygen documentation

12 years agocec: cec_menu_language is 4 chars wide on the interface, but should have been 3....
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

12 years agoWindows Installer: Add VS 2010 Redistributable download.
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

12 years agocreate-installer.bat: Don't try and use Visual C++ 2008.
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

12 years agoREADME: Make it clear that Visual Studio is required for command line
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

12 years agoadded some missing documentation in cectypes.h
Lars Op den Kamp [Thu, 19 Apr 2012 15:04:36 +0000 (17:04 +0200)] 
added some missing documentation in cectypes.h

12 years agoupdated Doxyfile to include __cplusplus in the preprocessor args and optimise for...
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

12 years agoadded Doxyfile to generate Doxygen documentation. to update your copy of the document...
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

12 years agowin32: only call 'exit' when building in teamcity
Lars Op den Kamp [Thu, 19 Apr 2012 10:46:18 +0000 (12:46 +0200)] 
win32: only call 'exit' when building in teamcity

12 years agoREADME updated for windows
Lars Op den Kamp [Thu, 19 Apr 2012 10:42:33 +0000 (12:42 +0200)] 
README updated for windows

12 years agocec: updated changelog and bumped version numbers for 1.6.1
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

12 years agocec: fixed typo in CUSBCECAdapterCommands::RequestSettings() that prevented the setti...
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

12 years agocec: fixed typo in the log message when the physical address setting was unchanged
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

12 years agocec: updated changelog and bumped version numbers for 1.6.0
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

12 years agocec: validate the input in CCECProcessor::IsActiveSource(). fixes potential crash...
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

12 years agocec-config-gui: persist settings both in the eeprom and in the settings xml file
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

12 years agocec: persist settings directly when they're changed, only persist settings that actua...
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

12 years agocec: only delete m_port in CUSBCECAdapterCommunication's destructor. fixes potential...
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

12 years agoMerge branch 'adaptercomm'. bugzid: 654
Lars Op den Kamp [Sun, 15 Apr 2012 19:59:50 +0000 (21:59 +0200)] 
Merge branch 'adaptercomm'. bugzid: 654

12 years agowin32: sync vs2010 projects and wrong param when starting the bootloader
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

12 years agocec: fixed - transmissions can come in while waiting for a response to a command
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

12 years agocec: don't wait 1 second when clearing input when there is no input
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

12 years agocec: refactor USB adapter communication. less locks, shorter locks, added documentati...
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

12 years agoAdd bShutdownOnStandby to libcec_configuration. bugzid: 660
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.

12 years agocec: don't read without a timeout in CUSBCECAdapterCommunication::Process()
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()

12 years agocec: don't call ReadFromDevice() separately in CUSBCECAdapterCommunication. bugzid...
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

12 years agocec: moved the timed ping to a separate thread. 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

12 years agocec: removed m_outBuffer in CUSBCECAdapterCommunication. 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

12 years agocec: extra guard so no commands are transmitted without a valid initiator. bugzid...
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

12 years agocec: fixed possible crash when trying to request a vendor id of a device when the...
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

12 years agowin32: serial socket timeouts. bugzid: 654
Lars Op den Kamp [Wed, 11 Apr 2012 08:59:04 +0000 (10:59 +0200)] 
win32: serial socket timeouts. bugzid: 654

12 years agoRespond to Get Menu Language. bugzid: 547
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.

12 years agocec: added buttoncode for 'channels list' on samsung (0x96)
Lars Op den Kamp [Sat, 7 Apr 2012 13:11:40 +0000 (15:11 +0200)] 
cec: added buttoncode for 'channels list' on samsung (0x96)

12 years agoFix LibCecSharp build. bugzid: 462
Mark Kendall [Fri, 6 Apr 2012 07:57:30 +0000 (08:57 +0100)] 
Fix LibCecSharp build. bugzid: 462

12 years agowin32: added an exit code in the build script
Lars Op den Kamp [Thu, 5 Apr 2012 18:03:48 +0000 (20:03 +0200)] 
win32: added an exit code in the build script

12 years agoAdd an Alert callback. bigzid: 462
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.

12 years agocec: don't send an active source command when the physical address couldn't be set...
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

12 years agoplatform/win32: moved the static variables in os-threads from the header to a separat...
Lars Op den Kamp [Tue, 3 Apr 2012 11:50:32 +0000 (13:50 +0200)] 
platform/win32: moved the static variables in os-threads from the header to a separate cpp file, or it could lead to problems when included multiple times

12 years agoCEC Configuration: Only update the physical address when it has actually
Mark Kendall [Mon, 2 Apr 2012 16:12:51 +0000 (17:12 +0100)] 
CEC Configuration: Only update the physical address when it has actually
changed.

bugzid: 672

12 years agocec: added a new setting to control whether to put the TV in standby when the player...
Lars Op den Kamp [Mon, 2 Apr 2012 14:31:30 +0000 (16:31 +0200)] 
cec: added a new setting to control whether to put the TV in standby when the player is put in standby. added some missing bits (version numbers, config) to LibCecSharp. bugzid: 558

12 years agowin32: updated support/p8-usbcec-driver-installer.exe. bugzid: 503
Lars Op den Kamp [Fri, 30 Mar 2012 11:17:37 +0000 (13:17 +0200)] 
win32: updated support/p8-usbcec-driver-installer.exe. bugzid: 503

12 years agowin32: fixed missing 'cd' in create-driver-installer.cmd
Lars Op den Kamp [Fri, 30 Mar 2012 11:14:33 +0000 (13:14 +0200)] 
win32: fixed missing 'cd' in create-driver-installer.cmd

12 years agowin32: fixed usbser.sys copying in the driver .INF. bugzid: 503
Lars Op den Kamp [Fri, 30 Mar 2012 11:12:40 +0000 (13:12 +0200)] 
win32: fixed usbser.sys copying in the driver .INF. bugzid: 503

12 years agowin32: don't try to rename the installer file when it's not being built on the builds...
Lars Op den Kamp [Fri, 30 Mar 2012 11:03:02 +0000 (13:03 +0200)] 
win32: don't try to rename the installer file when it's not being built on the buildserver

12 years agofixed: use the right command for the filesystem
Martin Ellis [Thu, 29 Mar 2012 20:13:49 +0000 (21:13 +0100)] 
fixed: use the right command for the filesystem

12 years agoadded: version number to package filename
Martin Ellis [Thu, 29 Mar 2012 20:09:38 +0000 (21:09 +0100)] 
added: version number to package filename

12 years agoincluded a prebuilt driver installer in the support tree so teamcity will build witho...
Lars Op den Kamp [Thu, 29 Mar 2012 18:50:56 +0000 (20:50 +0200)] 
included a prebuilt driver installer in the support tree so teamcity will build without checking for the windows ddk

12 years agodon't check for the windows ddk when a prebuilt driver installer is present
Lars Op den Kamp [Thu, 29 Mar 2012 18:44:20 +0000 (20:44 +0200)] 
don't check for the windows ddk when a prebuilt driver installer is present

12 years agochanged: from .cmd to .bat
Martin Ellis [Thu, 29 Mar 2012 18:27:50 +0000 (19:27 +0100)] 
changed: from .cmd to .bat

12 years agocec: sync C and .NET interfaces with C++
Lars Op den Kamp [Thu, 29 Mar 2012 11:08:26 +0000 (13:08 +0200)] 
cec: sync C and .NET interfaces with C++

12 years agoRevert "win32: implemented timeouts in serial socket reads"
Lars Op den Kamp [Thu, 29 Mar 2012 10:36:23 +0000 (12:36 +0200)] 
Revert "win32: implemented timeouts in serial socket reads"

This reverts commit 5347b94bbd7455453754fd79b6aaa64aa368ce59.

12 years agocec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't...
Lars Op den Kamp [Thu, 29 Mar 2012 10:33:12 +0000 (12:33 +0200)] 
cec: sleep 5 ms in CUSBCECAdapterCommunication::Process() or other threads won't be able to get a lock
This reverts commit 8f611d9d36fc638b357f3eb687e32013d820ec6b.

12 years agocec: use a 5ms read timeout in CUSBCECAdapterCommunication
Lars Op den Kamp [Thu, 29 Mar 2012 09:54:06 +0000 (11:54 +0200)] 
cec: use a 5ms read timeout in CUSBCECAdapterCommunication

12 years agowin32: implemented timeouts in serial socket reads
Lars Op den Kamp [Thu, 29 Mar 2012 09:53:41 +0000 (11:53 +0200)] 
win32: implemented timeouts in serial socket reads

12 years agocec: fixed - atoi returns an int, not an int8_t
Lars Op den Kamp [Thu, 29 Mar 2012 09:19:57 +0000 (11:19 +0200)] 
cec: fixed - atoi returns an int, not an int8_t

12 years agoFix a typo in cec-config.
Mark Kendall [Thu, 29 Mar 2012 07:16:42 +0000 (08:16 +0100)] 
Fix a typo in cec-config.

12 years agoAdd some bounds checking to the HDMI port number. bugzid: 508
Mark Kendall [Thu, 29 Mar 2012 07:15:44 +0000 (08:15 +0100)] 
Add some bounds checking to the HDMI port number. bugzid: 508

12 years agocec: removed no longer needed sleep in CUSBCECAdapterCommunication::Process()
Lars Op den Kamp [Wed, 28 Mar 2012 19:05:55 +0000 (21:05 +0200)] 
cec: removed no longer needed sleep in CUSBCECAdapterCommunication::Process()

12 years agocec: always signal in CCECInputBuffer::Push when there is data
Lars Op den Kamp [Wed, 28 Mar 2012 19:05:28 +0000 (21:05 +0200)] 
cec: always signal in CCECInputBuffer::Push when there is data

12 years agocec: removed the message processor thread in CUSBCECAdapterCommunication - not needed...
Lars Op den Kamp [Wed, 28 Mar 2012 18:51:20 +0000 (20:51 +0200)] 
cec: removed the message processor thread in CUSBCECAdapterCommunication - not needed anymore after the last commits. speeds up command processing a bit too

12 years agocec: give priority to messages from the TV. removed the global lock in CCECProcessor...
Lars Op den Kamp [Wed, 28 Mar 2012 18:46:09 +0000 (20:46 +0200)] 
cec: give priority to messages from the TV. removed the global lock in CCECProcessor when sending. this is no longer needed. bugzid: 238

12 years agocec: request the vendor id of a device if needed when the device status is changed...
Lars Op den Kamp [Tue, 27 Mar 2012 13:28:22 +0000 (15:28 +0200)] 
cec: request the vendor id of a device if needed when the device status is changed into 'present'. bugzid: 361

12 years agocec: added power on command for Samsung AVR devices. bugzid: 361
Lars Op den Kamp [Tue, 27 Mar 2012 13:26:11 +0000 (15:26 +0200)] 
cec: added power on command for Samsung AVR devices. bugzid: 361

12 years agocec: bUseTVMenuLanguage from libcec_configuration wasn't copied in SetConfiguration...
Lars Op den Kamp [Tue, 27 Mar 2012 13:02:55 +0000 (15:02 +0200)] 
cec: bUseTVMenuLanguage from libcec_configuration wasn't copied in SetConfiguration(), so this setting was reset to the default value (enabled) every time. bugzid: 617

12 years agoMerge branch 'master' of github.com:Pulse-Eight/libcec
Lars Op den Kamp [Tue, 27 Mar 2012 12:15:23 +0000 (14:15 +0200)] 
Merge branch 'master' of github.com:Pulse-Eight/libcec

12 years agocec: return false from CUSBCECAdapterCommunication::Open() when no thread could be...
Lars Op den Kamp [Mon, 26 Mar 2012 14:25:00 +0000 (16:25 +0200)] 
cec: return false from CUSBCECAdapterCommunication::Open() when no thread could be created

12 years agocec: check whether the destination is valid before setting anything in m_bWaitingForA...
Lars Op den Kamp [Mon, 26 Mar 2012 14:18:43 +0000 (16:18 +0200)] 
cec: check whether the destination is valid before setting anything in m_bWaitingForAck. fixes heap corruption and crash on exit. bugzid: 479

12 years agocec: fixed compiler warning in cec-client
Lars Op den Kamp [Mon, 26 Mar 2012 00:17:10 +0000 (02:17 +0200)] 
cec: fixed compiler warning in cec-client

12 years agocec: fixed - CUSBCECAdapterCommunication::SendCommand() accessed a message that was...
Lars Op den Kamp [Fri, 23 Mar 2012 16:41:19 +0000 (17:41 +0100)] 
cec: fixed - CUSBCECAdapterCommunication::SendCommand() accessed a message that was already deleted

12 years agocec: fix crash on exit after GetDeviceInformation()
Lars Op den Kamp [Fri, 23 Mar 2012 16:01:36 +0000 (17:01 +0100)] 
cec: fix crash on exit after GetDeviceInformation()

12 years agocec: added the firmware version to cec-client's -l / --list-devices command. bugzid...
Lars Op den Kamp [Fri, 23 Mar 2012 10:52:10 +0000 (11:52 +0100)] 
cec: added the firmware version to cec-client's -l / --list-devices command. bugzid: 631

12 years agocec: added the firmware version to libcec_configuration (read-only). bumped server...
Lars Op den Kamp [Fri, 23 Mar 2012 09:57:37 +0000 (10:57 +0100)] 
cec: added the firmware version to libcec_configuration (read-only). bumped server version to 1.6.0. fixed 'unknown server version' message on startup. bugzid: 631

12 years agocec: always wait for thread exit in CThread's desctructor
Lars Op den Kamp [Fri, 23 Mar 2012 09:38:20 +0000 (10:38 +0100)] 
cec: always wait for thread exit in CThread's desctructor

12 years agocec: call Close() when the connection could not be (fully) opened in CUSBCECAdapterCo...
Lars Op den Kamp [Thu, 22 Mar 2012 19:07:24 +0000 (20:07 +0100)] 
cec: call Close() when the connection could not be (fully) opened in CUSBCECAdapterCommunication::Open()

12 years agocec: don't return from the Close() method in CUSBCECAdapterCommunication, because...
Lars Op den Kamp [Thu, 22 Mar 2012 13:55:25 +0000 (14:55 +0100)] 
cec: don't return from the Close() method in CUSBCECAdapterCommunication, because then it libCEC will try to delete it while it's still being used.

12 years agocec: reset m_socket to INVALID_SERIAL_SOCKET_VALUE after closing the connection
Lars Op den Kamp [Thu, 22 Mar 2012 13:03:33 +0000 (14:03 +0100)] 
cec: reset m_socket to INVALID_SERIAL_SOCKET_VALUE after closing the connection

12 years agocec: added guards in CSerialPort
Lars Op den Kamp [Thu, 22 Mar 2012 12:03:08 +0000 (13:03 +0100)] 
cec: added guards in CSerialPort

12 years agocec: fixed - the destructor of CSerialSocket didn't call Close()
Lars Op den Kamp [Thu, 22 Mar 2012 11:15:53 +0000 (12:15 +0100)] 
cec: fixed - the destructor of CSerialSocket didn't call Close()

12 years agocec: update m_iLineTimeout correctly in CUSBCECAdapterCommunication::SetLineTimeout()
Lars Op den Kamp [Thu, 22 Mar 2012 10:44:04 +0000 (11:44 +0100)] 
cec: update m_iLineTimeout correctly in CUSBCECAdapterCommunication::SetLineTimeout()

12 years agocec: fixed - frequency wasn't checked in GetTimeMs(), leading to incorrect wait times...
Lars Op den Kamp [Wed, 21 Mar 2012 15:17:30 +0000 (16:17 +0100)] 
cec: fixed - frequency wasn't checked in GetTimeMs(), leading to incorrect wait times on some windows systems

12 years agocec: Correct handling CEC_USER_CONTROL_CODE_POWER
Mark Kendall [Wed, 21 Mar 2012 11:36:41 +0000 (11:36 +0000)] 
cec: Correct handling CEC_USER_CONTROL_CODE_POWER

This ensures that the power code always operates as a toggle, depending
on the current state, and that SetCurrentButton is always called for a
valid user control code.

Bugzid: 570

12 years agocec: fixed possible crash when in CLibCEC::IsLibCECActiveSource() when libCEC doesn...
Lars Op den Kamp [Tue, 20 Mar 2012 16:08:28 +0000 (17:08 +0100)] 
cec: fixed possible crash when in CLibCEC::IsLibCECActiveSource() when libCEC doesn't know which device is the active source. bugzid: 479

12 years agocec: ensure that the vendor ID is sent before trying to activate any SL device. bugzi...
Lars Op den Kamp [Mon, 19 Mar 2012 15:30:12 +0000 (16:30 +0100)] 
cec: ensure that the vendor ID is sent before trying to activate any SL device. bugzid: 574

12 years agocec: mark the correct device as active source after a stream path change. if the...
Lars Op den Kamp [Mon, 19 Mar 2012 14:21:29 +0000 (15:21 +0100)] 
cec: mark the correct device as active source after a stream path change. if the new address is not found, but the old address is, then mark the old address as inactive. fixes TV switching back to the old active source when it scans for devices. bugzid: 592

12 years agocec: don't log polls and don't cut off messages that start with the ack bit set,...
Lars Op den Kamp [Mon, 19 Mar 2012 14:07:21 +0000 (15:07 +0100)] 
cec: don't log polls and don't cut off messages that start with the ack bit set, but that are not a response (LG). bugzid: 591

12 years agocec: fix ACK handling after d297cbd4fc30bc93836532a9a31027b7e64150b3. bugzid: 591
Lars Op den Kamp [Mon, 19 Mar 2012 13:36:52 +0000 (14:36 +0100)] 
cec: fix ACK handling after d297cbd4fc30bc93836532a9a31027b7e64150b3. bugzid: 591

12 years agocec: wait for MSGEND when data was received when opening the connection. bugzid: 536
Lars Op den Kamp [Mon, 19 Mar 2012 12:05:06 +0000 (13:05 +0100)] 
cec: wait for MSGEND when data was received when opening the connection. bugzid: 536

12 years agocec: poll doesn't have an opcode. bugzid: 591
Lars Op den Kamp [Mon, 19 Mar 2012 11:46:32 +0000 (12:46 +0100)] 
cec: poll doesn't have an opcode. bugzid: 591

12 years agocec: fix gcc 4.7 compilation
Lars Op den Kamp [Mon, 19 Mar 2012 09:09:52 +0000 (10:09 +0100)] 
cec: fix gcc 4.7 compilation