simple-audio-card
Jiří Prchal
jiri.prchal at aksignal.cz
Tue Apr 5 07:57:32 CEST 2022
Hi,
something strange with it. When I compile kernel without loadable module
support (# CONFIG_MODULES is not set) it works.
On 10. 03. 22 17:33, Jiří Prchal wrote:
> Hi everybody,
> would be someone so kind and help me with my sound card?
> My connection is:
> cpu AT91SAM9G25 I2S (SSC0) --> codec TLV320AIC3106 <-- clock 12MHz
> Codec is clock master.
>
> dts related parts:
>
> sound {
> compatible = "simple-audio-card";
> simple-audio-card,name = "TLV320AIC3106";
> simple-audio-card,widgets =
> "Headphone", "Front Out",
> "Line", "Rear Out",
> "Line", "GSM Out",
> "Speaker", "Speaker",
> "Microphone", "Front In",
> "Line", "Rear In",
> "Line", "GSM In";
> simple-audio-card,routing =
> "Front Out", "HPLOUT",
> "Rear Out", "HPROUT",
> "GSM Out", "LLOUT",
> "SP_AMP INL", "MONO_LOUT",
> "Speaker", "SP_AMP OUTL",
> "MIC3L", "Front In",
> "LINE1R", "Rear In",
> "LINE1L", "GSM In";
> simple-audio-card,format = "i2s";
> simple-audio-card,bitclock-master = <&sound_master>;
> simple-audio-card,frame-master = <&sound_master>;
> simple-audio-card,aux-devs = <&speaker_amp>;
>
> simple-audio-card,cpu {
> sound-dai = <&ssc0>;
> };
>
> sound_master: simple-audio-card,codec {
> sound-dai = <&tlv320aic3106>;
> system-clock-frequency = <12000000>;
> };
> };
>
> &ssc0 {
> #sound-dai-cells = <0>;
> status = "okay";
> pinctrl-0 = <&pinctrl_ssc0_tx_rx>;
> };
>
> &spi0 {
> status = "okay";
> cs-gpios =
> <&pioA 22 0
> &pioC 14 0
> &pioC 29 0
> &pioA 4 0>;
>
> tlv320aic3106: codec at 3 {
> compatible = "ti,tlv320aic3106";
> reg = <3>;
> spi-max-frequency = <1000000>;
> #sound-dai-cells = <0>;
> adc-settle-ms = <40>;
> ai3x-micbias-vg = <2>; /* 2.5V */
> status = "okay";
> DRVDD-supply = <&vcc_3v3>;
> AVDD-supply = <&vcc_3v3>;
> IOVDD-supply = <&vcc_3v3>;
> DVDD-supply = <&vcc_1v8>;
> ai3x-ocmv = <2>; /* 1.65V */
> };
> };
>
>
> In kernel 5.12 it worked fine, but I can't make it in either 5.15 or 5.17.
>
> dmesg doesn't help at all, even with debug compilation switch:
> ...
> [ 1.203333] ssc f0010000.ssc: Atmel SSC device at 0x(ptrval) (irq 22)
> ...
> [ 1.616666] atmel_spi f0000000.spi: Using dma0chan2 (tx) and
> dma0chan3 (rx) for DMA transfers
> ...
> [ 1.639999] codec at 3 enforce active low on chipselect handle
> [ 1.656666] at25 spi0.0: 128 KByte fm25 fram, pagesize 4096
> [ 1.696666] atmel_spi f0000000.spi: Atmel SPI Controller version
> 0x212 at 0xf0000000 (irq 28)
> ...
> [ 3.033333] ALSA device list:
> [ 3.036666] No soundcards found.
>
> The only difference in 5.12 is:
> [ 3.869999] ALSA device list:
> [ 3.876666] #0: TLV320AIC3106
>
> So, what's wrong?
> Thanks Jiri
More information about the Alsa-devel
mailing list