Hi all,
I am trying to redirect the audio input of the "sai" example from the on-board microphone to the microphone input on the audio jack.
I have been experimenting a lot, but it seems there is no sginal at all coming in.
Here is my codec configuration modified to do so.
Has anybody tried the same and got it working ?
Thank you in advance for your support.
Regards,
MM
/*******************************************************************************
* Variables
******************************************************************************/
wm8960_config_t wm8960Config = {
.i2cConfig = {.codecI2CInstance = BOARD_CODEC_I2C_INSTANCE, .codecI2CSourceClock = BOARD_CODEC_I2C_CLOCK_FREQ},
#if(1)
.route = kWM8960_RoutePlaybackandRecord,
#else
.route = kWM8960_RouteBypass,
#endif
#if(0)
.rightInputSource = kWM8960_InputDifferentialMicInput2, // on board micro -> right
#elif(0)
.leftInputSource = kWM8960_InputDifferentialMicInput3, // jack micro -> right
#elif(1)
.leftInputSource = kWM8960_InputDifferentialMicInput3, // jack micro -> right
.rightInputSource = kWM8960_InputDifferentialMicInput2, // on board micro -> left
#else
.leftInputSource = kWM8960_InputLineINPUT3, // jack micro -> right
.rightInputSource = kWM8960_InputDifferentialMicInput2, // on board micro -> left
#endif
#if(1)
.playSource = kWM8960_PlaySourceDAC,
#else
.playSource = kWM8960_PlaySourceInput,
#endif
.slaveAddress = WM8960_I2C_ADDR,
.bus = kWM8960_BusI2S,
.format = {.mclk_HZ = 6144000U, .sampleRate = kWM8960_AudioSampleRate16KHz, .bitWidth = kWM8960_AudioBitWidth16bit},
.master_slave = false,
};