cs43l22_SetOutputMode() function
Switch dynamically (while audio file is played) the output target (speaker or headphone).
Arguments
DeviceAddr
Device address on communication Bus.
Output
specifies the audio output target: OUTPUT_DEVICE_SPEAKER, OUTPUT_DEVICE_HEADPHONE, OUTPUT_DEVICE_BOTH or OUTPUT_DEVICE_AUTO
Return value
0 if correct communication, else wrong communication
Notes
This function modifies a global variable of the audio codec driver: OutputDev.