repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rpi: don't set the physical address to 1.0.0.0 when receiving VC_HDMI_UNPLUGGED....
[deb_libcec.git]
/
src
/
LibCecTray
/
controller
/
CECController.cs
diff --git
a/src/LibCecTray/controller/CECController.cs
b/src/LibCecTray/controller/CECController.cs
index 13d75201cbdd644a7e63c9834ff87f7488da40fc..c1a6ed32e29c26411121a2686d0e8709d680488a 100644
(file)
--- a/
src/LibCecTray/controller/CECController.cs
+++ b/
src/LibCecTray/controller/CECController.cs
@@
-1,7
+1,7
@@
/*
* This file is part of the libCEC(R) library.
*
/*
* This file is part of the libCEC(R) library.
*
- * libCEC(R) is Copyright (C) 2011-201
2
Pulse-Eight Limited. All rights reserved.
+ * libCEC(R) is Copyright (C) 2011-201
3
Pulse-Eight Limited. All rights reserved.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
* libCEC(R) is an original work, containing original code.
*
* libCEC(R) is a trademark of Pulse-Eight Limited.
@@
-438,7
+438,7
@@
namespace LibCECTray.controller
{
if (_config == null)
{
{
if (_config == null)
{
- _config = new LibCECConfiguration { DeviceName = "CEC Tray", ClientVersion = CecClientVersion.Version2_
0
_0 };
+ _config = new LibCECConfiguration { DeviceName = "CEC Tray", ClientVersion = CecClientVersion.Version2_
1
_0 };
_config.DeviceTypes.Types[0] = CecDeviceType.RecordingDevice;
_config.SetCallbacks(this);
_config.DeviceTypes.Types[0] = CecDeviceType.RecordingDevice;
_config.SetCallbacks(this);
@@
-491,19
+491,22
@@
namespace LibCECTray.controller
}
/// <summary>
}
/// <summary>
- /// Get the usb v
id:prod descriptor
+ /// Get the usb v
endor id
/// </summary>
/// </summary>
- public
string USBDescriptor
+ public
ushort AdapterVendorId
{
{
- get
- {
- DateTime checkDate = new DateTime(1970, 1, 1, 0, 0, 0, 0);
- checkDate = checkDate.AddSeconds(0x5045dbf5);
+ get { return Lib.GetAdapterVendorId(); }
+ }
- return string.Format("2548:100{0}", ((DateTime)Config.FirmwareBuildDate >= checkDate ? "2" : "1"));
- }
+ /// <summary>
+ /// Get the usb product id
+ /// </summary>
+ public ushort AdapterProductId
+ {
+ get { return Lib.GetAdapterProductId(); }
}
}
+
/// <summary>
/// libCEC
/// </summary>
/// <summary>
/// libCEC
/// </summary>