Hi community ,
I am using LPC55S69 and the codec WM8904. The codec is configured as Stereo which uses Left and Right channel .Also the basic configuration are :-
wm8904_config_t wm8904Config = {
.i2cConfig = {.codecI2CInstance = BOARD_CODEC_I2C_INSTANCE, .codecI2CSourceClock = BOARD_CODEC_I2C_CLOCK_FREQ},
.recordSource = kWM8904_RecordSourceLineInput,
.recordChannelLeft = kWM8904_RecordChannelLeft2,
.recordChannelRight = kWM8904_RecordChannelRight2,
.playSource = kWM8904_PlaySourceDAC,
.slaveAddress = WM8904_I2C_ADDRESS,
.protocol = kWM8904_ProtocolI2S,
.format = {.sampleRate = kWM8904_SampleRate48kHz, .bitWidth = kWM8904_BitWidth16},
.mclk_HZ = DEMO_I2S_MASTER_CLOCK_FREQUENCY,
.master = false,
};
I have tried changing the parameters but i still the same out of the music file ,there isn't any distortion or any error .Does that mean the codec auto configures these parameter .
PROBLEMS:
- What are the calculation behind these parameter ?
- how to i configure the module to mono channel output ?
I have used the SDK example of i2s_tranfer_dma example as my code .
Thank you and regards
ujwal
#LPC55S69