wm8994_Init() function
Initializes the audio codec and the control interface.
Arguments
DeviceAddr
Device address on communication Bus.
OutputInputDevice
can be OUTPUT_DEVICE_SPEAKER, OUTPUT_DEVICE_HEADPHONE, OUTPUT_DEVICE_BOTH, OUTPUT_DEVICE_AUTO, INPUT_DEVICE_DIGITAL_MICROPHONE_1, INPUT_DEVICE_DIGITAL_MICROPHONE_2, INPUT_DEVICE_DIGITAL_MIC1_MIC2, INPUT_DEVICE_INPUT_LINE_1 or INPUT_DEVICE_INPUT_LINE_2.
Volume
Initial volume level (from 0 (Mute) to 100 (Max))
Return value
0 if correct communication, else wrong communication