<?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>Other NXP Products中的主题 IMX8MQ Default Audio Stream Routing to SGTL500 Lineout for Android 11</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/IMX8MQ-Default-Audio-Stream-Routing-to-SGTL500-Lineout-for/m-p/1984756#M26152</link>
    <description>&lt;P&gt;&lt;BR /&gt;Platform: IMX8M Custom Board&lt;BR /&gt;OS: Android 11&lt;BR /&gt;Kernel:&amp;nbsp;5.10.9-678025-gbccc0b2805b7-dirty&lt;BR /&gt;Codec: SGTL5000&lt;BR /&gt;Problem: Default Sound Audio Output with Line-Out&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Is this card necessary for lineout audio routing .jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307691iFF3F34B904503E39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Is this card necessary for lineout audio routing .jpg" alt="Is this card necessary for lineout audio routing .jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My problem is about changing default android stream value to lineout. I have successfully play a .wav file by usind tinyplay command. So the codec is working correctly. But when ı play a example video by using gallery app which is&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;am start -n&amp;nbsp; com.android.gallery3d/.app.MovieActivity -d example.mp4, video opened on my lvds screen but ı did not hear voice from lineout. There is no any sound. As you know, we should hear a voice while we trying change alarm sound or notification sound. But there is no any sound when ı click any sound effect on settings. So, problem is in android os itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When ı google about this, ı have seen that there is a conf file which is&amp;nbsp; named audio_policy_configuration.xml, ı have changed defaultOutputDevice as lineout as it shown below.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;audioPolicyConfiguration version="1.0" xmlns:xi="&lt;A href="http://www.w3.org/2001/XInclude" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XInclude&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;globalConfiguration speaker_drc_enabled="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;modules&amp;gt;&lt;BR /&gt;&amp;lt;module name="primary" halVersion="2.0"&amp;gt;&lt;BR /&gt;&amp;lt;attachedDevices&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Speaker&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Built-In Mic&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Line-Out&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;/attachedDevices&amp;gt;&lt;BR /&gt;&amp;lt;defaultOutputDevice&amp;gt;Line-Out&amp;lt;/defaultOutputDevice&amp;gt; &amp;lt;!-- Topkarag it was Speaker Before--&amp;gt;&lt;BR /&gt;So when ı build according to&amp;nbsp; this configuraiton, and write the image into sd card, if ı am using dcss-lvds image(which is not working as lineout), ı do not see line routing by checking it dumpsys audio command. But when ı the same issue by using hdmi image, dumsys audio log comes with line routing as ı need. I have realized that when there is a sound card which is named "imx-audio-hdmi", audio routing will be working correctly. But in dcss-lvds image, even ı have enabled imx-audio-hdmi in .dts file, there is no any sound card which is name "imx-audio-hdmi" and audiorouting is not working. Audio service giving error in logcat also, ı have attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Where can it be problem ? Is there any other configuration parameter except audio_policy_configuration.xml ? Why ı must have imx-audio-hdmi in android for doing this routing correctly ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Attached file zip contents explanations:&amp;nbsp;&lt;BR /&gt;audio_policy_configuration.txt: My configuration&amp;nbsp;&lt;BR /&gt;dmesg hdmi image .txt: Dmesg log for hdmi image&lt;BR /&gt;dumpsys audio_hdmi.txt: Audio service log for hdmi image&amp;nbsp;&lt;BR /&gt;dmesg dcss-lvds image.txt : Dmesg for dcss-lvds image. There is no imx-audio-hdmi sound card.&amp;nbsp;&lt;BR /&gt;dumpsys audio dcss-lvds.txt: audio service log for dcss lvds image. Check there is no any routing as devices.&lt;BR /&gt;logcat grep Audio.txt: Logcat output for audio. There are several messages repeating itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2024 13:07:00 GMT</pubDate>
    <dc:creator>topkarag</dc:creator>
    <dc:date>2024-10-30T13:07:00Z</dc:date>
    <item>
      <title>IMX8MQ Default Audio Stream Routing to SGTL500 Lineout for Android 11</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/IMX8MQ-Default-Audio-Stream-Routing-to-SGTL500-Lineout-for/m-p/1984756#M26152</link>
      <description>&lt;P&gt;&lt;BR /&gt;Platform: IMX8M Custom Board&lt;BR /&gt;OS: Android 11&lt;BR /&gt;Kernel:&amp;nbsp;5.10.9-678025-gbccc0b2805b7-dirty&lt;BR /&gt;Codec: SGTL5000&lt;BR /&gt;Problem: Default Sound Audio Output with Line-Out&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Is this card necessary for lineout audio routing .jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/307691iFF3F34B904503E39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Is this card necessary for lineout audio routing .jpg" alt="Is this card necessary for lineout audio routing .jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My problem is about changing default android stream value to lineout. I have successfully play a .wav file by usind tinyplay command. So the codec is working correctly. But when ı play a example video by using gallery app which is&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;am start -n&amp;nbsp; com.android.gallery3d/.app.MovieActivity -d example.mp4, video opened on my lvds screen but ı did not hear voice from lineout. There is no any sound. As you know, we should hear a voice while we trying change alarm sound or notification sound. But there is no any sound when ı click any sound effect on settings. So, problem is in android os itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;When ı google about this, ı have seen that there is a conf file which is&amp;nbsp; named audio_policy_configuration.xml, ı have changed defaultOutputDevice as lineout as it shown below.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;lt;audioPolicyConfiguration version="1.0" xmlns:xi="&lt;A href="http://www.w3.org/2001/XInclude" target="_blank" rel="noopener nofollow noreferrer"&gt;http://www.w3.org/2001/XInclude&lt;/A&gt;"&amp;gt;&lt;BR /&gt;&amp;lt;globalConfiguration speaker_drc_enabled="true"/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;modules&amp;gt;&lt;BR /&gt;&amp;lt;module name="primary" halVersion="2.0"&amp;gt;&lt;BR /&gt;&amp;lt;attachedDevices&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Speaker&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Built-In Mic&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;item&amp;gt;Line-Out&amp;lt;/item&amp;gt;&lt;BR /&gt;&amp;lt;/attachedDevices&amp;gt;&lt;BR /&gt;&amp;lt;defaultOutputDevice&amp;gt;Line-Out&amp;lt;/defaultOutputDevice&amp;gt; &amp;lt;!-- Topkarag it was Speaker Before--&amp;gt;&lt;BR /&gt;So when ı build according to&amp;nbsp; this configuraiton, and write the image into sd card, if ı am using dcss-lvds image(which is not working as lineout), ı do not see line routing by checking it dumpsys audio command. But when ı the same issue by using hdmi image, dumsys audio log comes with line routing as ı need. I have realized that when there is a sound card which is named "imx-audio-hdmi", audio routing will be working correctly. But in dcss-lvds image, even ı have enabled imx-audio-hdmi in .dts file, there is no any sound card which is name "imx-audio-hdmi" and audiorouting is not working. Audio service giving error in logcat also, ı have attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Where can it be problem ? Is there any other configuration parameter except audio_policy_configuration.xml ? Why ı must have imx-audio-hdmi in android for doing this routing correctly ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Attached file zip contents explanations:&amp;nbsp;&lt;BR /&gt;audio_policy_configuration.txt: My configuration&amp;nbsp;&lt;BR /&gt;dmesg hdmi image .txt: Dmesg log for hdmi image&lt;BR /&gt;dumpsys audio_hdmi.txt: Audio service log for hdmi image&amp;nbsp;&lt;BR /&gt;dmesg dcss-lvds image.txt : Dmesg for dcss-lvds image. There is no imx-audio-hdmi sound card.&amp;nbsp;&lt;BR /&gt;dumpsys audio dcss-lvds.txt: audio service log for dcss lvds image. Check there is no any routing as devices.&lt;BR /&gt;logcat grep Audio.txt: Logcat output for audio. There are several messages repeating itself.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2024 13:07:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/IMX8MQ-Default-Audio-Stream-Routing-to-SGTL500-Lineout-for/m-p/1984756#M26152</guid>
      <dc:creator>topkarag</dc:creator>
      <dc:date>2024-10-30T13:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MQ Default Audio Stream Routing to SGTL500 Lineout for Android 11</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/IMX8MQ-Default-Audio-Stream-Routing-to-SGTL500-Lineout-for/m-p/1986428#M26201</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Our &lt;A href="https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf" target="_blank"&gt;Android documentation&lt;/A&gt; in page 42 also mentions that the audio routing is done in audio_policy_configuration.xml as you mention.&lt;/P&gt;
&lt;P&gt;Is the issue present if you use another application in audio routing?&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Nov 2024 20:54:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/IMX8MQ-Default-Audio-Stream-Routing-to-SGTL500-Lineout-for/m-p/1986428#M26201</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2024-11-01T20:54:51Z</dc:date>
    </item>
  </channel>
</rss>

