deb_libcec.git
12 years agocosmetic replace tab by space
Fneufneu [Tue, 28 Feb 2012 07:22:25 +0000 (08:22 +0100)] 
cosmetic replace tab by space

12 years agoInitial FreeBSD support
Fneufneu [Mon, 27 Feb 2012 17:07:37 +0000 (18:07 +0100)] 
Initial FreeBSD support

simply try to use ttyU*

12 years agoplatform: use gettimeofday() on darwin in GetAbsTime(), as it is specified in OS...
Lars Op den Kamp [Mon, 27 Feb 2012 14:32:13 +0000 (15:32 +0100)] 
platform: use gettimeofday() on darwin in GetAbsTime(), as it is specified in OS-X dev guide

12 years agocec: don't send an updated configuration back when initialising. let the client call...
Lars Op den Kamp [Mon, 27 Feb 2012 13:23:36 +0000 (14:23 +0100)] 
cec: don't send an updated configuration back when initialising. let the client call the GetCurrentConfiguration() method. bugzid: 459

12 years agocec: don't send an updated configuration when libCEC hasn't been initialised fully...
Lars Op den Kamp [Mon, 27 Feb 2012 13:15:26 +0000 (14:15 +0100)] 
cec: don't send an updated configuration when libCEC hasn't been initialised fully. bugzid: 459

12 years agocec: don't try to transmit when the processor is being stopped.
Lars Op den Kamp [Mon, 27 Feb 2012 13:09:17 +0000 (14:09 +0100)] 
cec: don't try to transmit when the processor is being stopped.

12 years agocosmetics
Lars Op den Kamp [Sun, 26 Feb 2012 23:51:58 +0000 (00:51 +0100)] 
cosmetics

12 years agocec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED
Lars Op den Kamp [Sun, 26 Feb 2012 23:50:25 +0000 (00:50 +0100)] 
cec: also add commands to unsupported features when receiving CEC_ABORT_REASON_REFUSED

12 years agocec: link to rt. fixes compilation after c4609291c334e2f5f5b87b8dc37e68a958bfb378
Lars Op den Kamp [Sun, 26 Feb 2012 23:44:10 +0000 (00:44 +0100)] 
cec: link to rt. fixes compilation after c4609291c334e2f5f5b87b8dc37e68a958bfb378

12 years agocec: and now correct
Lars Op den Kamp [Sun, 26 Feb 2012 22:41:09 +0000 (23:41 +0100)] 
cec: and now correct

12 years agocec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes message...
Lars Op den Kamp [Sun, 26 Feb 2012 22:38:59 +0000 (23:38 +0100)] 
cec: fixed return value of CUSBCECAdapterCommunication::ParseMessage(). fixes messages not being parsed in certain occasions

12 years agofixed: the timeout value of pthread_cond_timedwait has to be referenced to CLOCK_REALTIME
Bob van Loosen [Sun, 26 Feb 2012 22:16:58 +0000 (23:16 +0100)] 
fixed: the timeout value of pthread_cond_timedwait has to be referenced to CLOCK_REALTIME

12 years agofixed: use CLOCK_MONOTONIC for timing info, since gettimeofday is affected by ntp...
Bob van Loosen [Sun, 26 Feb 2012 22:03:13 +0000 (23:03 +0100)] 
fixed: use CLOCK_MONOTONIC for timing info, since gettimeofday is affected by ntp and by manually adjusting the system time

12 years agocec: added a timeout to StopThread()
Lars Op den Kamp [Sun, 26 Feb 2012 22:17:21 +0000 (23:17 +0100)] 
cec: added a timeout to StopThread()

12 years agocec: don't add data to the input buffer in CUSBCECAdapterCommunication before it...
Lars Op den Kamp [Sun, 26 Feb 2012 21:49:43 +0000 (22:49 +0100)] 
cec: don't add data to the input buffer in CUSBCECAdapterCommunication before it's fully initialised

12 years agocec: lock in SyncedBuffer
Lars Op den Kamp [Sun, 26 Feb 2012 21:28:04 +0000 (22:28 +0100)] 
cec: lock in SyncedBuffer

12 years agocec: fixed invalid forward decl after changing struct into class
Lars Op den Kamp [Sat, 25 Feb 2012 19:34:15 +0000 (20:34 +0100)] 
cec: fixed invalid forward decl after changing struct into class

12 years agoosx compiler was complaining about non-virtual destructors in the interface structs...
Lars Op den Kamp [Sat, 25 Feb 2012 10:16:57 +0000 (11:16 +0100)] 
osx compiler was complaining about non-virtual destructors in the interface structs. fixed

12 years agofixed two more accidental double derefs
Lars Op den Kamp [Sat, 25 Feb 2012 10:07:56 +0000 (11:07 +0100)] 
fixed two more accidental double derefs

12 years agocec: fixed c+p monster - CRLCommandHandler is for Toshiba, not Panasonic
Lars Op den Kamp [Wed, 22 Feb 2012 10:40:16 +0000 (11:40 +0100)] 
cec: fixed c+p monster - CRLCommandHandler is for Toshiba, not Panasonic

12 years agoplatform: fixed accidental double deref. the method parameter already does that....
Lars Op den Kamp [Tue, 21 Feb 2012 12:40:43 +0000 (13:40 +0100)] 
platform: fixed accidental double deref. the method parameter already does that. closes #24

12 years agocec: added Toshiba's vendor id, and set the device ID of the primary device to Toshib...
Lars Op den Kamp [Tue, 21 Feb 2012 12:10:49 +0000 (13:10 +0100)] 
cec: added Toshiba's vendor id, and set the device ID of the primary device to Toshiba's and transmit it when starting

12 years agowin32: moved all the code signing data into support/private
Lars Op den Kamp [Tue, 21 Feb 2012 12:09:54 +0000 (13:09 +0100)] 
win32: moved all the code signing data into support/private

12 years agofixed tabs -> spaces in the changelog
Lars Op den Kamp [Sun, 19 Feb 2012 10:29:39 +0000 (11:29 +0100)] 
fixed tabs -> spaces in the changelog

12 years agocec: also send deck status 0x20 when no active source message has been sent, or keypr...
Lars Op den Kamp [Sun, 19 Feb 2012 01:29:02 +0000 (02:29 +0100)] 
cec: also send deck status 0x20 when no active source message has been sent, or keypresses won't work after a source switch

12 years agocec-config-gui: ask the user whether he wants to try to reconnect when the connection...
Lars Op den Kamp [Sun, 19 Feb 2012 01:16:05 +0000 (02:16 +0100)] 
cec-config-gui: ask the user whether he wants to try to reconnect when the connection failed.

12 years agocec: don't send an updated configuration when the connection failed
Lars Op den Kamp [Sun, 19 Feb 2012 01:18:11 +0000 (02:18 +0100)] 
cec: don't send an updated configuration when the connection failed

12 years agocec-config-gui: make overriding the physical address optional
Lars Op den Kamp [Sun, 19 Feb 2012 00:59:30 +0000 (01:59 +0100)] 
cec-config-gui: make overriding the physical address optional

12 years agoupdated changelog for 1.5.0
Lars Op den Kamp [Sun, 19 Feb 2012 00:32:13 +0000 (01:32 +0100)] 
updated changelog for 1.5.0

12 years agocec: fixed crash when replacing handlers - std::map::clear() already calls the destru...
Lars Op den Kamp [Sat, 18 Feb 2012 11:13:46 +0000 (12:13 +0100)] 
cec: fixed crash when replacing handlers - std::map::clear() already calls the destructors of each item

12 years agowin32: don't install libcec to the system directory by default, and delete previous...
Lars Op den Kamp [Sat, 18 Feb 2012 02:18:03 +0000 (03:18 +0100)] 
win32: don't install libcec to the system directory by default, and delete previous (testing) copies if present

12 years agocec: wait for multiple responses, not just for one. don't try to read and write at...
Lars Op den Kamp [Sat, 18 Feb 2012 01:50:34 +0000 (02:50 +0100)] 
cec: wait for multiple responses, not just for one. don't try to read and write at the same time

12 years agocec: don't keep the mutex locked while opening/closing a connection in CCECProcessor...
Lars Op den Kamp [Fri, 17 Feb 2012 17:36:43 +0000 (18:36 +0100)] 
cec: don't keep the mutex locked while opening/closing a connection in CCECProcessor now that the communication thread executes commands directly instead of via a buffer. fixes lockup on exit when data is being received

12 years agocec: fixed compilation warning on win32 (possibly uninitialised var)
Lars Op den Kamp [Fri, 17 Feb 2012 14:36:18 +0000 (15:36 +0100)] 
cec: fixed compilation warning on win32 (possibly uninitialised var)

12 years agocec: don't transmit in CCECProcessor while keeping the mutex locked. don't set the...
Lars Op den Kamp [Fri, 17 Feb 2012 11:30:23 +0000 (12:30 +0100)] 
cec: don't transmit in CCECProcessor while keeping the mutex locked. don't set the device state to not present when no acked was received, because that can have other causes

12 years agocec: fixed typo in GetStatus()
Lars Op den Kamp [Fri, 17 Feb 2012 10:55:05 +0000 (11:55 +0100)] 
cec: fixed typo in GetStatus()

12 years agocec: process messages that were received async, or all incoming requests will time out
Lars Op den Kamp [Fri, 17 Feb 2012 10:37:20 +0000 (11:37 +0100)] 
cec: process messages that were received async, or all incoming requests will time out

12 years agocec: ensure that the vendor id is requested first when requesting info from a device...
Lars Op den Kamp [Fri, 17 Feb 2012 10:23:12 +0000 (11:23 +0100)] 
cec: ensure that the vendor id is requested first when requesting info from a device, so we are using the correct handler

12 years agocec: cleaned up CCECBusDevice::GetStatus()
Lars Op den Kamp [Fri, 17 Feb 2012 10:14:08 +0000 (11:14 +0100)] 
cec: cleaned up CCECBusDevice::GetStatus()

12 years agocec: LG devices don't respond to CEC version requests (unsupported feature). set...
Lars Op den Kamp [Fri, 17 Feb 2012 09:55:03 +0000 (10:55 +0100)] 
cec: LG devices don't respond to CEC version requests (unsupported feature). set it to 1.3a for all LG devices

12 years agocec: fixed 'unsupported command' marking in CCECBusDevice
Lars Op den Kamp [Fri, 17 Feb 2012 09:53:56 +0000 (10:53 +0100)] 
cec: fixed 'unsupported command' marking in CCECBusDevice

12 years agocec: fixed - directly process commands that have been received, or all the 'request...
Lars Op den Kamp [Fri, 17 Feb 2012 09:53:17 +0000 (10:53 +0100)] 
cec: fixed - directly process commands that have been received, or all the 'request' methods will fail initially

12 years agotabs -> spaces
Lars Op den Kamp [Fri, 17 Feb 2012 01:59:46 +0000 (02:59 +0100)] 
tabs -> spaces

12 years agoplatform: fixed return value from CCondition::Wait()
Lars Op den Kamp [Fri, 17 Feb 2012 01:58:48 +0000 (02:58 +0100)] 
platform: fixed return value from CCondition::Wait()

12 years agocec-config-gui: fixed typo that saved the incorrect base device setting
Lars Op den Kamp [Thu, 16 Feb 2012 19:28:08 +0000 (20:28 +0100)] 
cec-config-gui: fixed typo that saved the incorrect base device setting

12 years agocec: bump version numbers to 1.5, to prepare for the new release
Lars Op den Kamp [Thu, 16 Feb 2012 18:48:02 +0000 (19:48 +0100)] 
cec: bump version numbers to 1.5, to prepare for the new release

12 years agocec: restore the order in the headers
Lars Op den Kamp [Thu, 16 Feb 2012 13:54:21 +0000 (14:54 +0100)] 
cec: restore the order in the headers

12 years agocec: added RescanDevices()/cec_rescan_devices() to the interface, to let libCEC force...
Lars Op den Kamp [Thu, 16 Feb 2012 13:11:09 +0000 (14:11 +0100)] 
cec: added RescanDevices()/cec_rescan_devices() to the interface, to let libCEC force polls to all logical addresses. deprecated GetLibVersion() methods, and added the server version to libcec_configuration. added missing libcec_configuration conversions in LibCecSharp.

12 years agoinstaller: reuse the previous driver installer if it's found
Lars Op den Kamp [Thu, 16 Feb 2012 11:12:42 +0000 (12:12 +0100)] 
installer: reuse the previous driver installer if it's found

12 years agocec: check whether the port is open, not whether libCEC is initialised in Transmit()
Lars Op den Kamp [Thu, 16 Feb 2012 09:57:26 +0000 (10:57 +0100)] 
cec: check whether the port is open, not whether libCEC is initialised in Transmit()

12 years agocec: ensure that the ackmask is always set to 0 when closing the connection and that...
Lars Op den Kamp [Thu, 16 Feb 2012 09:44:27 +0000 (10:44 +0100)] 
cec: ensure that the ackmask is always set to 0 when closing the connection and that the call doesn't block the Close() call

12 years agocec-config-gui: make the progress bar invisible when done. disable the physical addre...
Lars Op den Kamp [Thu, 16 Feb 2012 09:08:13 +0000 (10:08 +0100)] 
cec-config-gui: make the progress bar invisible when done. disable the physical address/hdmi port settings when the address is autodetected.

12 years agocec: moved the autodetect address api call to libcec_configuration. only send power...
Lars Op den Kamp [Thu, 16 Feb 2012 09:07:23 +0000 (10:07 +0100)] 
cec: moved the autodetect address api call to libcec_configuration. only send power up commands to non-tv devices when the power state is not on/transition->on. let players call the power up/power down command.

12 years agocec: removed unneeded client version from the CCECProcessor constructor
Lars Op den Kamp [Thu, 16 Feb 2012 01:13:40 +0000 (02:13 +0100)] 
cec: removed unneeded client version from the CCECProcessor constructor

12 years agocec-config-gui: added implementations for "wake devices" and "standby devices"
Lars Op den Kamp [Thu, 16 Feb 2012 00:59:44 +0000 (01:59 +0100)] 
cec-config-gui: added implementations for "wake devices" and "standby devices"

12 years agoLibCecSharp: pass correctly formatted logical address lists
Lars Op den Kamp [Thu, 16 Feb 2012 00:59:06 +0000 (01:59 +0100)] 
LibCecSharp: pass correctly formatted logical address lists

12 years agocec: fix active source switches for the standard CEC implementation. added some log...
Lars Op den Kamp [Thu, 16 Feb 2012 00:58:29 +0000 (01:58 +0100)] 
cec: fix active source switches for the standard CEC implementation. added some log messages. ensure that we don't send data to ourself

12 years agocec: don't hold a lock in CCECBusDevice when calling GetStatus()
Lars Op den Kamp [Thu, 16 Feb 2012 00:04:58 +0000 (01:04 +0100)] 
cec: don't hold a lock in CCECBusDevice when calling GetStatus()

12 years agocec-config-gui: added an update button on the device info window
Lars Op den Kamp [Wed, 15 Feb 2012 21:19:55 +0000 (22:19 +0100)] 
cec-config-gui: added an update button on the device info window

12 years agocec-config-gui: open the connection in the background thread
Lars Op den Kamp [Wed, 15 Feb 2012 19:51:18 +0000 (20:51 +0100)] 
cec-config-gui: open the connection in the background thread

12 years agocec-config-gui: no longer showing modal device info windows
Lars Op den Kamp [Wed, 15 Feb 2012 19:27:05 +0000 (20:27 +0100)] 
cec-config-gui: no longer showing modal device info windows

12 years agocec-config-gui: don't update the log window all the time when it's not the selected tab
Lars Op den Kamp [Wed, 15 Feb 2012 18:39:40 +0000 (19:39 +0100)] 
cec-config-gui: don't update the log window all the time when it's not the selected tab

12 years agocec: added GetPortName() to CUSBCECAdapterCommunication
Lars Op den Kamp [Wed, 15 Feb 2012 18:38:14 +0000 (19:38 +0100)] 
cec: added GetPortName() to CUSBCECAdapterCommunication

12 years agocec: don't lock the mutex when checking for the poll status of a device. this is...
Lars Op den Kamp [Wed, 15 Feb 2012 18:37:41 +0000 (19:37 +0100)] 
cec: don't lock the mutex when checking for the poll status of a device. this is always called from the same thread

12 years agocec: don't do a full reinit when not needed
Lars Op den Kamp [Wed, 15 Feb 2012 18:37:01 +0000 (19:37 +0100)] 
cec: don't do a full reinit when not needed

12 years agoLibCecSharp: delete the internal callback struct when closing the connection
Lars Op den Kamp [Wed, 15 Feb 2012 16:29:36 +0000 (17:29 +0100)] 
LibCecSharp: delete the internal callback struct when closing the connection

12 years agocec-config-gui: cosmetics
Lars Op den Kamp [Wed, 15 Feb 2012 16:28:59 +0000 (17:28 +0100)] 
cec-config-gui: cosmetics

12 years agocec-config-gui: read/write the vendor id override setting
Lars Op den Kamp [Wed, 15 Feb 2012 15:27:06 +0000 (16:27 +0100)] 
cec-config-gui: read/write the vendor id override setting

12 years agocec-config-gui: added the new parameters. cleanup round.
Lars Op den Kamp [Wed, 15 Feb 2012 15:02:26 +0000 (16:02 +0100)] 
cec-config-gui: added the new parameters. cleanup round.

12 years agoLibCecSharp: added the new parameters
Lars Op den Kamp [Wed, 15 Feb 2012 15:01:35 +0000 (16:01 +0100)] 
LibCecSharp: added the new parameters

12 years agocec: added poweroff devices parameter to the config (instead of a boolean parameter...
Lars Op den Kamp [Wed, 15 Feb 2012 15:00:56 +0000 (16:00 +0100)] 
cec: added poweroff devices parameter to the config (instead of a boolean parameter). changed the power on parameter into activate source.

12 years agocec: added a callback that is called when libCEC's configuration changed.
Lars Op den Kamp [Wed, 15 Feb 2012 12:07:28 +0000 (13:07 +0100)] 
cec: added a callback that is called when libCEC's configuration changed.

12 years agocec: don't reset the "adapter message sent" event
Lars Op den Kamp [Wed, 15 Feb 2012 10:00:33 +0000 (11:00 +0100)] 
cec: don't reset the "adapter message sent" event

12 years agocec: transmit a keypress and key release as power on command when the target device...
Lars Op den Kamp [Wed, 15 Feb 2012 01:55:06 +0000 (02:55 +0100)] 
cec: transmit a keypress and key release as power on command when the target device isn't the TV

12 years agocec-config-gui: updated labels, added 'not implemented' warning for the button config...
Lars Op den Kamp [Wed, 15 Feb 2012 01:48:39 +0000 (02:48 +0100)] 
cec-config-gui: updated labels, added 'not implemented' warning for the button config, leave unimplemented inputs disabled

12 years agocec-config-gui: added some basic test commands and device information
Lars Op den Kamp [Tue, 14 Feb 2012 19:06:04 +0000 (20:06 +0100)] 
cec-config-gui: added some basic test commands and device information

12 years agocec: return the anynet return keycode directly instead of translating it to 'return...
Lars Op den Kamp [Tue, 14 Feb 2012 16:56:48 +0000 (17:56 +0100)] 
cec: return the anynet return keycode directly instead of translating it to 'return' for v1.5.0+ clients

12 years agocec: added SetConfiguration()/cec_set_configuration() to the interface
Lars Op den Kamp [Tue, 14 Feb 2012 16:33:00 +0000 (17:33 +0100)] 
cec: added SetConfiguration()/cec_set_configuration() to the interface

12 years agoLibCecSharp: set the callback methods in libcec to NULL before closing the connection...
Lars Op den Kamp [Tue, 14 Feb 2012 14:44:50 +0000 (15:44 +0100)] 
LibCecSharp: set the callback methods in libcec to NULL before closing the connection, since these might already have been destroyed in .NET

12 years agocec: ensure that there always is at least one device type set
Lars Op den Kamp [Tue, 14 Feb 2012 14:40:28 +0000 (15:40 +0100)] 
cec: ensure that there always is at least one device type set

12 years agocec-config-gui: read the configuration before initialising libCEC
Lars Op den Kamp [Tue, 14 Feb 2012 13:42:24 +0000 (14:42 +0100)] 
cec-config-gui: read the configuration before initialising libCEC

12 years agocec-config-gui: added a button configuration panel. currently only shows all cec...
Lars Op den Kamp [Tue, 14 Feb 2012 13:20:16 +0000 (14:20 +0100)] 
cec-config-gui: added a button configuration panel. currently only shows all cec keys and select the correct row when a key is pressed

12 years agocec-config-gui: added log level configuration and a 'save' and 'clear' button for...
Lars Op den Kamp [Tue, 14 Feb 2012 11:42:13 +0000 (12:42 +0100)] 
cec-config-gui: added log level configuration and a 'save' and 'clear' button for the log

12 years agocec-config-gui: don't enable the 'connected device' selection when there's only one...
Lars Op den Kamp [Tue, 14 Feb 2012 11:01:53 +0000 (12:01 +0100)] 
cec-config-gui: don't enable the 'connected device' selection when there's only one device

12 years agoplatform: added CCondition::Wait() without a timeout for windows. fixes compilation...
Lars Op den Kamp [Tue, 14 Feb 2012 10:39:56 +0000 (11:39 +0100)] 
platform: added CCondition::Wait() without a timeout for windows. fixes compilation on windows

12 years agoplatform: let CTimeout return uint32_t instead of uint64_t. fixes compilation warning
Lars Op den Kamp [Tue, 14 Feb 2012 10:39:20 +0000 (11:39 +0100)] 
platform: let CTimeout return uint32_t instead of uint64_t. fixes compilation warning

12 years agocec: add an option to wake multiple devices via the initial configuration
Lars Op den Kamp [Tue, 14 Feb 2012 01:14:50 +0000 (02:14 +0100)] 
cec: add an option to wake multiple devices via the initial configuration

12 years agocec: allow to override the TV vendor id via the initial configuration
Lars Op den Kamp [Tue, 14 Feb 2012 01:09:49 +0000 (02:09 +0100)] 
cec: allow to override the TV vendor id via the initial configuration

12 years agocec-config: always set the hdmi port number and device, or v1.4- clients won't work...
Lars Op den Kamp [Tue, 14 Feb 2012 01:04:59 +0000 (02:04 +0100)] 
cec-config: always set the hdmi port number and device, or v1.4- clients won't work properly

12 years agocec: send power state 'standby->on' before 'on' for SL
Lars Op den Kamp [Tue, 14 Feb 2012 00:43:03 +0000 (01:43 +0100)] 
cec: send power state 'standby->on' before 'on' for SL

12 years agocec: cleanups in ActivateSource() and CSLCommandHandler
Lars Op den Kamp [Mon, 13 Feb 2012 23:29:26 +0000 (00:29 +0100)] 
cec: cleanups in ActivateSource() and CSLCommandHandler

12 years agocec: fix the initial hdmi port setting
Lars Op den Kamp [Mon, 13 Feb 2012 19:45:35 +0000 (20:45 +0100)] 
cec: fix the initial hdmi port setting

12 years agocec: fix SL reconnect when the source has been switched before standby
Lars Op den Kamp [Mon, 13 Feb 2012 19:40:47 +0000 (20:40 +0100)] 
cec: fix SL reconnect when the source has been switched before standby

12 years agocec: also send 'image view on' before setting the active source
Lars Op den Kamp [Mon, 13 Feb 2012 19:21:20 +0000 (20:21 +0100)] 
cec: also send 'image view on' before setting the active source

12 years agocec: added defines for SL vendor command 02
Lars Op den Kamp [Mon, 13 Feb 2012 18:16:56 +0000 (19:16 +0100)] 
cec: added defines for SL vendor command 02

12 years agocec: don't send power on, acitve source and standby commands by default in cec-client
Lars Op den Kamp [Mon, 13 Feb 2012 17:42:18 +0000 (18:42 +0100)] 
cec: don't send power on, acitve source and standby commands by default in cec-client

12 years agocec: implemented power up for LG devices other than a TV
Lars Op den Kamp [Mon, 13 Feb 2012 17:07:24 +0000 (18:07 +0100)] 
cec: implemented power up for LG devices other than a TV

12 years agocec: poll the next device when the current is handled by libCEC. check the vendor...
Lars Op den Kamp [Mon, 13 Feb 2012 17:06:49 +0000 (18:06 +0100)] 
cec: poll the next device when the current is handled by libCEC. check the vendor id of a device before sending a power on command

12 years agocec: just send the vendor id in InitHandler()
Lars Op den Kamp [Mon, 13 Feb 2012 16:19:06 +0000 (17:19 +0100)] 
cec: just send the vendor id in InitHandler()

12 years agocec: replace the handler for the primary device directly after setting the type to LG
Lars Op den Kamp [Mon, 13 Feb 2012 13:44:42 +0000 (14:44 +0100)] 
cec: replace the handler for the primary device directly after setting the type to LG