Audio Q&A
Q1: After configuring amp-gpio in dts, the audio amplifier control still does not take effect?
In addition to configuring amp-gpio, you also need to configure this pin as MDRV_PUSE_AIO_AMP_PWR in padmux.
Q2:How to configure I2S?
-
View the schematic diagram and use the following pins as I2S.
-
Check the padmux excel.
-
Modify padmux.dtsi according to the actual usage. For example, if the user uses four-wire I2S, then open the second group.
-
Compile and burn the image, and check whether the following registers are configured correctly: reg[103cc4]#6 ~ #4, reg[103cc5]#2 ~ #0
-
Run prog_audio to check wether the waveform is correct.
Command for testing: ./prog_audio -f customer_audio.json
Click to download 16K_16bit_STERO_30s.wav and customer_audio.json.
-
Oscilloscope waveform