im6ull sai snd-soc-dummy

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

im6ull sai snd-soc-dummy

2,226 Views
begoña
Contributor I

We are working with yocto release 5.4.70 from code aurora. We need to use a dummy sound card because we are using i2s to communicate between the imx6ull processor and a fpga which does the encoding function. With the previous kernel version (4.19.35) we managed to make it work, and in the ALSA device list appears both sound_sai cars we have defined in the device tree, but with the latest version none of them appears.

The device tree is like following:

code_test1: coded_test1 {

    compatible = "linux,snd-soc-dummy";

    model = "codec-test";

    #sound-dai-cells = <0>;

    status = "okay";

}

sound-sai1 {

    compatible = "simple-audio-card";

    model = "imx-sai1";

    status = "okay";

    simple-audio-card,name = "sound_sai1";

    simple-audio-card,format = "i2s";

    simple-audio-card, frame-master = <&sound_sai_cpu1>;

    simple-audio-card, bitclock-master = <&sound_sai_cpu1>;

          sound_sai_cpu1: simple-audio-card,cpu {

                sound-dai = <0x3c>;

                system-clock-frequency = <0x158800>;

                dai-tdm-slot-num = <0x2>;

                dai-tdm-slot-width = <0x10>;

                phandle = <0x34>;

                };

       };

      simple-audio-card, codec {

             sound-dai = <&codec_test1>;

            };

      };

How we have to do in order to define a "dummy sound card" with the latest release?

 

 

 

 

0 Kudos
Reply
2 Replies

2,214 Views
igorpadykov
NXP Employee
NXP Employee

Hi begoña

 

one can look at similar "simple-audio-card" example:

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi?h=...

 

Best regards
igor

0 Kudos
Reply

2,208 Views
begoña
Contributor I

Hi Igor,

The problem is that we do not use a codec, so, we have had to modify the device tree for 4.19.35 and added the "linux, snd-soc-dummy" (see below) and it worked. But, when we upgrade to 5.4.70, it does not.

So, we need to know hot make it work with the 5.4.70.

 

code_test1: coded_test1 {

compatible = "linux,snd-soc-dummy";

model = "codec-test";

#sound-dai-cells = <0>;

status = "okay";

}

0 Kudos
Reply