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?

  1. View the schematic diagram and use the following pins as I2S.

  2. Check the padmux excel.

  3. Modify padmux.dtsi according to the actual usage. For example, if the user uses four-wire I2S, then open the second group.

  4. Compile and burn the image, and check whether the following registers are configured correctly: reg[103cc4]#6 ~ #4, reg[103cc5]#2 ~ #0

  5. 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.

  6. Oscilloscope waveform

...