2019-02-26 07:44 AM
Hi,
I am currently developing with the STM32F769I-DISC1 development kit and get audio output via the CN7 Line Out connector when setting the initialisation to OUTPUT_DEVICE_HEADPHONE in the sample example as below:
if(0 != audio_drv->Init(AUDIO_I2C_ADDRESS, OUTPUT_DEVICE_HEADPHONE, 40, AUDIO_FREQUENCY_22K))
{
Error_Handler();
}
I need to use the speaker but get no sound out on either SPKR_L or SPKR_R when the output device is changed to either OUTPUT_DEVICE_BOTH or OUTPUT_DEVICE_SPEAKER
I have changed the unmute command from
CODEC_IO_Write(DeviceAddr, 0x36, 0x0300); to CODEC_IO_Write(DeviceAddr, 0x36, 0x0303);
as another help thread recommended but this did not help.
Please advise if there is a solution to this problem.
2019-02-28 04:30 AM
I received an answer from ST stating that the folllowing changes should be made in the MX_SAIx_Init() function according to the required channels:
Active Slots:
Then you would also need to adjust the FrameLength, ActiveFrameLength and SlotNumber as follow: