LineOut
First, according to the hardware circuit, determine which GPIO is connected to the enabling pin of the power amplifier:
Alter node sound of DTS, set amp-gpio:
sound {
compatible = "sstar,audio";
// reg = <0x1F000000 0x1000000>;
interrupts=<GIC_SPI INT_IRQ_BACH IRQ_TYPE_LEVEL_HIGH>;
playback-volume-level=<64>; //0~94
capture-volume-level=<64>;
// micin-pregain-level=<1>; //0~3
micin-pregain-level=<0>; //0~3
micin-gain-level=<3>; //0~7
linein-gain-level=<2>; //0~7
amp-gpio = <PAD_FUART_RX 1>;
clocks = <&CLK_upll_384m>;
// playback-dma-buffer=<98304>; //512(ms)*48(kHz)*2(ch)*2(16bits)
// capture-dma-buffer=<122880>; //640(ms)*48(kHz)*2(ch)*2(16bits)
digmic-padmux = <2>;
i2s-padmux = <2>;
keep-i2s-clk = <0>;
status = "ok";
}
At the same time, modify the corresponding Infinity2M-SSC011A-S01A-PADMUX-XXX. DTSI, cancel other reuse functions of PAD_GPIO10, and make it as GPIO_MODE by default.
With this configuration, we can use LineOut.To test this, use the audio_all_test_case program:
# ./audio_all_test_case -t 10 -O -i ./pizzicato.wav -D 0 -V 10
文档更新时间: 2021-03-18 10:52 作者:Aeeditor