From 5f26192fab3d567f6481ed1f7fab3a9932f573ae Mon Sep 17 00:00:00 2001 From: LX3JL Date: Mon, 7 May 2018 09:24:23 +0200 Subject: [PATCH] amber 1.3.1 added compatibility with DVMEGAs --- ambed/cftdidevicedescr.cpp | 16 ++++++++++++++-- ambed/main.h | 2 +- ambed/readme | 4 +++- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/ambed/cftdidevicedescr.cpp b/ambed/cftdidevicedescr.cpp index 6b68821..90aaa4d 100644 --- a/ambed/cftdidevicedescr.cpp +++ b/ambed/cftdidevicedescr.cpp @@ -72,6 +72,7 @@ int CFtdiDeviceDescr::CreateInterface(CFtdiDeviceDescr *descr, std::vectorGetDescription(), "USB-3003") == 0) || // DVSI's USB-3003 (::strcmp(descr->GetDescription(), "DF2ET-3003") == 0) || // DF2ET's USB-3003 opensource device + (::strcmp(descr->GetDescription(), "DVstick-33") == 0) || // DVMEGA USB-3003 device (::strcmp(descr->GetDescription(), "ThumbDV-3") == 0) ) // ThumbDV-3 { iNbChs = CreateUsb3003(descr, channels); @@ -136,14 +137,16 @@ int CFtdiDeviceDescr::GetNbChannels(void) const int iNbChs = 0; // single channel devices - if ( (::strcmp(m_szDescription, "USB-3000") == 0) || // DVSI's USB-3000 - (::strcmp(m_szDescription, "ThumbDV") == 0) ) // ThumbDV + if ( (::strcmp(m_szDescription, "USB-3000") == 0) || // DVSI's USB-3000 + (::strcmp(m_szDescription, "DVstick-30") == 0) || // DVMEGA AMBE3000 device + (::strcmp(m_szDescription, "ThumbDV") == 0) ) // ThumbDV { iNbChs = 1; } // three channels devices else if ( (::strcmp(m_szDescription, "USB-3003") == 0) || // DVSI's USB-3003 (::strcmp(m_szDescription, "DF2ET-3003") == 0) || // DF2ET's USB-3003 opensource device + (::strcmp(m_szDescription, "DVstick-33") == 0) || // DVMEGA AMBE 3003 device (::strcmp(m_szDescription, "ThumbDV-3") == 0) ) // ThumbDV-3 { iNbChs = 3; @@ -330,6 +333,7 @@ int CFtdiDeviceDescr::CreateUsb3006(CFtdiDeviceDescr *descr, std::vectorGetVid(), descr->GetPid(), descr->GetDescription(), descr->GetSerialNumber()); } + else if ( (::strcmp(descr->GetDescription(), "DVstick-33") == 0) ) // DVMEGA AMBE3003 device + { + // specific fardware reset, 921600 bps + Usb3003 = new CUsb3003DF2ETInterface + (descr->GetVid(), descr->GetPid(), descr->GetDescription(), descr->GetSerialNumber()); + } + // done return Usb3003; } @@ -547,6 +558,7 @@ CUsb3000Interface *CFtdiDeviceDescr::InstantiateUsb3000(CFtdiDeviceDescr *descr) // intstantiate the proper version of USB-3000 if ( (::strcmp(descr->GetDescription(), "USB-3000") == 0) || // DVSI's USB-3000 + (::strcmp(descr->GetDescription(), "DVstick-30")== 0) || // DVMEGA AMBE3000 device (::strcmp(descr->GetDescription(), "ThumbDV") == 0) ) // ThumbDV { Usb3000 = new CUsb3000Interface diff --git a/ambed/main.h b/ambed/main.h index 3c7bd19..689d43c 100644 --- a/ambed/main.h +++ b/ambed/main.h @@ -49,7 +49,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 3 -#define VERSION_REVISION 0 +#define VERSION_REVISION 1 // global ------------------------------------------------------ diff --git a/ambed/readme b/ambed/readme index 4224cca..52305d4 100644 --- a/ambed/readme +++ b/ambed/readme @@ -22,7 +22,7 @@ // along with Foobar. If not, see . // ---------------------------------------------------------------------------- -VERSION: 1.3.0 +VERSION: 1.3.1 Hardware compatibility. ====================== @@ -34,6 +34,8 @@ This version of ambed is compatible with: - DVSI's USB-3012 device - NWDR's ThumbDV device - NWDR's ThumbDV-3 device +- DVMEGA AMBE3000 device +- DVMEGA AMBE3003 device Available transcoding channels per device: