Lars Op den Kamp [Tue, 26 Jun 2012 23:45:24 +0000 (01:45 +0200)]
cec: fixed - copy the class member values of the old handler when creating a new command handler, or a delayed activate source will get lost when the handler is switched
Lars Op den Kamp [Tue, 26 Jun 2012 23:43:58 +0000 (01:43 +0200)]
cec: replace the handler directly after getting the vendor id of a device when registering a client
Lars Op den Kamp [Tue, 26 Jun 2012 19:48:48 +0000 (21:48 +0200)]
fixed: XBMC Eden for Windows has been built against 1.2.0 and Ubuntu against 1.5.2. We accidently broke the abi between these versions, and this will ensure the upgrade will still work for new users that just install a libCEC upgrade. users that are already using our repository will get a clean build of XBMC, built against the latest libCEC, so this won't cause any problems for them
Lars Op den Kamp [Tue, 26 Jun 2012 16:37:19 +0000 (18:37 +0200)]
updated changelog
Lars Op den Kamp [Tue, 26 Jun 2012 11:28:44 +0000 (13:28 +0200)]
cec: abi fixes (binary compat with v1.2)
Lars Op den Kamp [Tue, 26 Jun 2012 09:12:25 +0000 (11:12 +0200)]
cec: fixed - old client versions didn't always provide a valid physical address in the constructor
Lars Op den Kamp [Tue, 26 Jun 2012 08:21:22 +0000 (10:21 +0200)]
cec: corrected Vizio's vendor id
Lars Op den Kamp [Mon, 25 Jun 2012 23:18:03 +0000 (01:18 +0200)]
cec: added vendor ids for Akai, AOC, Benq, Daewoo, Grundig, Medion, Sharp and Vizio
Lars Op den Kamp [Mon, 25 Jun 2012 14:48:18 +0000 (16:48 +0200)]
cec: mark the tv as powered up for panasonic once it sends the audiomode request
Lars Op den Kamp [Mon, 25 Jun 2012 11:02:21 +0000 (13:02 +0200)]
updated changelog
Lars Op den Kamp [Mon, 25 Jun 2012 10:05:52 +0000 (12:05 +0200)]
cec: don't forward the standby opcode more than once every 10 seconds
Lars Op den Kamp [Mon, 25 Jun 2012 09:50:42 +0000 (11:50 +0200)]
cec: fixed - commands that were forwarded to clients used the source address of the message instead of destination address when searching for clients. changed so all directly addressed and broadcast command are forwarded to the correct client
Lars Op den Kamp [Mon, 25 Jun 2012 09:18:58 +0000 (11:18 +0200)]
fixed unused var warning
Lars Op den Kamp [Sun, 24 Jun 2012 07:58:06 +0000 (09:58 +0200)]
updated changelog
Lars Op den Kamp [Sat, 23 Jun 2012 14:23:47 +0000 (16:23 +0200)]
LibCecSharp: better handling of callbacks
Lars Op den Kamp [Sat, 23 Jun 2012 08:12:38 +0000 (10:12 +0200)]
added a callback for clients that is called when a source is (de)activated, so the client can respond to this action, e.g. by starting a media player application
Lars Op den Kamp [Fri, 22 Jun 2012 17:51:15 +0000 (19:51 +0200)]
cec: fixed - windows could get stuck in a loop in case there an error occured while reading registry entries
Lars Op den Kamp [Fri, 22 Jun 2012 10:42:15 +0000 (12:42 +0200)]
cec: fixed missing param
Lars Op den Kamp [Fri, 22 Jun 2012 10:28:34 +0000 (12:28 +0200)]
cec: fixed - set the physical address of each device controlled by a CCECClient if it's valid
Lars Op den Kamp [Fri, 22 Jun 2012 10:10:41 +0000 (12:10 +0200)]
LibCecSharp: bump client versions to 1.7.1
Lars Op den Kamp [Fri, 22 Jun 2012 10:10:13 +0000 (12:10 +0200)]
LibCecSharp: update the local configuration after connecting
Lars Op den Kamp [Fri, 22 Jun 2012 10:09:29 +0000 (12:09 +0200)]
LibCecSharp: added missing client and server version 1.7.1
Lars Op den Kamp [Thu, 21 Jun 2012 15:35:38 +0000 (17:35 +0200)]
pin libcec to the same version as libcec1
Lars Op den Kamp [Thu, 21 Jun 2012 14:34:38 +0000 (16:34 +0200)]
fixed compiler warning in CCECCommandHandler
Lars Op den Kamp [Thu, 21 Jun 2012 14:07:28 +0000 (16:07 +0200)]
updated changelog for 1.7.1 and bumped remaining version numbers
Lars Op den Kamp [Thu, 21 Jun 2012 13:39:08 +0000 (15:39 +0200)]
Makefile cleanups. don't link cec-client and cec-config against libudev and liblockdev
Lars Op den Kamp [Thu, 21 Jun 2012 10:28:03 +0000 (12:28 +0200)]
cec: removed dupe code around delayed activate source commands. check for delayed active source commands every 5 seconds instead of 15 seconds. fixed delayed source switch for panasonic
Lars Op den Kamp [Thu, 21 Jun 2012 09:25:58 +0000 (11:25 +0200)]
cec: reset m_bPowerUpEventReceived in CVLCommandHandler when the device lets us know it went into standby mode. fixes possibly failed active source switches after it succeeded once
Lars Op den Kamp [Thu, 21 Jun 2012 09:22:27 +0000 (11:22 +0200)]
cec: set the power status of a device to 'powered on' after it sends a stream path change. can save an unneeded power state update request
Lars Op den Kamp [Thu, 21 Jun 2012 09:16:32 +0000 (11:16 +0200)]
cec: get the cached power status of a device in CVLCommandHandler::PowerUpEventReceived() instead of the current one, or it might send a CEC command to a device which is expecting a reply to another command
Lars Op den Kamp [Thu, 21 Jun 2012 08:58:10 +0000 (10:58 +0200)]
cec: don't send active source commands when the physical address is invalid or unknown
Lars Op den Kamp [Wed, 20 Jun 2012 13:40:23 +0000 (15:40 +0200)]
cec: bump interface version numbers to 1.7.1
Lars Op den Kamp [Wed, 20 Jun 2012 13:33:36 +0000 (15:33 +0200)]
cec: added a vendor command for panasonic that will enable routing of some more buttons on the remote (guide, text, ...)
Lars Op den Kamp [Wed, 20 Jun 2012 13:32:46 +0000 (15:32 +0200)]
cec: reply with abort reason 'invalid operand' to vendor commands that we don't understand
Lars Op den Kamp [Wed, 20 Jun 2012 13:31:46 +0000 (15:31 +0200)]
cec: added cec_command::PushArray()
Lars Op den Kamp [Wed, 20 Jun 2012 09:38:27 +0000 (11:38 +0200)]
cec-client: don't display debug output by default in 'cec-client -l'
Lars Op den Kamp [Wed, 20 Jun 2012 09:30:18 +0000 (11:30 +0200)]
changed 'couldn't change the ackmask: the connection is closed' into a debug message
Lars Op den Kamp [Wed, 20 Jun 2012 09:28:00 +0000 (11:28 +0200)]
silence 'unused' warnings
Lars Op den Kamp [Tue, 19 Jun 2012 20:32:43 +0000 (22:32 +0200)]
cec: changed all Handle...() commands to return a cec_abort_reason and send the correct abort reason to the initiator as a response to directly addressed messages
Lars Op den Kamp [Tue, 19 Jun 2012 18:54:35 +0000 (20:54 +0200)]
cec: fixed - send a feature abort as reply to vendor commands
Lars Op den Kamp [Tue, 19 Jun 2012 15:19:53 +0000 (17:19 +0200)]
cec: fixed - get the current power status of the TV when activating the source on panasonic, not the cached power status. fixes active source messages not being sent, or being delayed
Lars Op den Kamp [Tue, 19 Jun 2012 14:59:43 +0000 (16:59 +0200)]
cec-client: fixed - wrong client version
Lars Op den Kamp [Tue, 19 Jun 2012 14:59:12 +0000 (16:59 +0200)]
cec: fixed missing virtual keyword in CCECCommandHandler::GetReplacementDeviceType(). replace the handler (if needed) in GetHandler()
Lars Op den Kamp [Wed, 13 Jun 2012 08:02:01 +0000 (10:02 +0200)]
cec: display a warning message if libCEC was not compiled with adapter detection for the target platform
Lars Op den Kamp [Mon, 11 Jun 2012 13:30:12 +0000 (15:30 +0200)]
Merge branch 'development'
Lars Op den Kamp [Sun, 10 Jun 2012 11:40:25 +0000 (13:40 +0200)]
updated changelog
Lars Op den Kamp [Sun, 10 Jun 2012 11:34:08 +0000 (13:34 +0200)]
cec: fixed missing firmware version and build date in cec-client -l / GetDeviceInformation()
Lars Op den Kamp [Sun, 10 Jun 2012 10:42:41 +0000 (12:42 +0200)]
cec: open libcec.so.1 instead of libcec.so in cecloader.h. credits @coling. github issue #30. cosmetics: dlerror() already shows the name of the lib it tried to load. removed dupe log entry
Lars Op den Kamp [Sun, 10 Jun 2012 09:45:09 +0000 (11:45 +0200)]
updated changelog
Lars Op den Kamp [Sun, 10 Jun 2012 09:42:55 +0000 (11:42 +0200)]
debian: build source v1 packages to simplify test builds
Lars Op den Kamp [Sun, 10 Jun 2012 09:40:37 +0000 (11:40 +0200)]
cec: TransmitImageViewOn() and TransmitActiveSource() always returned true, even if sending the command failed, so the retry for failed source activations was never triggered
Lars Op den Kamp [Sun, 10 Jun 2012 09:14:45 +0000 (11:14 +0200)]
cec: get the vendor id of the TV before allocating logical addresses, so we can determine if the TV supports the requested device type directly. for panasonic, this means that a playback device will be allocated directly, instead of allocating a recording device first and switching to playback device afterwards, which may possibly confuse the tv
Lars Op den Kamp [Tue, 5 Jun 2012 09:55:07 +0000 (11:55 +0200)]
cec: don't respond with a feature abort to opcode play messages. bugzid: 873
Lars Op den Kamp [Mon, 4 Jun 2012 08:58:50 +0000 (10:58 +0200)]
updated README
Lars Op den Kamp [Mon, 4 Jun 2012 08:49:23 +0000 (10:49 +0200)]
cec: also send a menu state update when activating the source in CVLCommandHandler. should fix keypress routing for panasonic
Lars Op den Kamp [Mon, 4 Jun 2012 08:35:28 +0000 (10:35 +0200)]
bump version numbers to 1.7.0 and updated changelog
Lars Op den Kamp [Mon, 4 Jun 2012 08:16:29 +0000 (10:16 +0200)]
cec: changed - libcec_configuration.bAutodetectAddress is now read-only, and will be set to 1 by libCEC if the PA was autodetected. changed the order in CCECClient::SetPhysicalAddress() so it first checks whether a PA override is set in libcec_configuration.iPhysicalAddress, then checks whether the address can be detected, and if both failed it'll use the HDMI port + base device setting
Lars Op den Kamp [Mon, 4 Jun 2012 07:38:31 +0000 (09:38 +0200)]
cec: attempt to get the edid from nvidia's driver on linux via /proc/acpi/video/NGFX/HDMI/EDID
Lars Op den Kamp [Fri, 1 Jun 2012 16:01:16 +0000 (18:01 +0200)]
cec: added PA detection via ADL for AMD, and attempt to get the PA from the registry on windows if it fails.
Lars Op den Kamp [Fri, 1 Jun 2012 08:29:06 +0000 (10:29 +0200)]
cec-client: only active the source when reconnecting if libcec was the active source before closing the connection
Lars Op den Kamp [Fri, 1 Jun 2012 08:27:37 +0000 (10:27 +0200)]
cec: don't unregister clients in CLibCEC when disconnecting, but only in CCECProcessor. fixes reconnect after close
Lars Op den Kamp [Thu, 31 May 2012 22:31:49 +0000 (00:31 +0200)]
cec: MSGCODE_TIMEOUT_ERROR is a response to a transmission
Lars Op den Kamp [Thu, 31 May 2012 22:30:07 +0000 (00:30 +0200)]
cec: hold a lock when changing the ackmask in CUSBCECAdapterCommunication::Open
Lars Op den Kamp [Thu, 31 May 2012 21:06:42 +0000 (23:06 +0200)]
cec: retry 'activate source' every 10 seconds if it failed
Lars Op den Kamp [Thu, 31 May 2012 20:51:38 +0000 (22:51 +0200)]
cec: don't respond with a poll from the broadcast address when receiving in CSLCommandHandler::HandleDeviceVendorId(), but use the primary LA of the client as source instead
Lars Op den Kamp [Thu, 31 May 2012 20:34:22 +0000 (22:34 +0200)]
cec: moved ToString() methods and some other type related methods to CCECTypeUtils
Lars Op den Kamp [Thu, 31 May 2012 19:50:48 +0000 (21:50 +0200)]
cec: safe deletes for members
Lars Op den Kamp [Wed, 30 May 2012 09:39:53 +0000 (11:39 +0200)]
LibCecSharp: don't use an int but a CecUserControlCode in a CecKeypress
Lars Op den Kamp [Mon, 21 May 2012 12:45:39 +0000 (14:45 +0200)]
platform: added tcp server sockets for posix
Lars Op den Kamp [Sat, 26 May 2012 09:23:50 +0000 (11:23 +0200)]
updated debian/control to replace libcec (<< 1.6)
Lars Op den Kamp [Thu, 17 May 2012 12:30:19 +0000 (14:30 +0200)]
platform: fix win32 compilation error
Lars Op den Kamp [Thu, 17 May 2012 11:35:54 +0000 (13:35 +0200)]
added missing hardy rules and source version
Lars Op den Kamp [Thu, 17 May 2012 11:01:15 +0000 (13:01 +0200)]
Merge branch 'development'
Lars Op den Kamp [Thu, 17 May 2012 11:00:16 +0000 (13:00 +0200)]
sync changelog for build
Lars Op den Kamp [Thu, 17 May 2012 10:56:08 +0000 (12:56 +0200)]
cec: fixed - correct initiator for keypresses
Lars Op den Kamp [Wed, 16 May 2012 08:38:00 +0000 (10:38 +0200)]
sync the /debian dir with the one in precise (with a couple of changes), because the package name was changed in debian/ubuntu, and the upgrades we provide weren't pulled because of that. provides a transitional libcec -> libcec1 package
Lars Op den Kamp [Tue, 15 May 2012 12:18:03 +0000 (14:18 +0200)]
Merge remote branch 'libcec-public/master'
Lars Op den Kamp [Tue, 15 May 2012 10:31:07 +0000 (12:31 +0200)]
updated README
Lars Op den Kamp [Tue, 15 May 2012 10:04:43 +0000 (12:04 +0200)]
platform: fixed initial value of m_thread in CThread
Lars Op den Kamp [Mon, 14 May 2012 20:39:50 +0000 (22:39 +0200)]
added changelog and bumped version numbers for 1.6.3
Lars Op den Kamp [Mon, 14 May 2012 20:26:12 +0000 (22:26 +0200)]
cec: don't use the pid in dev_lock()/dev_unlock() calls
Lars Op den Kamp [Mon, 14 May 2012 20:06:33 +0000 (22:06 +0200)]
replaced 2 more occurences of Close() by m_port->Close()
Lars Op den Kamp [Mon, 14 May 2012 20:04:12 +0000 (22:04 +0200)]
close the port connection if a command couldn't be written. this will trigger an alert in the reader thread, and exit that thread
Lars Op den Kamp [Mon, 14 May 2012 19:53:01 +0000 (21:53 +0200)]
cec: some optimisations/cosmetics in CCECCommandHandler after the latest changes.
Lars Op den Kamp [Mon, 14 May 2012 18:32:28 +0000 (20:32 +0200)]
Merge remote branch 'libcec-public/master'
Conflicts:
src/lib/platform/threads/threads.h
Lars Op den Kamp [Mon, 14 May 2012 17:59:03 +0000 (19:59 +0200)]
cec: documentation for the new CCECClient and made methods protected that are only called by CCECProcessor
Bob van Loosen [Mon, 14 May 2012 17:54:53 +0000 (19:54 +0200)]
fixed: somenow not initializing this pointer crashes us in libpthread
Lars Op den Kamp [Mon, 14 May 2012 14:57:46 +0000 (16:57 +0200)]
cec: serial port locking on linux
Lars Op den Kamp [Mon, 14 May 2012 13:57:43 +0000 (15:57 +0200)]
cec: display an alert message in case the connection couldn't be opened because of permission errors, or if the port is busy
Lars Op den Kamp [Mon, 14 May 2012 13:26:34 +0000 (15:26 +0200)]
cec: set the ackmask to 0 when starting, so the earlier mask is cleared when starting a monitor-only client
Lars Op den Kamp [Mon, 14 May 2012 13:06:20 +0000 (15:06 +0200)]
cec-client: added -m/--monitor startup options, which will start a monitor-only client. use 'mon 0' to switch to a normal client
Lars Op den Kamp [Mon, 14 May 2012 13:05:34 +0000 (15:05 +0200)]
cec: bump version to 1.6.3. check the client version, not the server version in libcec_configuration::operator==(). added a new setting, bMonitorOnly, which will start a monitor-only client.
Lars Op den Kamp [Mon, 14 May 2012 12:45:17 +0000 (14:45 +0200)]
cec: always persist a changed configuration when possible
Lars Op den Kamp [Mon, 14 May 2012 11:53:15 +0000 (13:53 +0200)]
cec: check if the processor thread is marked as initialised, not if the thread is running. check if the thread is running too, not just if the port is open in CUSBCECAdapterCommunication
Lars Op den Kamp [Mon, 14 May 2012 11:46:39 +0000 (13:46 +0200)]
cec-config: fix physical address detection
Lars Op den Kamp [Mon, 14 May 2012 09:13:47 +0000 (11:13 +0200)]
cec: also reset the device status itself in CCECBusDevice::ResetDeviceStatus()
Lars Op den Kamp [Mon, 14 May 2012 09:12:14 +0000 (11:12 +0200)]
cec: per-client monitoring mode (which is just a call to (Un)RegisterClient()
Lars Op den Kamp [Mon, 14 May 2012 08:47:10 +0000 (10:47 +0200)]
cec: don't allow client registrations when the processor thread isn't running
Lars Op den Kamp [Mon, 14 May 2012 08:37:16 +0000 (10:37 +0200)]
cosmetics
Lars Op den Kamp [Mon, 14 May 2012 08:35:01 +0000 (10:35 +0200)]
cec: use the correct source when transmitting an abort message as a reposonse to a vendor command with id