AnsweredAssumed Answered

device-tree for dummy codec on AUDMUX4

Question asked by Piat Jonathan on Jan 2, 2018
Latest reply on Jan 3, 2018 by igorpadykov

Hi,

 

i'am trying to modify the device-tree for my IMX6 quad platform to initialize a dummy codec on AUDMUX 4 to generate raw i2s traffic to/from an FPGA. The following is what i added to my device-tree (plus pin muxing) :

 

codec_test: codec_test {
   compatible = "linux,snd-soc-dummy";
   #sound-dai-cells = <0>;
};


sound-i2s {
   compatible = "simple-audio-card";
   simple-audio-card,name = "simpleSSI";
   simple-audio-card,widgets =
   "Microphone","Microphone Jack",
   "Headphone","Headphone Jack";
   simple-audio-card,routing =
   "MIC_IN","Microphone Jack",
   "Headphone Jack","HP_OUT";
   simple-audio-card,format = "i2s";
   simple-audio-card,bitclock-master = <&dailink_master>;
   simple-audio-card,frame-master = <&dailink_master>;
   simple-audio-card,mclk-fs=<64>;
   mux-int-port = <1>;
   mux-ext-port = <4>;
   simple-audio-card,cpu {
       sound-dai = <&ssi1>;
    };
   dailink_master: simple-audio-card,codec {
      sound-dai = <&codec_test>;
    };
};

&ssi1 {
  fsl,mode = "i2s-master";
  status = "okay";
};

 

 

the file compiles with no problem but after boot i don't get the corresponding ALSA device. The devices appears in /proc/device-tree through. Any idea of what i 'am missing ?

Outcomes