deb_libcec.git
12 years agocosmetics in README
Lars Op den Kamp [Tue, 1 Nov 2011 21:27:39 +0000 (22:27 +0100)] 
cosmetics in README

12 years agoREADME updated
Lars Op den Kamp [Tue, 1 Nov 2011 21:24:36 +0000 (22:24 +0100)] 
README updated

12 years agocec: re-enabled AddCommand(). debug leftover
Lars Op den Kamp [Tue, 1 Nov 2011 21:00:42 +0000 (22:00 +0100)] 
cec: re-enabled AddCommand(). debug leftover

12 years agocec: only mark error messages as error when waiting for transmit_succeeded
Lars Op den Kamp [Tue, 1 Nov 2011 20:50:23 +0000 (21:50 +0100)] 
cec: only mark error messages as error when waiting for transmit_succeeded

12 years agocec: signal as started after setting the ackmask
Lars Op den Kamp [Tue, 1 Nov 2011 20:37:42 +0000 (21:37 +0100)] 
cec: signal as started after setting the ackmask

12 years agocec: moved SetAckMask() back to CCECProcessor, so the result can be processed properly
Lars Op den Kamp [Tue, 1 Nov 2011 19:38:28 +0000 (20:38 +0100)] 
cec: moved SetAckMask() back to CCECProcessor, so the result can be processed properly

12 years agocec: pass unexpected replies to ParseMessage() in WaitForTransmitSucceeded(). added...
Lars Op den Kamp [Tue, 1 Nov 2011 18:39:55 +0000 (19:39 +0100)] 
cec: pass unexpected replies to ParseMessage() in WaitForTransmitSucceeded(). added some extra sleeps

12 years agocec: only send unhandled and selected commands to the command buffer
Lars Op den Kamp [Tue, 1 Nov 2011 00:45:38 +0000 (01:45 +0100)] 
cec: only send unhandled and selected commands to the command buffer

12 years agocec: operator= for cec_datapacket and cec_command
Lars Op den Kamp [Tue, 1 Nov 2011 00:22:14 +0000 (01:22 +0100)] 
cec: operator= for cec_datapacket and cec_command

12 years agocec: fixed typo which led to a wrong return value in GetDeviceMenuLanguage()
Lars Op den Kamp [Mon, 31 Oct 2011 23:04:28 +0000 (00:04 +0100)] 
cec: fixed typo which led to a wrong return value in GetDeviceMenuLanguage()

12 years agocec: show the command as string instead of int when an unexpected command was received.
Lars Op den Kamp [Mon, 31 Oct 2011 19:55:59 +0000 (20:55 +0100)] 
cec: show the command as string instead of int when an unexpected command was received.

12 years agocec: renamed WaitForAck() to WaitForTransmitSucceeded(), because it waits for the...
Lars Op den Kamp [Mon, 31 Oct 2011 19:47:19 +0000 (20:47 +0100)] 
cec: renamed WaitForAck() to WaitForTransmitSucceeded(), because it waits for the TRANSMISSION_SUCCEEDED message, not for an ack from the CEC device. we'll add that later

12 years agocec: cleaned up logging
Lars Op den Kamp [Mon, 31 Oct 2011 19:35:58 +0000 (20:35 +0100)] 
cec: cleaned up logging

12 years agocec: removed framebuffer in CCECProcessor. any other packet is an unexpected reply
Lars Op den Kamp [Mon, 31 Oct 2011 00:40:13 +0000 (01:40 +0100)] 
cec: removed framebuffer in CCECProcessor. any other packet is an unexpected reply

12 years agocec: don't use shared_ptr when not needed in CCECProcessor
Lars Op den Kamp [Sun, 30 Oct 2011 22:40:48 +0000 (23:40 +0100)] 
cec: don't use shared_ptr when not needed in CCECProcessor

12 years agowin32: don't include the .pdb in the installer. only include include/cec*
Lars Op den Kamp [Sun, 30 Oct 2011 21:00:01 +0000 (22:00 +0100)] 
win32: don't include the .pdb in the installer. only include include/cec*

12 years agowin32: bump version numbers to 8
Lars Op den Kamp [Sun, 30 Oct 2011 20:57:16 +0000 (21:57 +0100)] 
win32: bump version numbers to 8

12 years agowin32: create Release type installer
Lars Op den Kamp [Sun, 30 Oct 2011 20:55:34 +0000 (21:55 +0100)] 
win32: create Release type installer

12 years agocec: only log new power status when it actually changed
Lars Op den Kamp [Sun, 30 Oct 2011 20:32:38 +0000 (21:32 +0100)] 
cec: only log new power status when it actually changed

12 years agocec: refresh device statuses by default
Lars Op den Kamp [Sun, 30 Oct 2011 19:01:04 +0000 (20:01 +0100)] 
cec: refresh device statuses by default

12 years agocec: make the vendor name available on the interface
Lars Op den Kamp [Sun, 30 Oct 2011 17:11:25 +0000 (18:11 +0100)] 
cec: make the vendor name available on the interface

12 years agocec: fixec - don't deadlock when a command wasn't sent
Lars Op den Kamp [Sun, 30 Oct 2011 16:42:08 +0000 (17:42 +0100)] 
cec: fixec - don't deadlock when a command wasn't sent

12 years agocec: fixed - ensure that the ackmask is set
Lars Op den Kamp [Sun, 30 Oct 2011 16:36:06 +0000 (17:36 +0100)] 
cec: fixed - ensure that the ackmask is set

12 years agocec: added some guards
Lars Op den Kamp [Sun, 30 Oct 2011 16:13:01 +0000 (17:13 +0100)] 
cec: added some guards

12 years agowin32: fix build
Lars Op den Kamp [Sun, 30 Oct 2011 15:21:04 +0000 (16:21 +0100)] 
win32: fix build

12 years agowin32: fix boost download
Lars Op den Kamp [Sun, 30 Oct 2011 15:12:35 +0000 (16:12 +0100)] 
win32: fix boost download

12 years agowin32: download boost deps from xbmc.org
Lars Op den Kamp [Sun, 30 Oct 2011 15:04:13 +0000 (16:04 +0100)] 
win32: download boost deps from xbmc.org

12 years agocec: check for enable_shared_from_this.hpp
Lars Op den Kamp [Sun, 30 Oct 2011 14:31:29 +0000 (15:31 +0100)] 
cec: check for enable_shared_from_this.hpp

12 years agocec: don't set the physical address to 0
Lars Op den Kamp [Sun, 30 Oct 2011 14:28:39 +0000 (15:28 +0100)] 
cec: don't set the physical address to 0

12 years agocec: added GetDevicePowerStatus()/cec_get_device_power_status()
Lars Op den Kamp [Sun, 30 Oct 2011 13:31:22 +0000 (14:31 +0100)] 
cec: added GetDevicePowerStatus()/cec_get_device_power_status()

12 years agocec: added GetDeviceVendorId()/cec_get_device_vendor_id()
Lars Op den Kamp [Sun, 30 Oct 2011 13:07:55 +0000 (14:07 +0100)] 
cec: added GetDeviceVendorId()/cec_get_device_vendor_id()

12 years agocec: store all commands in the command buffer, so they can be processed by libcec...
Lars Op den Kamp [Sun, 30 Oct 2011 12:31:39 +0000 (13:31 +0100)] 
cec: store all commands in the command buffer, so they can be processed by libcec clients

12 years agocec: added GetDeviceMenuLanguage()/cec_get_device_menu_language()
Lars Op den Kamp [Sun, 30 Oct 2011 12:26:37 +0000 (13:26 +0100)] 
cec: added GetDeviceMenuLanguage()/cec_get_device_menu_language()

12 years agocec: add GetDeviceCecVersion()/cec_get_device_cec_version() to the interface. mostly...
Lars Op den Kamp [Sun, 30 Oct 2011 11:31:27 +0000 (12:31 +0100)] 
cec: add GetDeviceCecVersion()/cec_get_device_cec_version() to the interface. mostly as a test for two-way device communication

12 years agocec: fixed - wait for ack while keeping a lock
Lars Op den Kamp [Sun, 30 Oct 2011 10:31:29 +0000 (11:31 +0100)] 
cec: fixed - wait for ack while keeping a lock

12 years agocec: fixed - wait for the processor thread to start before continueing
Lars Op den Kamp [Sun, 30 Oct 2011 10:28:39 +0000 (11:28 +0100)] 
cec: fixed - wait for the processor thread to start before continueing

12 years agocec: set the correct ackmask on startup
Lars Op den Kamp [Sun, 30 Oct 2011 10:22:11 +0000 (11:22 +0100)] 
cec: set the correct ackmask on startup

12 years agocec: include the ack timeout in the cec_command struct
Lars Op den Kamp [Sun, 30 Oct 2011 09:44:17 +0000 (10:44 +0100)] 
cec: include the ack timeout in the cec_command struct

12 years agocec: set a message state in CCECAdapterMessage and check this state after sending...
Lars Op den Kamp [Sun, 30 Oct 2011 09:34:36 +0000 (10:34 +0100)] 
cec: set a message state in CCECAdapterMessage and check this state after sending a command, so we catch failed writes again

12 years agocec: wait for messages to be transmitted before continueing in CCECProcessor::Transmit()
Lars Op den Kamp [Sun, 30 Oct 2011 09:29:19 +0000 (10:29 +0100)] 
cec: wait for messages to be transmitted before continueing in CCECProcessor::Transmit()

12 years agocec: made = operator private for CCECAdapterMessage. these should not be copied
Lars Op den Kamp [Sun, 30 Oct 2011 09:25:06 +0000 (10:25 +0100)] 
cec: made = operator private for CCECAdapterMessage. these should not be copied

12 years agocec: store CCECAdapterMessagePtr in the framebuffer
Lars Op den Kamp [Sun, 30 Oct 2011 09:21:59 +0000 (10:21 +0100)] 
cec: store CCECAdapterMessagePtr in the framebuffer

12 years agocec: fixed - mutex in CAdapterCommunication::Close() and CAdapterCommunication::Open()
Lars Op den Kamp [Sun, 30 Oct 2011 09:01:29 +0000 (10:01 +0100)] 
cec: fixed - mutex in CAdapterCommunication::Close() and CAdapterCommunication::Open()

12 years agocec: process buffered messages too
Lars Op den Kamp [Sun, 30 Oct 2011 00:03:34 +0000 (02:03 +0200)] 
cec: process buffered messages too

12 years agocec: use boost::shared_ptr for messages
Lars Op den Kamp [Sat, 29 Oct 2011 23:18:35 +0000 (01:18 +0200)] 
cec: use boost::shared_ptr for messages

12 years agocosmetics
Lars Op den Kamp [Sat, 29 Oct 2011 21:31:50 +0000 (23:31 +0200)] 
cosmetics

12 years agocec: only set the logical address once when it hasn't changed
Lars Op den Kamp [Sat, 29 Oct 2011 21:25:21 +0000 (23:25 +0200)] 
cec: only set the logical address once when it hasn't changed

12 years agocec: dropped second mutex in CAdapterCommunication. it's all called from 1 thread now
Lars Op den Kamp [Sat, 29 Oct 2011 21:07:37 +0000 (23:07 +0200)] 
cec: dropped second mutex in CAdapterCommunication. it's all called from 1 thread now

12 years agocec: simplified WaitForAck() call. no longer needs to be in a while loop
Lars Op den Kamp [Sat, 29 Oct 2011 15:26:29 +0000 (17:26 +0200)] 
cec: simplified WaitForAck() call. no longer needs to be in a while loop

12 years agocec: removed TransmitFormatted()
Lars Op den Kamp [Sat, 29 Oct 2011 15:22:43 +0000 (17:22 +0200)] 
cec: removed TransmitFormatted()

12 years agocec: moved cec_adapter_message to CCECAdapterMessage
Lars Op den Kamp [Sat, 29 Oct 2011 15:17:35 +0000 (17:17 +0200)] 
cec: moved cec_adapter_message to CCECAdapterMessage

12 years agocec: make all reads and write in CAdapterCommunication go through buffers, so we...
Lars Op den Kamp [Sat, 29 Oct 2011 14:54:27 +0000 (16:54 +0200)] 
cec: make all reads and write in CAdapterCommunication go through buffers, so we don't have to block and keep locks. proper handling of failed writes will have to be re-added

12 years agocec: use CecBuffer as input buffer in CAdapterCommunication
Lars Op den Kamp [Sat, 29 Oct 2011 14:34:38 +0000 (16:34 +0200)] 
cec: use CecBuffer as input buffer in CAdapterCommunication

12 years agocec: split up WaitForAck() and ParseMessage(). currently has a bit of dupe logging...
Lars Op den Kamp [Fri, 28 Oct 2011 23:30:09 +0000 (01:30 +0200)] 
cec: split up WaitForAck() and ParseMessage(). currently has a bit of dupe logging code

12 years agocec: fixed - use the correct source device for broadcasts
Lars Op den Kamp [Fri, 28 Oct 2011 22:45:35 +0000 (00:45 +0200)] 
cec: fixed - use the correct source device for broadcasts

12 years agocec: wait a bit longer to clear previous input
Lars Op den Kamp [Fri, 28 Oct 2011 22:00:54 +0000 (00:00 +0200)] 
cec: wait a bit longer to clear previous input

12 years agocec: fixed - correct source for broadcast messages
Lars Op den Kamp [Fri, 28 Oct 2011 09:37:06 +0000 (11:37 +0200)] 
cec: fixed - correct source for broadcast messages

12 years agowin32: sync visual studio project files
Lars Op den Kamp [Fri, 28 Oct 2011 09:32:01 +0000 (11:32 +0200)] 
win32: sync visual studio project files

12 years agocec: moved device specific logic from CCECProcessor to CCECBusDevice
Lars Op den Kamp [Fri, 28 Oct 2011 09:16:57 +0000 (11:16 +0200)] 
cec: moved device specific logic from CCECProcessor to CCECBusDevice

12 years agocec: moved CECBusDevice.cpp to devices/CECBusDevice.cpp
Lars Op den Kamp [Fri, 28 Oct 2011 07:59:20 +0000 (09:59 +0200)] 
cec: moved CECBusDevice.cpp to devices/CECBusDevice.cpp

12 years agocec: set the physical address in CCECBusDevice
Lars Op den Kamp [Fri, 28 Oct 2011 07:53:46 +0000 (09:53 +0200)] 
cec: set the physical address in CCECBusDevice

12 years agocec: add -la and --logical-address to the command line params
Lars Op den Kamp [Fri, 28 Oct 2011 00:05:39 +0000 (02:05 +0200)] 
cec: add -la and --logical-address to the command line params

12 years agocec: added -d and --log-level params to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 23:41:30 +0000 (01:41 +0200)] 
cec: added -d and --log-level params to cec-client

12 years agocec: cleaned up command line param parsing
Lars Op den Kamp [Thu, 27 Oct 2011 23:34:31 +0000 (01:34 +0200)] 
cec: cleaned up command line param parsing

12 years agocec: added -sf and --short-log-file, which only log the actual messages, not the...
Lars Op den Kamp [Thu, 27 Oct 2011 23:16:46 +0000 (01:16 +0200)] 
cec: added -sf and --short-log-file, which only log the actual messages, not the level and timestamp

12 years agocec: added -f and --log-file parameters to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 22:58:29 +0000 (00:58 +0200)] 
cec: added -f and --log-file parameters to cec-client

12 years agocec: added option to change the log level to cec-client
Lars Op den Kamp [Thu, 27 Oct 2011 22:15:40 +0000 (00:15 +0200)] 
cec: added option to change the log level to cec-client

12 years agocec: make CEC_LOG levels powers of 2
Lars Op den Kamp [Thu, 27 Oct 2011 22:04:30 +0000 (00:04 +0200)] 
cec: make CEC_LOG levels powers of 2

12 years agocec: introduced CEC_LOG_TRAFFIC log level and log all traffic in that level
Lars Op den Kamp [Thu, 27 Oct 2011 22:00:39 +0000 (00:00 +0200)] 
cec: introduced CEC_LOG_TRAFFIC log level and log all traffic in that level

12 years agocec: fixed - c+p'd copyright contained #pragma once
Lars Op den Kamp [Thu, 27 Oct 2011 18:11:26 +0000 (20:11 +0200)] 
cec: fixed - c+p'd copyright contained #pragma once

12 years agocec: fixed vendorid. it should be uint64_t after all :)
Lars Op den Kamp [Thu, 27 Oct 2011 18:10:52 +0000 (20:10 +0200)] 
cec: fixed vendorid. it should be uint64_t after all :)

12 years agowin32: sync visual studio project file. use uint32_t instead of uint64_t for the...
Lars Op den Kamp [Thu, 27 Oct 2011 17:51:57 +0000 (19:51 +0200)] 
win32: sync visual studio project file. use uint32_t instead of uint64_t for the vendor id

12 years agocec: poll for a vendor id when an active device is detected on a logical addres,...
Lars Op den Kamp [Wed, 26 Oct 2011 23:32:31 +0000 (01:32 +0200)] 
cec: poll for a vendor id when an active device is detected on a logical addres, the vendor id is unknown  and it's been inactive for 5 seconds.

12 years agocec: moved CEC handlers to implementations/
Lars Op den Kamp [Wed, 26 Oct 2011 23:10:01 +0000 (01:10 +0200)] 
cec: moved CEC handlers to implementations/

12 years agocec: fixed crash on exit after the last commit.
Lars Op den Kamp [Wed, 26 Oct 2011 23:02:38 +0000 (01:02 +0200)] 
cec: fixed crash on exit after the last commit.

12 years agocec: refactor CEC command handling. split up standard and non-standard CEC implementa...
Lars Op den Kamp [Wed, 26 Oct 2011 22:59:40 +0000 (00:59 +0200)] 
cec: refactor CEC command handling. split up standard and non-standard CEC implementations.

12 years agocec: also parse the vendor id if it's sent to the broadcast address
Lars Op den Kamp [Wed, 26 Oct 2011 19:48:10 +0000 (21:48 +0200)] 
cec: also parse the vendor id if it's sent to the broadcast address

12 years agocec: handle samsung remote command 'return'
Lars Op den Kamp [Tue, 25 Oct 2011 23:26:52 +0000 (01:26 +0200)] 
cec: handle samsung remote command 'return'

12 years agocec: fixed - log the parameter too when there's only 1
Lars Op den Kamp [Tue, 25 Oct 2011 23:14:24 +0000 (01:14 +0200)] 
cec: fixed - log the parameter too when there's only 1

12 years agocec: fixed - break break break
Lars Op den Kamp [Tue, 25 Oct 2011 23:04:37 +0000 (01:04 +0200)] 
cec: fixed - break break break

12 years agocec: changed log format of transmitted commands
Lars Op den Kamp [Tue, 25 Oct 2011 22:59:59 +0000 (00:59 +0200)] 
cec: changed log format of transmitted commands

12 years agocec: added hooks for vendor specific cec handling for LG and Samsung
Lars Op den Kamp [Tue, 25 Oct 2011 22:59:09 +0000 (00:59 +0200)] 
cec: added hooks for vendor specific cec handling for LG and Samsung

12 years agocec: added vendor id detection for LG. changed vendorid display to hex
Lars Op den Kamp [Tue, 25 Oct 2011 22:35:06 +0000 (00:35 +0200)] 
cec: added vendor id detection for LG. changed vendorid display to hex

12 years agocec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitori...
Lars Op den Kamp [Tue, 25 Oct 2011 22:19:09 +0000 (00:19 +0200)] 
cec: added SwitchMonitoring()/cec_switch_monitoring() to the interface. when monitoring is enabled, the device will only log the data it received, but will not respond to any message

12 years agocec: changed format of the log message with the frames that were received
Lars Op den Kamp [Tue, 25 Oct 2011 19:35:03 +0000 (21:35 +0200)] 
cec: changed format of the log message with the frames that were received

12 years agocec: store the vendor ID when it's sent via CEC_OPCODE_DEVICE_VENDOR_ID. don't respon...
Lars Op den Kamp [Tue, 25 Oct 2011 17:47:00 +0000 (19:47 +0200)] 
cec: store the vendor ID when it's sent via CEC_OPCODE_DEVICE_VENDOR_ID. don't respond to CEC_OPCODE_VENDOR_COMMAND_WITH_ID with an abort command

12 years agoadded changelog for v0.7
Lars Op den Kamp [Fri, 14 Oct 2011 15:34:41 +0000 (17:34 +0200)] 
added changelog for v0.7

12 years agocec: send a keypress with 0 duration when a key is pressed and with a duration set...
Lars Op den Kamp [Fri, 14 Oct 2011 14:17:08 +0000 (16:17 +0200)] 
cec: send a keypress with 0 duration when a key is pressed and with a duration set when it's released

12 years agocec: add SetOSDString() to the interface (not supported by all tvs)
Lars Op den Kamp [Fri, 14 Oct 2011 13:59:27 +0000 (15:59 +0200)] 
cec: add SetOSDString() to the interface (not supported by all tvs)

12 years agocec: fixed - 'routing change' is a broadcast message. log routing changes, but don...
Lars Op den Kamp [Fri, 14 Oct 2011 10:52:30 +0000 (12:52 +0200)] 
cec: fixed - 'routing change' is a broadcast message. log routing changes, but don't send a 'set active view' message, so the active input won't be changed

12 years agocec: log keypresses in the debug log
Lars Op den Kamp [Fri, 14 Oct 2011 10:22:15 +0000 (12:22 +0200)] 
cec: log keypresses in the debug log

12 years agocec: added 'pa' command to cec-client, to change the physical address
Lars Op den Kamp [Fri, 14 Oct 2011 09:15:10 +0000 (11:15 +0200)] 
cec: added 'pa' command to cec-client, to change the physical address

12 years agocec: add SetPhysicalAddress()/cec_set_physical_address() to the interface, so the...
Lars Op den Kamp [Fri, 14 Oct 2011 09:06:24 +0000 (11:06 +0200)] 
cec: add SetPhysicalAddress()/cec_set_physical_address() to the interface, so the HDMI port number to use can be changed

12 years agocec: put the message processing code from WaitForAck() in ParseMessage(). fixes missi...
Lars Op den Kamp [Fri, 14 Oct 2011 08:51:29 +0000 (10:51 +0200)] 
cec: put the message processing code from WaitForAck() in ParseMessage(). fixes missing incoming message logging of non-data messages when not waiting for an ACK

12 years agocec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before...
Lars Op den Kamp [Fri, 14 Oct 2011 08:21:17 +0000 (10:21 +0200)] 
cec: add 'txn' command to cec-client. same as 'tx', but doesn't wait for ACK before returning

12 years agocec: set initiator and destination first in cec_command::push_back(). fixes 'tx'...
Lars Op den Kamp [Fri, 14 Oct 2011 08:13:10 +0000 (10:13 +0200)] 
cec: set initiator and destination first in cec_command::push_back(). fixes 'tx' command in cec-client

12 years agocec: keep trying to connect while iTimeout isn't reached (default 10 seconds). fixes...
Lars Op den Kamp [Fri, 14 Oct 2011 00:23:11 +0000 (02:23 +0200)] 
cec: keep trying to connect while iTimeout isn't reached (default 10 seconds). fixes exit with a 'permission denied' error when the device isn't ready yet. remove CEC_SETTLE_DOWN_TIME

12 years agocec: don't call SetActiveView() when reporting the power status. fixes loop which...
Lars Op den Kamp [Fri, 14 Oct 2011 00:10:39 +0000 (02:10 +0200)] 
cec: don't call SetActiveView() when reporting the power status. fixes loop which causes some TVs to report failed connections

12 years agocec: eom was not being parsed when receiving MSGCODE_FRAME_DATA. fixed. thanks again...
Lars Op den Kamp [Thu, 13 Oct 2011 23:59:46 +0000 (01:59 +0200)] 
cec: eom was not being parsed when receiving MSGCODE_FRAME_DATA. fixed. thanks again bob :-)

12 years agocec: add the device type as parameter when sending the physical address. thanks bobo1on1
Lars Op den Kamp [Thu, 13 Oct 2011 23:38:29 +0000 (01:38 +0200)] 
cec: add the device type as parameter when sending the physical address. thanks bobo1on1