<?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: SGTL5000 codec - No Audio in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801864#M123892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Imx6 Android 7 BSP HAL layer doesn't SGTL5000 audio device support. So you need to add sgtl5000 hal support on your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 11:41:08 GMT</pubDate>
    <dc:creator>aravinthkumarja</dc:creator>
    <dc:date>2018-06-20T11:41:08Z</dc:date>
    <item>
      <title>SGTL5000 codec - No Audio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801863#M123891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a board using MX6Q running android 7.1 but I don't have any audio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the dmesg, I can see that the SGTL5000 driver codec is loaded successfully and that the probe completes without errors:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sgtl5000 2-000a: sgtl5000 revision 0x11&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;fsl-ssi-dai 202c000.ssi: No cache defaults, reading back from HW&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mmc2: host does not support reading read-only switch, assuming write-enable&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mmc2: new high speed SDHC card at address 1234&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mmcblk2: mmc2:1234 SA08G 7.25 GiB &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sgtl5000 2-000a: ASoC: no sink widget found for HP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sgtl5000 2-000a: ASoC: Failed to add route Headphone Mux -&amp;gt; direct -&amp;gt; HP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sgtl5000 2-000a: ASoC: no source widget found for HP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sgtl5000 2-000a: ASoC: Failed to add route HP -&amp;gt; direct -&amp;gt; HP_OUT&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Primary GPT is invalid, using alternate GPT.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;mmcblk2: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;imx-sgtl5000 sound: sgtl5000 &amp;lt;-&amp;gt; 202c000.ssi mapping ok&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;.&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;cat /proc/asound/cards in&amp;nbsp;the terminal displays:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;0 [sgtl5000audio ]: sgtl5000-audio - sgtl5000-audio&lt;BR /&gt;sgtl5000-audio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;My device tree looks ok as well... I verified that the pins to enable the clock and amplifier are enabled&amp;nbsp;by using a&amp;nbsp;multimeter. I verified via oscilloscope that there is a clock signal as well.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In the android logcat, looking at the HAL code that is executed, it looks like something goes wrong (I added debug prints to look into the error). On a&amp;nbsp;different MX6 based board that I got audio to work (that has sgtl5000 as well) the&amp;nbsp;out_write_primary function which processes the output stream gets called repeatedly when playing audio before going to "on standby" once the audio stops playing. On my current board, however,&amp;nbsp;&lt;SPAN&gt;out_write_primary gets called a few times, but suddenly stops without going back to "on standby". No audio is output.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;After&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;out_write_primary stops getting called. It does not get called again even if a try to trigger audio again...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 08:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801863#M123891</guid>
      <dc:creator>mdomondon</dc:creator>
      <dc:date>2018-06-20T08:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 codec - No Audio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801864#M123892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Imx6 Android 7 BSP HAL layer doesn't SGTL5000 audio device support. So you need to add sgtl5000 hal support on your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 11:41:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801864#M123892</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2018-06-20T11:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 codec - No Audio</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801865#M123893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sgtl5000 is not used in nxp boards, one cam look at BD android releases, as&lt;/P&gt;&lt;P&gt;their boards have this codec&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://boundarydevices.com/android-nougat-7-1-1-release-imx6-boards/" title="https://boundarydevices.com/android-nougat-7-1-1-release-imx6-boards/"&gt;Android Nougat 7.1.1 release for i.MX6 boards - Boundary Devices&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 22:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-codec-No-Audio/m-p/801865#M123893</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-06-20T22:57:13Z</dc:date>
    </item>
  </channel>
</rss>

