<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create a sound-card with ESAI in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1791881#M218927</link>
    <description>&lt;P&gt;imx8qm has esai interface with multiple (4RX and 6 TX) pins, but NXP doesn't provide even single example how to use it existing drivers look useless for example how to use esai bus with 2-3 independent codecs, which can be used in simple-audio-card driver, but this driver can't work with esai because can't setup clocking.&lt;BR /&gt;Also, &lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qm-mek.dts?h=imx_5.4.47_2.2.0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://source.codeaurora.org&lt;/A&gt; is not available.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2024 11:11:46 GMT</pubDate>
    <dc:creator>dmitry_sidorenkov</dc:creator>
    <dc:date>2024-01-19T11:11:46Z</dc:date>
    <item>
      <title>How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1185217#M165115</link>
      <description>&lt;P&gt;I need to get a sound from radio-device, which use I2S protocol. The radio-device connected to the imx8 processor through ESAI. I have to registrate the radio-device and ESAI in the linux-kernel.&lt;/P&gt;&lt;PRE&gt;sound-x28 {
        compatible = "simple-audio-card";
        simple-audio-card,name = "x28-audio";
        simple-audio-card,format="i2s";
        simple-audio-card,mclk-fs = &amp;lt;64&amp;gt;;
        simple-audio-card,frame-master = &amp;lt;&amp;amp;sound2_esai&amp;gt;;
        simple-audio-card,bitclock-master = &amp;lt;&amp;amp;sound2_esai&amp;gt;;
        simple-audio-card,widgets =
                "Microphone", "Mic Jack",
                "Line", "Line In",
                "Line", "Line Out",
                "Headphone", "Headphone Jack";
        simple-audio-card,routing =
                "DMIC AIF", "DMic";
        mux-int-port = &amp;lt;1&amp;gt;;
        mux-ext-port = &amp;lt;4&amp;gt;;
        sound2_esai: simple-audio-card,cpu {
            sound-dai = &amp;lt;&amp;amp;esai1 0&amp;gt;;
            system-clock-frequency = &amp;lt;3072000&amp;gt;;
            dai-tdm-slot-num = &amp;lt;2&amp;gt;;
            dai-tdm-slot-width = &amp;lt;32&amp;gt;;
        };
        sound2codec: simple-audio-card,codec {
            sound-dai = &amp;lt;&amp;amp;sound&amp;gt;;
        };
    };
codec_x28: codec_x28 {
            #sound-dai-cells = &amp;lt;0&amp;gt;;
            compatible = "dmic,dmic-codec";
};
&amp;amp;esai1{
    #sound-dai-cells=&amp;lt;1&amp;gt;;
    status="okay";
};&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I don't fully understand how phandle #sound-dai-cells works. The sound-device "sound-x28" has passed a registration in the sysfs. But alsa don't see this device through aplay -l. I can't understand where I made a error in dts file. Or should I use&amp;nbsp; another driver? Please, could you show me your dts with ESAI?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 12:49:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1185217#M165115</guid>
      <dc:creator>Riyan</dc:creator>
      <dc:date>2020-11-18T12:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1185565#M165143</link>
      <description>&lt;P&gt;Hi Riyan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can look at sound-cs42888 with esai example on&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qm-mek.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qm-mek.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and description of audio in&amp;nbsp;&lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener"&gt;i.MX Linux Reference Manual​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab" target="_blank"&gt;https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX?tab=In-Depth_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;nxp does not support "simple-audio-card" for esai.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 23:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1185565#M165143</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-18T23:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1186002#M165207</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;thank you for the answer. But My custom board have not a chip cs42888. Or are the chip and a codec not the same?&lt;/P&gt;&lt;P&gt;sound-cs42888 {&lt;BR /&gt;compatible = "fsl,imx8qm-sabreauto-cs42888",&lt;BR /&gt;"fsl,imx-audio-cs42888";&lt;BR /&gt;model = "imx-cs42888";&lt;BR /&gt;esai-controller = &amp;lt;&amp;amp;esai1&amp;gt;;&lt;BR /&gt;&amp;nbsp;audio-codec = &amp;lt;&amp;amp;cs42888&amp;gt;;&lt;BR /&gt;asrc-controller = &amp;lt;&amp;amp;asrc0&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 12:09:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1186002#M165207</guid>
      <dc:creator>Riyan</dc:creator>
      <dc:date>2020-11-19T12:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1186046#M165215</link>
      <description>&lt;P&gt;Hi Riyan&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can use cs42888 as example and create support for other chip, follow&lt;/P&gt;
&lt;P&gt;Figure 27. ALSA SoC Software Architecture, sect.7.1.4.1 ASoC Driver Source Architecture&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener"&gt;i.MX Linux Reference Manual​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 13:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1186046#M165215</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-11-19T13:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1189755#M165591</link>
      <description>&lt;P&gt;The problem hasn't been solved yet. I use a driver imx-cs42888.c as you had said. But I get faults:&lt;/P&gt;&lt;P&gt;[ 7.824936] fsl-asoc-card custom-sound: CPU phandle missing or invalid&lt;BR /&gt;[ 7.824943] fsl-asoc-card: probe of custom-sound failed with error -22&lt;BR /&gt;[ 7.825762] imx-cs42888 custom-sound: failed to find codec platform device&lt;/P&gt;&lt;P&gt;custom-sound {&lt;BR /&gt;compatible = "fsl,imx-audio-cs42888";&lt;BR /&gt;model = "custom-sound";&lt;BR /&gt;esai-controller = &amp;lt;&amp;amp;esai1&amp;gt;;&lt;BR /&gt;audio-codec = &amp;lt;&amp;amp;codec&amp;gt;;&lt;BR /&gt;asrc-controller = &amp;lt;&amp;amp;asrc0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;codec: codec {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "dmic,dmic-codec";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;esai1{&lt;BR /&gt;#sound-dai-cells=&amp;lt;0&amp;gt;;&lt;BR /&gt;status="okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;What could I do wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 13:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1189755#M165591</guid>
      <dc:creator>Riyan</dc:creator>
      <dc:date>2020-11-26T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1189800#M165598</link>
      <description>&lt;P&gt;Please, help me solve the problem&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 15:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1189800#M165598</guid>
      <dc:creator>Riyan</dc:creator>
      <dc:date>2020-11-26T15:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a sound-card with ESAI</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1791881#M218927</link>
      <description>&lt;P&gt;imx8qm has esai interface with multiple (4RX and 6 TX) pins, but NXP doesn't provide even single example how to use it existing drivers look useless for example how to use esai bus with 2-3 independent codecs, which can be used in simple-audio-card driver, but this driver can't work with esai because can't setup clocking.&lt;BR /&gt;Also, &lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8qm-mek.dts?h=imx_5.4.47_2.2.0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://source.codeaurora.org&lt;/A&gt; is not available.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 11:11:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-create-a-sound-card-with-ESAI/m-p/1791881#M218927</guid>
      <dc:creator>dmitry_sidorenkov</dc:creator>
      <dc:date>2024-01-19T11:11:46Z</dc:date>
    </item>
  </channel>
</rss>

