deb_libcec.git
12 years agocec: let CCECProcessor replace the command handlers
Lars Op den Kamp [Tue, 27 Dec 2011 19:22:53 +0000 (20:22 +0100)] 
cec: let CCECProcessor replace the command handlers

12 years agocec: cleanups/fixes in the LG command handler
Lars Op den Kamp [Tue, 27 Dec 2011 19:15:44 +0000 (20:15 +0100)] 
cec: cleanups/fixes in the LG command handler

12 years agocec: don't replace a command handler when it's being used
Lars Op den Kamp [Tue, 27 Dec 2011 19:15:08 +0000 (20:15 +0100)] 
cec: don't replace a command handler when it's being used

12 years agocec: add a bRecursive parameter to the constructor of CMutex
Lars Op den Kamp [Tue, 27 Dec 2011 19:13:41 +0000 (20:13 +0100)] 
cec: add a bRecursive parameter to the constructor of CMutex

12 years agoRevert "cec: fixed typo which prevented LG TVs from connecting sometimes". This broke...
Lars Op den Kamp [Fri, 23 Dec 2011 01:14:59 +0000 (02:14 +0100)] 
Revert "cec: fixed typo which prevented LG TVs from connecting sometimes". This broke TV power on

This reverts commit e81c6777aada2aea5bff91fb88a8194d61ae4cd6.

12 years agocec: remove m_writeMutex in CCECBusDevice
Lars Op den Kamp [Fri, 23 Dec 2011 01:01:29 +0000 (02:01 +0100)] 
cec: remove m_writeMutex in CCECBusDevice

12 years agocec: use a recursive mutex
Lars Op den Kamp [Fri, 23 Dec 2011 00:59:09 +0000 (01:59 +0100)] 
cec: use a recursive mutex

12 years agocec: fixed typo which prevented LG TVs from connecting sometimes
Lars Op den Kamp [Thu, 22 Dec 2011 23:47:15 +0000 (00:47 +0100)] 
cec: fixed typo which prevented LG TVs from connecting sometimes

12 years agocec: cleaned up processor thread start
Lars Op den Kamp [Thu, 22 Dec 2011 21:35:57 +0000 (22:35 +0100)] 
cec: cleaned up processor thread start

12 years agocec: forgot the return value in HanldeFeatureAbort()
Lars Op den Kamp [Thu, 22 Dec 2011 00:08:50 +0000 (01:08 +0100)] 
cec: forgot the return value in HanldeFeatureAbort()

12 years agocec: fix handler init
Lars Op den Kamp [Wed, 21 Dec 2011 23:55:45 +0000 (00:55 +0100)] 
cec: fix handler init

12 years agocec: simplify CCECProcessor::SetHDMIPort()
Lars Op den Kamp [Wed, 21 Dec 2011 23:37:49 +0000 (00:37 +0100)] 
cec: simplify CCECProcessor::SetHDMIPort()

12 years agocec: don't try to do anything before the processor thread has started
Lars Op den Kamp [Wed, 21 Dec 2011 23:25:33 +0000 (00:25 +0100)] 
cec: don't try to do anything before the processor thread has started

12 years agocec: don't keep trying the same command/request after receiving a feature abort message
Lars Op den Kamp [Wed, 21 Dec 2011 23:21:29 +0000 (00:21 +0100)] 
cec: don't keep trying the same command/request after receiving a feature abort message

12 years agocec: disable background polling. let the client request this info when needed
Lars Op den Kamp [Wed, 21 Dec 2011 22:54:19 +0000 (23:54 +0100)] 
cec: disable background polling. let the client request this info when needed

12 years agocec: pass bWait in CCECProcessor::TransmitKeypress() and TransmitKeyRelease()
Lars Op den Kamp [Wed, 21 Dec 2011 22:50:10 +0000 (23:50 +0100)] 
cec: pass bWait in CCECProcessor::TransmitKeypress() and TransmitKeyRelease()

12 years agocosmetics
Lars Op den Kamp [Wed, 21 Dec 2011 22:49:03 +0000 (23:49 +0100)] 
cosmetics

12 years agocec: copy libcec.dll to the XBMC installation dir when XBMC is found
Buildserver [Wed, 21 Dec 2011 10:16:31 +0000 (11:16 +0100)] 
cec: copy libcec.dll to the XBMC installation dir when XBMC is found

12 years agocec: missing return statement in CCECCommandHandler::InitHandler()
Lars Op den Kamp [Tue, 20 Dec 2011 23:29:46 +0000 (00:29 +0100)] 
cec: missing return statement in CCECCommandHandler::InitHandler()

12 years agocec: transmit an active source message when transmitting the physical address
Lars Op den Kamp [Tue, 20 Dec 2011 23:27:42 +0000 (00:27 +0100)] 
cec: transmit an active source message when transmitting the physical address

12 years agocec: don't transmit active source messages when the physical address is still 0xFFFF
Lars Op den Kamp [Tue, 20 Dec 2011 23:11:19 +0000 (00:11 +0100)] 
cec: don't transmit active source messages when the physical address is still 0xFFFF

12 years agocec: don't init the default handler before the physical address is known
Lars Op den Kamp [Tue, 20 Dec 2011 22:42:21 +0000 (23:42 +0100)] 
cec: don't init the default handler before the physical address is known

12 years agocec: set the power state to 'powered on' by default
Lars Op den Kamp [Tue, 20 Dec 2011 22:27:18 +0000 (23:27 +0100)] 
cec: set the power state to 'powered on' by default

12 years agocec: init the default handler after starting up. sets the active source and menu...
Lars Op den Kamp [Tue, 20 Dec 2011 22:13:34 +0000 (23:13 +0100)] 
cec: init the default handler after starting up. sets the active source and menu state to active

12 years agocec: don't send the power up/down keypress to listeners when in the initial device...
Lars Op den Kamp [Tue, 20 Dec 2011 21:54:19 +0000 (22:54 +0100)] 
cec: don't send the power up/down keypress to listeners when in the initial device state (powered off). fixes unexpected shutdown in XBMC when connecting to the CEC adapter

12 years agocec: handle the bWait parameter in TransmitKeypress() and TransmitKeyRelease()
Lars Op den Kamp [Tue, 20 Dec 2011 21:53:08 +0000 (22:53 +0100)] 
cec: handle the bWait parameter in TransmitKeypress() and TransmitKeyRelease()

12 years agocec: send a 'menu state activated' command when starting up. bugzid: 113
Lars Op den Kamp [Tue, 20 Dec 2011 20:08:38 +0000 (21:08 +0100)] 
cec: send a 'menu state activated' command when starting up. bugzid: 113

12 years agocec: change the previously unused boolean parameter in volume control methods to...
Lars Op den Kamp [Tue, 20 Dec 2011 20:04:52 +0000 (21:04 +0100)] 
cec: change the previously unused boolean parameter in volume control methods to bSendRelease, and only send a key release when it's true. default to true

12 years agoMerge branch 'master' into release
Lars Op den Kamp [Fri, 9 Dec 2011 12:48:22 +0000 (13:48 +0100)] 
Merge branch 'master' into release

12 years agofixed typo in the changelog version
Lars Op den Kamp [Fri, 9 Dec 2011 12:47:28 +0000 (13:47 +0100)] 
fixed typo in the changelog version

12 years agocec: fixed - set power state to powered off when a device handled by libcec is made...
Lars Op den Kamp [Fri, 9 Dec 2011 12:28:37 +0000 (13:28 +0100)] 
cec: fixed - set power state to powered off when a device handled by libcec is made inactive. transmit an active source message and the deck status when made active

12 years agocec: fixed - transmit an active source message when the stream path has been set...
Lars Op den Kamp [Fri, 9 Dec 2011 11:36:04 +0000 (12:36 +0100)] 
cec: fixed - transmit an active source message when the stream path has been set to a device that is handled by libcec

12 years agoupdated changelog for release v1.3
Lars Op den Kamp [Fri, 9 Dec 2011 11:16:30 +0000 (12:16 +0100)] 
updated changelog for release v1.3

12 years agocec: fixed - don't change the active device when the stream path changed.
Lars Op den Kamp [Fri, 9 Dec 2011 11:14:54 +0000 (12:14 +0100)] 
cec: fixed - don't change the active device when the stream path changed.

12 years agocec: added 'as' command to cec-client, to make the CEC adapter the active source
Lars Op den Kamp [Fri, 9 Dec 2011 11:06:02 +0000 (12:06 +0100)] 
cec: added 'as' command to cec-client, to make the CEC adapter the active source

12 years agocec: added -b/--base to cec-client's parameters, so a base device can be set when...
Lars Op den Kamp [Fri, 9 Dec 2011 10:50:05 +0000 (11:50 +0100)] 
cec: added -b/--base to cec-client's parameters, so a base device can be set when starting

12 years agocec: fixed - mark a device as active source before transmitting the active source...
Lars Op den Kamp [Fri, 9 Dec 2011 10:37:45 +0000 (11:37 +0100)] 
cec: fixed - mark a device as active source before transmitting the active source command, not after. renamed IsActiveDevice() -> IsPresentDevice() internally, to avoid confusion with IsActiveSource().

12 years agoupdate changelog and version numbers for libCEC v1.3
Lars Op den Kamp [Fri, 9 Dec 2011 00:14:04 +0000 (01:14 +0100)] 
update changelog and version numbers for libCEC v1.3

12 years agocec: added missing libCEC methods to LibCecSharp. added "scan" to the C# version...
Lars Op den Kamp [Thu, 8 Dec 2011 21:29:44 +0000 (22:29 +0100)] 
cec: added missing libCEC methods to LibCecSharp. added "scan" to the C# version of cec-client

12 years agocec: fixed segfault on exit when calling cec-client -l
Lars Op den Kamp [Thu, 8 Dec 2011 18:30:06 +0000 (19:30 +0100)] 
cec: fixed segfault on exit when calling cec-client -l

12 years agocec: make libudev optional. if libudev is not available on linux, adapter autodetecti...
Lars Op den Kamp [Thu, 8 Dec 2011 18:25:06 +0000 (19:25 +0100)] 
cec: make libudev optional. if libudev is not available on linux, adapter autodetection will also not be available

12 years agocec: removed 'retries' from cec_command, to avoid stack smashing when upgrading the...
Lars Op den Kamp [Thu, 8 Dec 2011 00:04:55 +0000 (01:04 +0100)] 
cec: removed 'retries' from cec_command, to avoid stack smashing when upgrading the libcec binary without recompiling

12 years agocec: renamed GetOSDName() -> GetDeviceOSDName()
Lars Op den Kamp [Wed, 7 Dec 2011 23:20:05 +0000 (00:20 +0100)] 
cec: renamed GetOSDName() -> GetDeviceOSDName()

12 years agocec: added the new methods to LibCecSharp
Lars Op den Kamp [Wed, 7 Dec 2011 23:08:02 +0000 (00:08 +0100)] 
cec: added the new methods to LibCecSharp

12 years agoMerge branch 'master' of github.com:Pulse-Eight/libcec
Lars Op den Kamp [Wed, 7 Dec 2011 22:57:53 +0000 (23:57 +0100)] 
Merge branch 'master' of github.com:Pulse-Eight/libcec

12 years agocec: don't get the vendor id first in 'scan'
Lars Op den Kamp [Wed, 7 Dec 2011 22:55:50 +0000 (23:55 +0100)] 
cec: don't get the vendor id first in 'scan'

12 years agocec: start the background polling thread after 10 seconds instead of 30
Lars Op den Kamp [Wed, 7 Dec 2011 22:53:57 +0000 (23:53 +0100)] 
cec: start the background polling thread after 10 seconds instead of 30

12 years agocec: don't request the physical address from the tv (it's always 0x0000). just set...
Lars Op den Kamp [Wed, 7 Dec 2011 22:52:15 +0000 (23:52 +0100)] 
cec: don't request the physical address from the tv (it's always 0x0000). just set the physical address when the physical address of the base device wasn't found

12 years agocec: fix LG deck status on startup
Lars Op den Kamp [Wed, 7 Dec 2011 22:39:37 +0000 (23:39 +0100)] 
cec: fix LG deck status on startup

12 years agocec: set the proper ackmask before doing anything else. set the LG vendor ID after...
Lars Op den Kamp [Wed, 7 Dec 2011 22:32:48 +0000 (23:32 +0100)] 
cec: set the proper ackmask before doing anything else. set the LG vendor ID after switching the command handler

12 years agocec: added GetActiveSource()/cec_get_active_source() and IsActiveSource()/cec_is_acti...
Lars Op den Kamp [Wed, 7 Dec 2011 21:48:32 +0000 (22:48 +0100)] 
cec: added GetActiveSource()/cec_get_active_source() and IsActiveSource()/cec_is_active_source()

12 years agocec: add GetDevicePhysicalAddress()/cec_get_device_physical_address()
Lars Op den Kamp [Wed, 7 Dec 2011 21:21:37 +0000 (22:21 +0100)] 
cec: add GetDevicePhysicalAddress()/cec_get_device_physical_address()

12 years agocec: set device status to 'present' when a command was received from a device
Lars Op den Kamp [Wed, 7 Dec 2011 17:17:46 +0000 (18:17 +0100)] 
cec: set device status to 'present' when a command was received from a device

12 years agocec: fixed compiler warning on win32
Lars Op den Kamp [Wed, 7 Dec 2011 00:45:01 +0000 (01:45 +0100)] 
cec: fixed compiler warning on win32

12 years agocosmetics
Lars Op den Kamp [Wed, 7 Dec 2011 00:30:22 +0000 (01:30 +0100)] 
cosmetics

12 years agocec: handle LG reconnect
Lars Op den Kamp [Tue, 6 Dec 2011 23:59:13 +0000 (00:59 +0100)] 
cec: handle LG reconnect

12 years agocec: fixed another deadlock on exit
Lars Op den Kamp [Tue, 6 Dec 2011 23:40:01 +0000 (00:40 +0100)] 
cec: fixed another deadlock on exit

12 years agocec: and more LG hacks
Lars Op den Kamp [Tue, 6 Dec 2011 23:16:53 +0000 (00:16 +0100)] 
cec: and more LG hacks

12 years agocec: fix simplink reconnect via the TV source selector (after vendor command 0x03)
Lars Op den Kamp [Tue, 6 Dec 2011 20:27:50 +0000 (21:27 +0100)] 
cec: fix simplink reconnect via the TV source selector (after vendor command 0x03)

12 years agocec: fix background polling and libcec exit
Lars Op den Kamp [Tue, 6 Dec 2011 19:29:52 +0000 (20:29 +0100)] 
cec: fix background polling and libcec exit

12 years agocec: fix power on of LG devices
Lars Op den Kamp [Tue, 6 Dec 2011 16:11:22 +0000 (17:11 +0100)] 
cec: fix power on of LG devices

12 years agocec: set to 'not present' on failed ack
Lars Op den Kamp [Tue, 6 Dec 2011 15:53:38 +0000 (16:53 +0100)] 
cec: set to 'not present' on failed ack

12 years agocec: don't unlock the transmit mutex in CCECProcessor while waiting for an answer
Lars Op den Kamp [Tue, 6 Dec 2011 15:40:14 +0000 (16:40 +0100)] 
cec: don't unlock the transmit mutex in CCECProcessor while waiting for an answer

12 years agowin32: fix accidental rename and compiler warnings
Lars Op den Kamp [Tue, 6 Dec 2011 00:35:49 +0000 (01:35 +0100)] 
win32: fix accidental rename and compiler warnings

12 years agocec: fix device polling
Lars Op den Kamp [Tue, 6 Dec 2011 00:25:28 +0000 (01:25 +0100)] 
cec: fix device polling

12 years agocec: some more cleanups. increase the number of retries for LG devices because they...
Lars Op den Kamp [Mon, 5 Dec 2011 23:26:01 +0000 (00:26 +0100)] 
cec: some more cleanups. increase the number of retries for LG devices because they're spamming the bus

12 years agocec: couple of cleanups. don't refresh the vendorid when not needed. refresh the...
Lars Op den Kamp [Mon, 5 Dec 2011 22:45:44 +0000 (23:45 +0100)] 
cec: couple of cleanups. don't refresh the vendorid when not needed. refresh the power state of devices each minute

12 years agocec: refactor CEC read/write. keep a single lock for all writes, not one per device
Lars Op den Kamp [Mon, 5 Dec 2011 21:59:11 +0000 (22:59 +0100)] 
cec: refactor CEC read/write. keep a single lock for all writes, not one per device

12 years agocec: set the retry timeout to 3 (default)
Lars Op den Kamp [Sun, 4 Dec 2011 23:58:50 +0000 (00:58 +0100)] 
cec: set the retry timeout to 3 (default)

12 years agocec: fix venodor id change. fix physical address change
Lars Op den Kamp [Sun, 4 Dec 2011 23:36:51 +0000 (00:36 +0100)] 
cec: fix venodor id change. fix physical address change

12 years agocec: LG devices always return 'korean' as menu language. set the language for all...
Lars Op den Kamp [Sun, 4 Dec 2011 20:47:41 +0000 (21:47 +0100)] 
cec: LG devices always return 'korean' as menu language. set the language for all LG devices to english

12 years agocec: force update the device status in the background scan thread. only scan once...
Lars Op den Kamp [Sun, 4 Dec 2011 20:26:06 +0000 (21:26 +0100)] 
cec: force update the device status in the background scan thread. only scan once per minute

12 years agocec: be a bit more verbose when initialising
Lars Op den Kamp [Sun, 4 Dec 2011 20:21:57 +0000 (21:21 +0100)] 
cec: be a bit more verbose when initialising

12 years agocec: added some more LG hacks
Lars Op den Kamp [Sun, 4 Dec 2011 19:05:30 +0000 (20:05 +0100)] 
cec: added some more LG hacks

12 years agocec: send the physical address only once. keep a write lock when polling devices
Lars Op den Kamp [Sun, 4 Dec 2011 19:05:03 +0000 (20:05 +0100)] 
cec: send the physical address only once. keep a write lock when polling devices

12 years agocec: send the physical address when starting
Lars Op den Kamp [Sun, 4 Dec 2011 19:04:29 +0000 (20:04 +0100)] 
cec: send the physical address when starting

12 years agocec: don't block when clearing input and no data is received
Lars Op den Kamp [Sun, 4 Dec 2011 19:02:06 +0000 (20:02 +0100)] 
cec: don't block when clearing input and no data is received

12 years agocec: shorter read time
Lars Op den Kamp [Sun, 4 Dec 2011 10:13:04 +0000 (11:13 +0100)] 
cec: shorter read time

12 years agoposix: set the timeout when writing to the serial port
Lars Op den Kamp [Sun, 4 Dec 2011 09:11:13 +0000 (10:11 +0100)] 
posix: set the timeout when writing to the serial port

12 years agocec: don't allow the deck status to be changed when it's set to the special LG status
Lars Op den Kamp [Sun, 4 Dec 2011 02:26:09 +0000 (03:26 +0100)] 
cec: don't allow the deck status to be changed when it's set to the special LG status

12 years agocec: replaced magic numbers in CSLCommandHandler
Lars Op den Kamp [Sun, 4 Dec 2011 02:23:52 +0000 (03:23 +0100)] 
cec: replaced magic numbers in CSLCommandHandler

12 years agocec: fix simplink reconnect
Lars Op den Kamp [Sun, 4 Dec 2011 02:16:57 +0000 (03:16 +0100)] 
cec: fix simplink reconnect

12 years agocec: the OSD name of a TV is always 'TV'
Lars Op den Kamp [Sun, 4 Dec 2011 02:08:52 +0000 (03:08 +0100)] 
cec: the OSD name of a TV is always 'TV'

12 years agocec: increase the transmit timeout for LG devices
Lars Op den Kamp [Sun, 4 Dec 2011 02:08:15 +0000 (03:08 +0100)] 
cec: increase the transmit timeout for LG devices

12 years agocec: send deck status 0x20 when an LG tv is found, so keypresses will be routed to...
Lars Op den Kamp [Sun, 4 Dec 2011 01:55:21 +0000 (02:55 +0100)] 
cec: send deck status 0x20 when an LG tv is found, so keypresses will be routed to libcec

12 years agocec: don't retry polls
Lars Op den Kamp [Sun, 4 Dec 2011 00:31:06 +0000 (01:31 +0100)] 
cec: don't retry polls

12 years agocec: moved SetLineTimeout() to CAdapterCommunication
Lars Op den Kamp [Sun, 4 Dec 2011 00:19:10 +0000 (01:19 +0100)] 
cec: moved SetLineTimeout() to CAdapterCommunication

12 years agocec: set line timeout when (re)transmitting. don't sleep after transmitting
Lars Op den Kamp [Sat, 3 Dec 2011 23:58:32 +0000 (00:58 +0100)] 
cec: set line timeout when (re)transmitting. don't sleep after transmitting

12 years agocec: ignore other data while waiting for a response. only get the vendor id in the...
Lars Op den Kamp [Sat, 3 Dec 2011 23:33:04 +0000 (00:33 +0100)] 
cec: ignore other data while waiting for a response. only get the vendor id in the background scan thread

12 years agocec: fix some logging. only transmit packets once
Lars Op den Kamp [Sat, 3 Dec 2011 23:09:53 +0000 (00:09 +0100)] 
cec: fix some logging. only transmit packets once

12 years agocec: retry failed tranmissions
Lars Op den Kamp [Sat, 3 Dec 2011 21:47:52 +0000 (22:47 +0100)] 
cec: retry failed tranmissions

12 years agocec: send ping and bootloader commands via the output queue
Lars Op den Kamp [Sat, 3 Dec 2011 21:37:15 +0000 (22:37 +0100)] 
cec: send ping and bootloader commands via the output queue

12 years agocec: create the CAdapterCommunication instance in CCECProcessor
Lars Op den Kamp [Sat, 3 Dec 2011 21:32:08 +0000 (22:32 +0100)] 
cec: create the CAdapterCommunication instance in CCECProcessor

12 years agocec: sleep a bit longer while doing a bus scan
Lars Op den Kamp [Fri, 2 Dec 2011 22:12:50 +0000 (23:12 +0100)] 
cec: sleep a bit longer while doing a bus scan

12 years agocec: handle bus scan from LG TVs
Lars Op den Kamp [Fri, 2 Dec 2011 22:11:25 +0000 (23:11 +0100)] 
cec: handle bus scan from LG TVs

12 years agocec: split up the main() method in cec-client
Lars Op den Kamp [Fri, 2 Dec 2011 11:42:38 +0000 (12:42 +0100)] 
cec: split up the main() method in cec-client

12 years agoMerge pull request #7 from og01/master
Lars Op den Kamp [Fri, 2 Dec 2011 10:52:42 +0000 (02:52 -0800)] 
Merge pull request #7 from og01/master

Deck control functions missing from C interface

12 years agocec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter()
Lars Op den Kamp [Fri, 2 Dec 2011 10:19:38 +0000 (11:19 +0100)] 
cec: removed the 10ms extra delay in CAdapterCommunication::SendMessageToAdapter()

12 years agocec: removed unused local variable
Lars Op den Kamp [Fri, 2 Dec 2011 08:31:02 +0000 (09:31 +0100)] 
cec: removed unused local variable

12 years agocec: don't delete a message before it's been sent when starting the bootloader or...
Lars Op den Kamp [Thu, 1 Dec 2011 22:58:30 +0000 (23:58 +0100)] 
cec: don't delete a message before it's been sent when starting the bootloader or when sending a ping. thanks bobo1on1