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
Lars Op den Kamp [Wed, 30 Nov 2011 22:11:08 +0000 (23:11 +0100)]
cec: fix LibCecSharp compilation
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
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()
Lars Op den Kamp [Tue, 29 Nov 2011 21:20:57 +0000 (22:20 +0100)]
cec: added vendor ID for Philips
Lars Op den Kamp [Tue, 29 Nov 2011 20:34:29 +0000 (21:34 +0100)]
cec: handle audio opcodes correctly
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
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
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.
Lars Op den Kamp [Tue, 29 Nov 2011 00:09:37 +0000 (01:09 +0100)]
cec: added vendor id for Yamaha
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
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
Lars Op den Kamp [Mon, 28 Nov 2011 23:06:37 +0000 (00:06 +0100)]
cec: perform the cec bus scan in another thread
Lars Op den Kamp [Mon, 28 Nov 2011 22:55:11 +0000 (23:55 +0100)]
cec: added a few sleeps in the bus scan
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
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
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
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
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()
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
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()
Lars Op den Kamp [Sat, 26 Nov 2011 01:36:19 +0000 (02:36 +0100)]
cec: added bWait parameter to volume change methods.
Lars Op den Kamp [Fri, 25 Nov 2011 17:05:09 +0000 (18:05 +0100)]
cec: cosmetics in cec-client
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()
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
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
Lars Op den Kamp [Fri, 25 Nov 2011 12:20:54 +0000 (13:20 +0100)]
cec: handle image view on and text view on
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
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()
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
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()
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
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()
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().
Lars Op den Kamp [Fri, 25 Nov 2011 10:46:17 +0000 (11:46 +0100)]
cec: don't request updates statusses unless needed
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
Lars Op den Kamp [Fri, 25 Nov 2011 10:19:05 +0000 (11:19 +0100)]
cec: added HandleSystemAudioStatus()
Lars Op den Kamp [Fri, 25 Nov 2011 09:59:54 +0000 (10:59 +0100)]
cec: moved part of the TryLogicalAddress() logic to CCECBusDevice
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
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
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
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
Lars Op den Kamp [Thu, 24 Nov 2011 22:19:33 +0000 (23:19 +0100)]
cec: handle routing information and report physical address opcodes
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
Lars Op den Kamp [Thu, 24 Nov 2011 21:53:58 +0000 (22:53 +0100)]
cec: added vendor id detection for Onkyo
Lars Op den Kamp [Wed, 23 Nov 2011 00:16:52 +0000 (01:16 +0100)]
cec: more of the same. bugzid: 19
Lars Op den Kamp [Tue, 22 Nov 2011 23:50:57 +0000 (00:50 +0100)]
cec: make SetStreamPath() thread safe. bugzid: 19
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
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
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
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
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
Lars Op den Kamp [Sat, 19 Nov 2011 01:18:51 +0000 (02:18 +0100)]
cec: use the correct source address in CSLCommandHandler::HandleVendorCommand()
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
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.
Lars Op den Kamp [Fri, 18 Nov 2011 22:40:40 +0000 (23:40 +0100)]
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
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
ghuron [Thu, 17 Nov 2011 14:58:31 +0000 (18:58 +0400)]
Update src/lib/devices/CECBusDevice.cpp
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
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
Lars Op den Kamp [Tue, 15 Nov 2011 23:01:45 +0000 (00:01 +0100)]
cec: added physical address option to testclient. credits @joshua-nord. closes #3
Lars Op den Kamp [Mon, 14 Nov 2011 23:53:40 +0000 (00:53 +0100)]
cec: missed 1 TODO in LibCecSharp.cpp. copy command parameters in GetNextCommand()
Lars Op den Kamp [Mon, 14 Nov 2011 23:41:29 +0000 (00:41 +0100)]
cosmetics
Lars Op den Kamp [Mon, 14 Nov 2011 23:21:18 +0000 (00:21 +0100)]
cec: renamed enum methods. fixes potential macro collision with isset(). thanks davilla
Lars Op den Kamp [Mon, 14 Nov 2011 20:51:47 +0000 (21:51 +0100)]
cec: added '-s' or '--single-command' to cec-client. starting cec-client with this parameter executes a single command in cec-client and does not power on devices on startup and power them off on exit. this way, you can use cec-client in a shell script. since there's some handshaking involved at startup, this is not very fast. to execute a command and only display the result and any error/warning, execute it with RESULT=`echo command | cec-client -s -d 3` (on linux/osx, win32 batch files are a bit different)
Lars Op den Kamp [Mon, 14 Nov 2011 20:41:40 +0000 (21:41 +0100)]
cec: cosmetics
Lars Op den Kamp [Mon, 14 Nov 2011 20:34:25 +0000 (21:34 +0100)]
win32: removed .suo file
Lars Op den Kamp [Sun, 13 Nov 2011 19:47:14 +0000 (20:47 +0100)]
cec: added a C++ CLR wrapper for libCEC, so libCEC can be used by any .NET language and ported the basics of cec-client over to C#.
Lars Op den Kamp [Sat, 12 Nov 2011 12:38:34 +0000 (13:38 +0100)]
cec: bump version numbers and added changelog for bugfix release 1.2
Lars Op den Kamp [Sat, 12 Nov 2011 11:37:19 +0000 (12:37 +0100)]
cec: fixed typo in
3557c68d1c9f4ce0191163a4ab48b6c5cec68488 and create a 'broadcast/unregistered' bus device too
Lars Op den Kamp [Sat, 12 Nov 2011 11:28:41 +0000 (12:28 +0100)]
cec: pass the deck_control command to libcec listeners
Lars Op den Kamp [Sat, 12 Nov 2011 00:33:15 +0000 (01:33 +0100)]
cec: push_escaped should only accept uint8_t
Lars Op den Kamp [Fri, 11 Nov 2011 22:52:47 +0000 (23:52 +0100)]
cec: check whether the initiator is valid in CCECProcessor::ParseCommand(). fixes possible segfault when parsing invalid data
Lars Op den Kamp [Fri, 11 Nov 2011 22:36:41 +0000 (23:36 +0100)]
cec: updated changelog
Lars Op den Kamp [Fri, 11 Nov 2011 22:35:11 +0000 (23:35 +0100)]
cec: fixed return value in CCECProcessor::SetStreamPath(), which prevented active source and menu state from being sent
Lars Op den Kamp [Fri, 11 Nov 2011 19:55:46 +0000 (20:55 +0100)]
Merge branch 'release'
Lars Op den Kamp [Fri, 11 Nov 2011 17:57:39 +0000 (18:57 +0100)]
cec: updated changelog for new package
Lars Op den Kamp [Fri, 11 Nov 2011 17:56:09 +0000 (18:56 +0100)]
cec: forgot to update the minor version number in the header
Lars Op den Kamp [Fri, 11 Nov 2011 17:15:26 +0000 (18:15 +0100)]
cec: added the last commit to the changelog
Lars Op den Kamp [Fri, 11 Nov 2011 17:05:30 +0000 (18:05 +0100)]
cec: transmit the menu state as (active) when the stream path is set
Lars Op den Kamp [Fri, 11 Nov 2011 16:43:09 +0000 (17:43 +0100)]
cec: updated changelog for v1.1.0
Lars Op den Kamp [Fri, 11 Nov 2011 14:51:12 +0000 (15:51 +0100)]
cec: bump version number to 1.1.0
Lars Op den Kamp [Fri, 11 Nov 2011 13:23:02 +0000 (14:23 +0100)]
cec: start with menu activated or keypresses won't be passed
Lars Op den Kamp [Fri, 11 Nov 2011 12:51:09 +0000 (13:51 +0100)]
cec: added SetMenuState()
Lars Op den Kamp [Fri, 11 Nov 2011 11:13:39 +0000 (12:13 +0100)]
cec: added some more audio related opcode handling. added TransmitVendorId(), but only transmit the id if it's not set to 'unknown'. transmit an abort message when a vendor specific command was received
bobo1on1 [Fri, 11 Nov 2011 01:02:48 +0000 (02:02 +0100)]
removed: comments about default parameters
fixed: iPhysicalAddress was uint16_t in the prototype and uint8_t in the function definition, apart from this being wrong, it also caused cec_init to be linked as a C++ function even though it's inside an extern "C" {} block
Lars Op den Kamp [Fri, 11 Nov 2011 00:45:57 +0000 (01:45 +0100)]
cec: added SetDeckControlMode() and SetDeckInfo(). handle deck related opcodes. probably needs some further tweaking
Lars Op den Kamp [Thu, 10 Nov 2011 23:59:33 +0000 (00:59 +0100)]
cec: fix some C header. still not actually tested this
Lars Op den Kamp [Thu, 10 Nov 2011 23:35:44 +0000 (00:35 +0100)]
cec: and rename them in the methods that use them too...
Lars Op den Kamp [Thu, 10 Nov 2011 23:34:12 +0000 (00:34 +0100)]
cec: renamed the last few enums
Lars Op den Kamp [Thu, 10 Nov 2011 20:35:21 +0000 (21:35 +0100)]
cec: added ToString(cec_version)
Lars Op den Kamp [Thu, 10 Nov 2011 19:42:29 +0000 (20:42 +0100)]
cec: added documentation of the methods in cecloader.h and added 'deprecated' to the old load methods
Lars Op den Kamp [Thu, 10 Nov 2011 19:35:32 +0000 (20:35 +0100)]
win32: removed unneeded afxres.h include in the resource files, which is not present when using studio express. thanks Ghuron
Lars Op den Kamp [Thu, 10 Nov 2011 19:34:34 +0000 (20:34 +0100)]
win32: added win32 version of LibCecInit()
Lars Op den Kamp [Thu, 10 Nov 2011 19:34:16 +0000 (20:34 +0100)]
cec: fixed some int conversions that made the win32 build because it's configured to stop building on compiler warnings
Lars Op den Kamp [Thu, 10 Nov 2011 19:32:41 +0000 (20:32 +0100)]
win32: sync visual studio project files
Lars Op den Kamp [Thu, 10 Nov 2011 17:30:00 +0000 (18:30 +0100)]
cec: only send 'active source' when powered on
Lars Op den Kamp [Thu, 10 Nov 2011 17:30:00 +0000 (18:30 +0100)]
cec: always start in standby mode and let the tv (or other device) send the power on command
Lars Op den Kamp [Thu, 10 Nov 2011 17:30:00 +0000 (18:30 +0100)]
cec: audio systems cannot be an active source, so don't transmit active source message from this device