<?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>i.MX ProcessorsのトピックRe: iMX93 - Using SAI in PCM mode (no external codec)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2078283#M236172</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You can have a look at this thread from ALSA mailing list:&amp;nbsp;&lt;A href="https://www.spinics.net/linux/fedora/linux-sound/msg22016.html" target="_blank" rel="noopener"&gt;https://www.spinics.net/linux/fedora/linux-sound/msg22016.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Besides the discussion above you can try to use the dummy codec (not recommended, not accepted by the community, but you can have it a try for testing purposes).&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;DTS file:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;+ codec_test: codec_test {&lt;BR /&gt;+ #sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;+ compatible = "linux,snd-soc-dummy";&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;BR /&gt;+ sound-test {&lt;BR /&gt;+ compatible = "simple-audio-card";&lt;BR /&gt;+ simple-audio-card,name = "sai-audio-card";&lt;BR /&gt;+ simple-audio-card,format = "left_j";&lt;BR /&gt;+ simple-audio-card,bitclock-master = &amp;lt;&amp;amp;sai_cpu&amp;gt;;&lt;BR /&gt;+ simple-audio-card,frame-master = &amp;lt;&amp;amp;sai_cpu&amp;gt;;&lt;BR /&gt;+ status = "disabled";&lt;BR /&gt;+ sai_cpu: simple-audio-card,cpu {&lt;BR /&gt;+ sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;+ dai-tdm-slot-num = &amp;lt;2&amp;gt;;&lt;BR /&gt;+ dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+ simple-audio-card,codec {&lt;BR /&gt;+ sound-dai = &amp;lt;&amp;amp;codec_test&amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--- a/sound/soc/soc-utils.c&lt;BR /&gt;+++ b/sound/soc/soc-utils.c&lt;/P&gt;
&lt;P&gt;+static const struct of_device_id soc_dummy_ids[] = {&lt;BR /&gt;+ { .compatible = "linux,snd-soc-dummy", },&lt;BR /&gt;+ { },&lt;BR /&gt;+};&lt;BR /&gt;+&lt;BR /&gt;static struct platform_driver soc_dummy_driver = {&lt;BR /&gt;.driver = {&lt;BR /&gt;.name = "snd-soc-dummy",&lt;BR /&gt;+ .of_match_table = of_match_ptr(soc_dummy_ids),&lt;BR /&gt;},&lt;BR /&gt;.probe = snd_soc_dummy_probe,&lt;BR /&gt;};&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Apr 2025 11:28:49 GMT</pubDate>
    <dc:creator>dbaluta</dc:creator>
    <dc:date>2025-04-10T11:28:49Z</dc:date>
    <item>
      <title>iMX93 - Using SAI in PCM mode (no external codec)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2076286#M236061</link>
      <description>&lt;P class=""&gt;Hi everyone,&lt;BR /&gt;I'm working on an i.MX93-based board and I'm trying to use one of the SAI interfaces (specifically &lt;STRONG&gt;SAI3&lt;/STRONG&gt;) in &lt;STRONG&gt;PCM mode&lt;/STRONG&gt; to connect directly to a &lt;STRONG&gt;Quectel&lt;/STRONG&gt; GSM module.&lt;/P&gt;&lt;P class=""&gt;The module exposes PCM lines&lt;STRONG&gt; (DIN, DOUT, CLK, SYNC)&lt;/STRONG&gt; and also an I2C interface to communicate with an external codec. According to Quectel's documentation, audio can be transmitted directly over PCM without the need for an external audio codec, the module already should have an internal codec.&lt;/P&gt;&lt;P class=""&gt;My goal is to route call audio to/from the module directly via PCM.&lt;/P&gt;&lt;P class=""&gt;I’d like to ask:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P class=""&gt;Is it possible to use the i.MX93 SAI interface in PCM mode without a codec?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Has anyone already done this kind of setup on i.MX93 (or similar NXP SoCs)?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;What is the recommended Device Tree configuration for this kind of direct PCM connection (SAI &amp;lt;-&amp;gt; MODULE)?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;Is an &lt;STRONG&gt;audio-card&lt;/STRONG&gt; node still needed in the device tree even if there's no codec?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Any advice or pointers to examples would be greatly appreciated!&lt;/P&gt;&lt;P class=""&gt;Thanks in advance,&lt;BR /&gt;&lt;BR /&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2025 15:09:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2076286#M236061</guid>
      <dc:creator>Stefano_Radaelli</dc:creator>
      <dc:date>2025-04-08T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: iMX93 - Using SAI in PCM mode (no external codec)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2078283#M236172</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;You can have a look at this thread from ALSA mailing list:&amp;nbsp;&lt;A href="https://www.spinics.net/linux/fedora/linux-sound/msg22016.html" target="_blank" rel="noopener"&gt;https://www.spinics.net/linux/fedora/linux-sound/msg22016.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Besides the discussion above you can try to use the dummy codec (not recommended, not accepted by the community, but you can have it a try for testing purposes).&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;DTS file:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;+ codec_test: codec_test {&lt;BR /&gt;+ #sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;+ compatible = "linux,snd-soc-dummy";&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;BR /&gt;+ sound-test {&lt;BR /&gt;+ compatible = "simple-audio-card";&lt;BR /&gt;+ simple-audio-card,name = "sai-audio-card";&lt;BR /&gt;+ simple-audio-card,format = "left_j";&lt;BR /&gt;+ simple-audio-card,bitclock-master = &amp;lt;&amp;amp;sai_cpu&amp;gt;;&lt;BR /&gt;+ simple-audio-card,frame-master = &amp;lt;&amp;amp;sai_cpu&amp;gt;;&lt;BR /&gt;+ status = "disabled";&lt;BR /&gt;+ sai_cpu: simple-audio-card,cpu {&lt;BR /&gt;+ sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;+ dai-tdm-slot-num = &amp;lt;2&amp;gt;;&lt;BR /&gt;+ dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+ simple-audio-card,codec {&lt;BR /&gt;+ sound-dai = &amp;lt;&amp;amp;codec_test&amp;gt;;&lt;BR /&gt;+ };&lt;BR /&gt;+ };&lt;BR /&gt;+&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;--- a/sound/soc/soc-utils.c&lt;BR /&gt;+++ b/sound/soc/soc-utils.c&lt;/P&gt;
&lt;P&gt;+static const struct of_device_id soc_dummy_ids[] = {&lt;BR /&gt;+ { .compatible = "linux,snd-soc-dummy", },&lt;BR /&gt;+ { },&lt;BR /&gt;+};&lt;BR /&gt;+&lt;BR /&gt;static struct platform_driver soc_dummy_driver = {&lt;BR /&gt;.driver = {&lt;BR /&gt;.name = "snd-soc-dummy",&lt;BR /&gt;+ .of_match_table = of_match_ptr(soc_dummy_ids),&lt;BR /&gt;},&lt;BR /&gt;.probe = snd_soc_dummy_probe,&lt;BR /&gt;};&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 11:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2078283#M236172</guid>
      <dc:creator>dbaluta</dc:creator>
      <dc:date>2025-04-10T11:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: iMX93 - Using SAI in PCM mode (no external codec)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2088578#M236772</link>
      <description>Thank you so much!&lt;BR /&gt;&lt;BR /&gt;After using a dummy codec and after changing some configuration in Quectel module, I finally made it working (also using i2s instead of pcm)</description>
      <pubDate>Mon, 28 Apr 2025 17:30:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX93-Using-SAI-in-PCM-mode-no-external-codec/m-p/2088578#M236772</guid>
      <dc:creator>Stefano_Radaelli</dc:creator>
      <dc:date>2025-04-28T17:30:09Z</dc:date>
    </item>
  </channel>
</rss>

