<?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: IMX8MP Jack detection issue with MAX98090 codec in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174379#M240871</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;That must be a hardware issue since it works perfectly with EVK, however i noticed that you change the dtb, please check the dtb from the EVK and apply the changes accordingly .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Sep 2025 14:10:07 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-09-23T14:10:07Z</dc:date>
    <item>
      <title>IMX8MP Jack detection issue with MAX98090 codec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174276#M240868</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We are using the MAX98090 audio codec on a custom i.MX8MP-based board. The issue we are facing is with &lt;STRONG&gt;headphone jack detection&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In the MAX98090 codec driver, jack detection appears to work correctly — I can see debug prints when the jack is plugged in or removed. However, when streaming audio using aplay, audio is coming from &lt;STRONG&gt;both the speaker and headphone simultaneously&lt;/STRONG&gt;, which is not the desired behavior. Ideally, the speaker should automatically turn off when headphones are connected.&lt;/P&gt;&lt;P&gt;I am wondering if this could be related to ALSA or PulseAudio configuration, or if something is missing in the device tree or driver setup.&lt;/P&gt;&lt;P&gt;For reference, I am attaching the &lt;STRONG&gt;device tree snippet&lt;/STRONG&gt;&amp;nbsp;of the &amp;nbsp;and the codec outputs of&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&lt;FONT face="courier new,courier" color="#FF0000"&gt;amixer -c 0 scontrols&lt;/FONT&gt;&lt;/FONT&gt; and&amp;nbsp;&lt;FONT face="courier new,courier" color="#FF0000"&gt;pactl list cards &lt;/FONT&gt;command in the attached max-logs.txt file.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;BR /&gt;&lt;BR /&gt;DTS snippet:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sound-max98090 {
        compatible = "simple-audio-card";
        simple-audio-card,name = "max98090-audio";
        simple-audio-card,format = "i2s";
        simple-audio-card,frame-master = &amp;lt;&amp;amp;cpudai&amp;gt;;
        simple-audio-card,bitclock-master = &amp;lt;&amp;amp;cpudai&amp;gt;;
        simple-audio-card,bitclock-inversion;

        simple-audio-card,widgets =
                "Microphone", "Mic Jack",
                "Speakers", "Speakers",
                "Line", "Line In",
                "Line", "Line Out",
                "Headphone", "Headphone Jack";

        simple-audio-card,routing =
                "Headphone Jack", "HPL",
                "Headphone Jack", "HPR",
                "Line Out", "RCVL",
                "Line Out", "RCVR",
        /* Uncomment any of these below lines if the Line Input(s) is(are) used else leave it as such. */
                "IN1","Line In",
                "IN2","Line In",
                "IN5", "Line In",  /* IN1/IN2/IN3/IN4/IN6 (For single-ended input) */
                "IN34", "Line In", /* IN34 (For differential inputs) */
                "IN56", "Line In", /* IN34 (For differential inputs) */
                "MIC1", "Mic Jack",
                "MIC2", "Mic Jack",
                "Mic Jack", "MICBIAS",
                "IN1", "MICBIAS",
                "MIC1","IN1",
                "MIC2","IN1",
                "Speakers", "SPKL",
                "Speakers", "SPKR",

                /* DMIC-3 Routings */
                "DMICL", "DMIC Mux",
                "DMIC Mux", "DMIC3",
                "DMIC3", "DMIC3_ENA",
                "DMIC3", "AHPF",

                /* DMIC-4 Routings */
                "DMICR", "DMIC Mux",
                "DMIC Mux", "DMIC4",
                "DMIC4", "DMIC4_ENA",
                "DMIC3", "AHPF",
                "DMIC4", "AHPF",

                 "HiFi Capture", "DMICL",
                 "HiFi Capture", "DMICR";

                 cpudai: simple-audio-card,cpu {
                        sound-dai = &amp;lt;&amp;amp;sai3&amp;gt;;
                        dai-tdm-slot-num = &amp;lt;2&amp;gt;;
                     };
            simple-audio-card,codec {
                    sound-dai = &amp;lt;&amp;amp;max98090&amp;gt;;
                    clocks = &amp;lt;&amp;amp;audio_blk_ctrl  IMX8MP_CLK_AUDIOMIX_SAI3_MCLK1&amp;gt;;
            };
    };

&amp;amp;i2c4 {
        clock-frequency = &amp;lt;400000&amp;gt;;
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;
        status = "okay";

        max98090: max98090@10 {
                #sound-dai-cells = &amp;lt;0&amp;gt;;
                pinctrl-names = "default";
                pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai3&amp;gt;;
                compatible = "maxim,max98091";
                reg = &amp;lt;0x10&amp;gt;;
                clocks = &amp;lt;&amp;amp;clk IMX8MP_CLK_SAI3_ROOT&amp;gt;;
                interrupt-parent = &amp;lt;&amp;amp;gpio1&amp;gt;;
                interrupts = &amp;lt;8 IRQ_TYPE_LEVEL_LOW&amp;gt;; /* NC from HW side */
                clock-names = "mclk";
        };      
};
&amp;amp;sai3 {
        #sound-dai-cells = &amp;lt;0&amp;gt;;
        assigned-clocks = &amp;lt;&amp;amp;clk IMX8MP_AUDIO_PLL2_OUT&amp;gt;, &amp;lt;&amp;amp;clk IMX8MP_CLK_SAI3&amp;gt;;
        assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MP_AUDIO_PLL2_OUT&amp;gt;, &amp;lt;&amp;amp;clk IMX8MP_AUDIO_PLL2_OUT&amp;gt;;
        assigned-clock-rates = &amp;lt;361267200&amp;gt;,&amp;lt;11289600&amp;gt;;
        fsl,sai-mclk-direction-output;
        status = "okay";
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 11:21:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174276#M240868</guid>
      <dc:creator>pratham_malaviya</dc:creator>
      <dc:date>2025-09-23T11:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Jack detection issue with MAX98090 codec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174379#M240871</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;That must be a hardware issue since it works perfectly with EVK, however i noticed that you change the dtb, please check the dtb from the EVK and apply the changes accordingly .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 14:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174379#M240871</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-09-23T14:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Jack detection issue with MAX98090 codec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174743#M240887</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;EM&gt;&lt;BR /&gt;That must be a hardware issue since it works perfectly with EVK,&amp;nbsp;&lt;BR /&gt;&lt;/EM&gt;-- Can you please elaborate which EVK are you referring to?&amp;nbsp; If its IMX8MP EVK then I believe it has a different audio codec.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;however i noticed that you change the dtb, please check the dtb from the EVK and apply the changes accordingly .&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;-- Do i need to refer EVK for the codec routings? But both are different codecs and the MAX98090 does not have the&amp;nbsp;hp-det-gpio pin like wm8960.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 05:29:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2174743#M240887</guid>
      <dc:creator>pratham_malaviya</dc:creator>
      <dc:date>2025-09-24T05:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MP Jack detection issue with MAX98090 codec</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2175065#M240903</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;My suggestion is to also take look into the codec drivers that are available within our Linux BSP: codecs\soc\sound - linux-imx - i.MX Linux kernel (both drivers for WM8960 and WM824 are included here). That would be a good starting point to look for different codec-driver examples that may also suit your needs. Also, one of colleagues posted a document his experience WM8960: WM8960 audio codec.It would also be convenient to check it out.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2025 13:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Jack-detection-issue-with-MAX98090-codec/m-p/2175065#M240903</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-09-24T13:28:43Z</dc:date>
    </item>
  </channel>
</rss>

