mMediaRecorder =newMediaRecorder();/*jicong.wang modify for sprd second mic test start @{*/if(!TextUtils.isEmpty(mDevicePlatform)&&"sprd".equals(mDevicePlatform)){
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);}else{
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);}/*jicong.wang modify for sprd second mic test end @}*/
mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
mMediaRecorder.setAudioSamplingRate(1);
mMediaRecorder.setAudioChannels(1);
mMediaRecorder.setOutputFile(file.getAbsolutePath());
mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mMediaRecorder.setAudioEncodingBitRate(96000);
mMediaRecorder.prepare();
mMediaRecorder.start();
int ratio = mMediaRecorder.getMaxAmplitude();
LogUtil.d("ratio:"+ratio);int db =0;// 分贝if(ratio >1)
db =(int)(20* Math.log10(ratio));
mMIC.setText(String.format((getResources().getString(R.string.record_mic)),db));if(db>maxMIC){
maxMIC = db;}
mMediaRecorder = new MediaRecorder();/*jicong.wang modify for sprd second mic test start @{*/if(!TextUtils.isEmpty(mDevicePlatform) && "sprd".equals(mDevicePlatform)) { mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.CAMCORDER);} els