deb_libcec.git
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

12 years agocec: added a hook in libcec for physical address autodetection
Lars Op den Kamp [Thu, 1 Dec 2011 18:56:00 +0000 (19:56 +0100)] 
cec: added a hook in libcec for physical address autodetection

12 years agocec: fix LibCecSharp compilation
Lars Op den Kamp [Wed, 30 Nov 2011 22:11:08 +0000 (23:11 +0100)] 
cec: fix LibCecSharp compilation

12 years agocec: fixed possible segfault when switching the command handler after a vendor id...
Lars Op den Kamp [Wed, 30 Nov 2011 19:35:30 +0000 (20:35 +0100)] 
cec: fixed possible segfault when switching the command handler after a vendor id changed

12 years agocec: specify the device on which the HDMI port will be selected in SetHDMIPort()
Lars Op den Kamp [Wed, 30 Nov 2011 18:12:32 +0000 (19:12 +0100)] 
cec: specify the device on which the HDMI port will be selected in SetHDMIPort()

12 years agocec: added vendor ID for Philips
Lars Op den Kamp [Tue, 29 Nov 2011 21:20:57 +0000 (22:20 +0100)] 
cec: added vendor ID for Philips

12 years agocec: handle audio opcodes correctly
Lars Op den Kamp [Tue, 29 Nov 2011 20:34:29 +0000 (21:34 +0100)] 
cec: handle audio opcodes correctly

12 years agocec: don't send out system audio mode statuses when we're not an audio device
Lars Op den Kamp [Tue, 29 Nov 2011 00:58:53 +0000 (01:58 +0100)] 
cec: don't send out system audio mode statuses when we're not an audio device

12 years agocec: make sure that a device is really powered on
Lars Op den Kamp [Tue, 29 Nov 2011 00:55:09 +0000 (01:55 +0100)] 
cec: make sure that a device is really powered on

12 years agocec: added 'scan' command to cec-client, that displays info about devices on the...
Lars Op den Kamp [Tue, 29 Nov 2011 00:41:55 +0000 (01:41 +0100)] 
cec: added 'scan' command to cec-client, that displays info about devices on the bus. made all ToString() methods available on the interface.

12 years agocec: added vendor id for Yamaha
Lars Op den Kamp [Tue, 29 Nov 2011 00:09:37 +0000 (01:09 +0100)] 
cec: added vendor id for Yamaha

12 years agocec: don't refresh the physical address in the poll thread
Lars Op den Kamp [Mon, 28 Nov 2011 23:39:24 +0000 (00:39 +0100)] 
cec: don't refresh the physical address in the poll thread

12 years agocec: keep a separate write and read lock in CCECBusDevice
Lars Op den Kamp [Mon, 28 Nov 2011 23:31:41 +0000 (00:31 +0100)] 
cec: keep a separate write and read lock in CCECBusDevice

12 years agocec: perform the cec bus scan in another thread
Lars Op den Kamp [Mon, 28 Nov 2011 23:06:37 +0000 (00:06 +0100)] 
cec: perform the cec bus scan in another thread

12 years agocec: added a few sleeps in the bus scan
Lars Op den Kamp [Mon, 28 Nov 2011 22:55:11 +0000 (23:55 +0100)] 
cec: added a few sleeps in the bus scan

12 years agocec: forgot to rename a call in the previous commit
Lars Op den Kamp [Mon, 28 Nov 2011 20:33:29 +0000 (21:33 +0100)] 
cec: forgot to rename a call in the previous commit

12 years agocec: inactive source should be directly addressed at the TV
Lars Op den Kamp [Mon, 28 Nov 2011 20:32:26 +0000 (21:32 +0100)] 
cec: inactive source should be directly addressed at the TV

12 years agocec: only poll devices that need to be polled. fix libcec initialisation
Lars Op den Kamp [Mon, 28 Nov 2011 17:47:19 +0000 (18:47 +0100)] 
cec: only poll devices that need to be polled. fix libcec initialisation

12 years agocec: new libCEC methods added to LibCecSharp. fixed some compiler warnings
Lars Op den Kamp [Mon, 28 Nov 2011 12:05:57 +0000 (13:05 +0100)] 
cec: new libCEC methods added to LibCecSharp. fixed some compiler warnings

13 years agocec: added GetOSDName()/cec_get_osd_name(). only request the values we need in CCECPr...
Lars Op den Kamp [Mon, 28 Nov 2011 00:27:49 +0000 (01:27 +0100)] 
cec: added GetOSDName()/cec_get_osd_name(). only request the values we need in CCECProcessor::ScanCECBus()

13 years agocec: scan the CEC bus for devices when starting libcec
Lars Op den Kamp [Mon, 28 Nov 2011 00:05:04 +0000 (01:05 +0100)] 
cec: scan the CEC bus for devices when starting libcec

13 years agocec: added SendKeypress()/cec_send_keypress() and SendKeyRelease()/cec_send_key_release()
Lars Op den Kamp [Sun, 27 Nov 2011 23:03:35 +0000 (00:03 +0100)] 
cec: added SendKeypress()/cec_send_keypress() and SendKeyRelease()/cec_send_key_release()

13 years agoMissing C Functions
Paul Grove [Sat, 26 Nov 2011 14:23:20 +0000 (14:23 +0000)] 
Missing C Functions

13 years agocec: added bWait parameter to volume change methods.
Lars Op den Kamp [Sat, 26 Nov 2011 01:36:19 +0000 (02:36 +0100)] 
cec: added bWait parameter to volume change methods.

13 years agocec: cosmetics in cec-client
Lars Op den Kamp [Fri, 25 Nov 2011 17:05:09 +0000 (18:05 +0100)] 
cec: cosmetics in cec-client

13 years agocec: added VolumeUp()/cec_volume_up(), VolumeDown()/cec_volume_down(), MuteAudio...
Lars Op den Kamp [Fri, 25 Nov 2011 16:43:23 +0000 (17:43 +0100)] 
cec: added VolumeUp()/cec_volume_up(), VolumeDown()/cec_volume_down(), MuteAudio()/cec_mute_audio()

13 years agocec: added SetHDMIPort()/cec_set_hdmi_port(). devices are now detected on load and...
Lars Op den Kamp [Fri, 25 Nov 2011 15:58:15 +0000 (16:58 +0100)] 
cec: added SetHDMIPort()/cec_set_hdmi_port(). devices are now detected on load and when a device with the same physical address is detected, libcec will use the selected hdmi port on that device. should fix source selection on other devices, like an amplifier

13 years agocec: fixed - don't report a changed physical address when it hasn't changed
Lars Op den Kamp [Fri, 25 Nov 2011 12:23:22 +0000 (13:23 +0100)] 
cec: fixed - don't report a changed physical address when it hasn't changed

13 years agocec: handle image view on and text view on
Lars Op den Kamp [Fri, 25 Nov 2011 12:20:54 +0000 (13:20 +0100)] 
cec: handle image view on and text view on

13 years agocec: fixed - routing information sets the stream path, not the physical address
Lars Op den Kamp [Fri, 25 Nov 2011 12:09:17 +0000 (13:09 +0100)] 
cec: fixed - routing information sets the stream path, not the physical address

13 years agocec: don't scan the whole bus in CCECProcessor::IsActiveDeviceType()
Lars Op den Kamp [Fri, 25 Nov 2011 11:48:26 +0000 (12:48 +0100)] 
cec: don't scan the whole bus in CCECProcessor::IsActiveDeviceType()

13 years agocec: fixed - don't request the vendor id from devices that are handled by libcec
Lars Op den Kamp [Fri, 25 Nov 2011 11:45:04 +0000 (12:45 +0100)] 
cec: fixed - don't request the vendor id from devices that are handled by libcec

13 years agocec: update m_iLastActive if a poll was acked in CCECBusDevice::TransmitPoll()
Lars Op den Kamp [Fri, 25 Nov 2011 11:43:16 +0000 (12:43 +0100)] 
cec: update m_iLastActive if a poll was acked in CCECBusDevice::TransmitPoll()

13 years agocec: mark device status as present when a command was received from a device
Lars Op den Kamp [Fri, 25 Nov 2011 11:40:03 +0000 (12:40 +0100)] 
cec: mark device status as present when a command was received from a device

13 years agocec: always send a power on command in CCECBusDevice::PowerOn()
Lars Op den Kamp [Fri, 25 Nov 2011 11:37:12 +0000 (12:37 +0100)] 
cec: always send a power on command in CCECBusDevice::PowerOn()

13 years agocec: added GetActiveDevices()/cec_get_active_devices(), IsActiveDevice()/cec_is_activ...
Lars Op den Kamp [Fri, 25 Nov 2011 11:32:28 +0000 (12:32 +0100)] 
cec: added GetActiveDevices()/cec_get_active_devices(), IsActiveDevice()/cec_is_active_device(), IsActiveDeviceType()/cec_is_active_device_type().

13 years agocec: don't request updates statusses unless needed
Lars Op den Kamp [Fri, 25 Nov 2011 10:46:17 +0000 (11:46 +0100)] 
cec: don't request updates statusses unless needed

13 years agocec: return own devices first in GetDeviceByPhysicalAddress(). use the same physical...
Lars Op den Kamp [Fri, 25 Nov 2011 10:29:53 +0000 (11:29 +0100)] 
cec: return own devices first in GetDeviceByPhysicalAddress(). use the same physical address for all devices that are handled by libcec

13 years agocec: added HandleSystemAudioStatus()
Lars Op den Kamp [Fri, 25 Nov 2011 10:19:05 +0000 (11:19 +0100)] 
cec: added HandleSystemAudioStatus()

13 years agocec: moved part of the TryLogicalAddress() logic to CCECBusDevice
Lars Op den Kamp [Fri, 25 Nov 2011 09:59:54 +0000 (10:59 +0100)] 
cec: moved part of the TryLogicalAddress() logic to CCECBusDevice

13 years agocec: store the status of a bus device: present, not present or handled by libcec
Lars Op den Kamp [Fri, 25 Nov 2011 09:34:07 +0000 (10:34 +0100)] 
cec: store the status of a bus device: present, not present or handled by libcec

13 years agocec: changed - pass all commands that are directed at libcec to listeners. handle...
Lars Op den Kamp [Fri, 25 Nov 2011 00:11:53 +0000 (01:11 +0100)] 
cec: changed - pass all commands that are directed at libcec to listeners. handle report audio state and set osd name

13 years agocec: fixed - report physical address sends 3 parameters, not 2. check whether the...
Lars Op den Kamp [Thu, 24 Nov 2011 22:34:44 +0000 (23:34 +0100)] 
cec: fixed - report physical address sends 3 parameters, not 2. check whether the device type is correct

13 years agocec: devices can send vendor commands from other vendors, so don't assume the device...
Lars Op den Kamp [Thu, 24 Nov 2011 22:29:49 +0000 (23:29 +0100)] 
cec: devices can send vendor commands from other vendors, so don't assume the device is of a certain vendor when it sends commands with a vendor id

13 years agocec: handle routing information and report physical address opcodes
Lars Op den Kamp [Thu, 24 Nov 2011 22:19:33 +0000 (23:19 +0100)] 
cec: handle routing information and report physical address opcodes

13 years agocec: merge the two switches in CCECCommandHandler::HandleCommand() into one
Lars Op den Kamp [Thu, 24 Nov 2011 22:17:14 +0000 (23:17 +0100)] 
cec: merge the two switches in CCECCommandHandler::HandleCommand() into one

13 years agocec: added vendor id detection for Onkyo
Lars Op den Kamp [Thu, 24 Nov 2011 21:53:58 +0000 (22:53 +0100)] 
cec: added vendor id detection for Onkyo

13 years agocec: more of the same. bugzid: 19
Lars Op den Kamp [Wed, 23 Nov 2011 00:16:52 +0000 (01:16 +0100)] 
cec: more of the same. bugzid: 19

13 years agocec: make SetStreamPath() thread safe. bugzid: 19
Lars Op den Kamp [Tue, 22 Nov 2011 23:50:57 +0000 (00:50 +0100)] 
cec: make SetStreamPath() thread safe. bugzid: 19

13 years agocec: fixed - clear any previous input when opening a connection to the adapter. bugzi...
Lars Op den Kamp [Tue, 22 Nov 2011 19:16:01 +0000 (20:16 +0100)] 
cec: fixed - clear any previous input when opening a connection to the adapter. bugzid: 54

13 years agocec: a recording device is both a playback device and a tuner
Lars Op den Kamp [Tue, 22 Nov 2011 18:58:51 +0000 (19:58 +0100)] 
cec: a recording device is both a playback device and a tuner

13 years agocec: a recording device inherits all the features of a playback device. changed defau...
Lars Op den Kamp [Tue, 22 Nov 2011 00:28:55 +0000 (01:28 +0100)] 
cec: a recording device inherits all the features of a playback device. changed default type to 'recording device'. this means tv channel related keypresses will be sent now

13 years agocec: pass the menu request command to listeners when it's not handled
Lars Op den Kamp [Mon, 21 Nov 2011 22:36:26 +0000 (23:36 +0100)] 
cec: pass the menu request command to listeners when it's not handled

13 years agocec: fixed SetActiveView(). the correct hdmi port will now be selected again
Lars Op den Kamp [Sun, 20 Nov 2011 23:50:02 +0000 (00:50 +0100)] 
cec: fixed SetActiveView(). the correct hdmi port will now be selected again

13 years agocec: use the correct source address in CSLCommandHandler::HandleVendorCommand()
Lars Op den Kamp [Sat, 19 Nov 2011 01:18:51 +0000 (02:18 +0100)] 
cec: use the correct source address in CSLCommandHandler::HandleVendorCommand()

13 years agocec: send 89:02:05 on 89:01 for SL
Lars Op den Kamp [Sat, 19 Nov 2011 00:36:39 +0000 (01:36 +0100)] 
cec: send 89:02:05 on 89:01 for SL

13 years agowin32: get LibCecSharp.dll directly from the Release dir since it's not copied to...
Lars Op den Kamp [Fri, 18 Nov 2011 23:06:48 +0000 (00:06 +0100)] 
win32: get LibCecSharp.dll directly from the Release dir since it's not copied to the output directory for some reason when creating it from the command line.

13 years agocec: fixed compiler warning after 45de9d9fb1cdefce6ecb53f372a9947480046bba
Lars Op den Kamp [Fri, 18 Nov 2011 22:40:40 +0000 (23:40 +0100)] 
cec: fixed compiler warning after 45de9d9fb1cdefce6ecb53f372a9947480046bba

13 years agoMerge branch 'ghuron/patch-1'. corrected CEC_OPCODE_DEVICE_VENDOR_ID. closes #5
Lars Op den Kamp [Fri, 18 Nov 2011 22:20:30 +0000 (23:20 +0100)] 
Merge branch 'ghuron/patch-1'. corrected CEC_OPCODE_DEVICE_VENDOR_ID. closes #5

13 years agocec: attempt to imitate SL when connected to an LG tv
Lars Op den Kamp [Fri, 18 Nov 2011 22:09:45 +0000 (23:09 +0100)] 
cec: attempt to imitate SL when connected to an LG tv

13 years agoUpdate src/lib/devices/CECBusDevice.cpp
ghuron [Thu, 17 Nov 2011 14:58:31 +0000 (18:58 +0400)] 
Update src/lib/devices/CECBusDevice.cpp

13 years agocec: make add() and clear() camelcased again and re-add the old methods and mark...
Lars Op den Kamp [Tue, 15 Nov 2011 23:54:39 +0000 (00:54 +0100)] 
cec: make add() and clear() camelcased again and re-add the old methods and mark them as deprecated

13 years agocec: rename cec_type_list::Add() and Clear() back to lower case or we'll break XBMC...
Lars Op den Kamp [Tue, 15 Nov 2011 23:37:39 +0000 (00:37 +0100)] 
cec: rename cec_type_list::Add() and Clear() back to lower case or we'll break XBMC compat