Question about record from mic on IMXRT1060 board?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Question about record from mic on IMXRT1060 board?

922件の閲覧回数
nahan_trogn
Contributor III

Hi,

I found that the sound obtained from the microphone on ỈMT1060-EVK is much quieter than from other devices under the same recording conditions. How can I improve the sound intensity? 

0 件の賞賛
返信
3 返答(返信)

915件の閲覧回数
nahan_trogn
Contributor III

Hi, thanks for quick answer. I use evkmimxrt1060_sai example.

After reading datasheet of WM8960, I can now  record louder sound by adjust MIC Programmable Gain Amplifier (PGA) to higher dB (default is 0dB), example:

WM8960_CHECK_RET(WM8960_WriteReg(handle, WM8960_RINVOL, 0x13F), ret); //30dB

 

0 件の賞賛
返信

901件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi nahan_trogn,

  Thanks for your solution sharing.

  Any new issues in the future, welcome to create the new case.

 

Best Regards,

kerry

0 件の賞賛
返信

918件の閲覧回数
kerryzhou
NXP TechSupport
NXP TechSupport

Hi nahan_trogn

  Which code you are using?

  This SDK:

SDK_2.9.2_EVK-MIMXRT1060\boards\evkmimxrt1060\driver_examples\sai\edma_record_playback

If yes, please check this code:

wm8960_config_t wm8960Config = {
.i2cConfig = {.codecI2CInstance = BOARD_CODEC_I2C_INSTANCE, .codecI2CSourceClock = BOARD_CODEC_I2C_CLOCK_FREQ},
.route = kWM8960_RoutePlaybackandRecord,
.rightInputSource = kWM8960_InputDifferentialMicInput2,
.leftInputSource = kWM8960_InputDifferentialMicInput3, //added to make the leftinput source works, it is the phone mic
.playSource = kWM8960_PlaySourceDAC,
.slaveAddress = WM8960_I2C_ADDR,
.bus = kWM8960_BusI2S,
.format = {.mclk_HZ = 6144000U, .sampleRate = kWM8960_AudioSampleRate16KHz, .bitWidth = kWM8960_AudioBitWidth16bit},
.master_slave = false,
};

BTW, please note this point:

If users found there is noise while do record operation,
most probably it is the headphone standard issue (OMTP and CTIA standard difference). You should use the OMTP standard headphone.

More details, check this post:

https://community.nxp.com/t5/i-MX-RT/How-to-configure-headphone-mic-in-IMXRT1050-evk/td-p/1165865

 

Best Regards,

kerry