mt6735 digital mic,免提模式如何使用副mic通话
时间:10-02
整理:3721RD
点击:
[DESCRIPTION]
analog MIC,请参考[FAQ08826] [Audio Speech]双mic项目,免提模式如何使用副mic通话digital mic,请参考如下solution.
[SOLUTION]
需要在SpeechPhoneCallController::SetModemSpeechInterConnection()
case AudioDigitalType::I2S_IN_ADC:中颠倒interconnection,即
//mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I03, modem_pcm_tx_lch);
//mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I04, modem_pcm_tx_rch);
// Set InterConnection
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I03, AudioDigitalType::O16);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I04, AudioDigitalType::O15);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I12, modem_pcm_tx_lch);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I13, modem_pcm_tx_rch);
// Set HW_GAIN2
const AudioMEMIFAttribute::SAMPLINGRATE mem_sample_rate = mAudioDigitalInstance-
>SampleRateTransform(16000);
mAudioDigitalInstance->SetHwDigitalGainMode(AudioDigitalType::HW_DIGITAL_GAIN2, mem_sample_rate, 0x40);
mAudioDigitalInstance->SetHwDigitalGainEnable(AudioDigitalType::HW_DIGITAL_GAIN2, true);
break;
analog MIC,请参考[FAQ08826] [Audio Speech]双mic项目,免提模式如何使用副mic通话digital mic,请参考如下solution.
[SOLUTION]
需要在SpeechPhoneCallController::SetModemSpeechInterConnection()
case AudioDigitalType::I2S_IN_ADC:中颠倒interconnection,即
//mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I03, modem_pcm_tx_lch);
//mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I04, modem_pcm_tx_rch);
// Set InterConnection
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I03, AudioDigitalType::O16);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I04, AudioDigitalType::O15);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I12, modem_pcm_tx_lch);
mAudioDigitalInstance->SetinputConnection(Connection, AudioDigitalType::I13, modem_pcm_tx_rch);
// Set HW_GAIN2
const AudioMEMIFAttribute::SAMPLINGRATE mem_sample_rate = mAudioDigitalInstance-
>SampleRateTransform(16000);
mAudioDigitalInstance->SetHwDigitalGainMode(AudioDigitalType::HW_DIGITAL_GAIN2, mem_sample_rate, 0x40);
mAudioDigitalInstance->SetHwDigitalGainEnable(AudioDigitalType::HW_DIGITAL_GAIN2, true);
break;