SpeechDriverFactory::SpeechDriverFactory() { ALOGV("%s()", __FUNCTION__); mSpeechDriver1 = NULL; mSpeechDriver2 = NULL; mSpeechDriverExternal = NULL; #ifdef defined (__MTK_ENABLE_MD1__) mActiveModemIndex = MODEM_1; // default use modem 1 #elif defined (__MTK_ENABLE_MD2__) mActiveModemIndex = MODEM_2; // if modem 1 not enabled, default use modem 2 #elif defined (__MTK_ENABLE_MD5__) mActiveModemIndex = MODEM_EXTERNAL; // if modem 1 not enabled, default use modem 2 #elif defined(EVDO_DT_VEND_SUPPORT) mActiveModemIndex = MODEM_EXTERNAL; // if modem vend evdo,default use modem external #elif defined(MTK_C2K_SUPPORT) mActiveModemIndex = MODEM_EXTERNAL; // if modem evdo(c2k),default use modem external #else ALOGW("mActiveModemIndex default use modem 1 !!"); mActiveModemIndex = MODEM_1; // default use modem 1 #endif CreateSpeechDriverInstances(); ALOGD("-%s(), mActiveModemIndex = %d", __FUNCTION__, mActiveModemIndex); }
SpeechDriverFactory::SpeechDriverFactory() { mSpeechDriver1 = NULL; mSpeechDriver2 = NULL; #if defined(MTK_ENABLE_MD1) mActiveModemIndex = MODEM_1; // default use modem 1 #elif defined(MTK_ENABLE_MD2) mActiveModemIndex = MODEM_2; // if modem 1 not enabled, default use modem 2 #else ALOGE("Somebody forgot to define MTK_ENABLE_MD1/MTK_ENABLE_MD2 for this project"); mActiveModemIndex = MODEM_1; // default use modem 1 #endif CreateSpeechDriverInstances(); }