<?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: Can HDMI's audio be adjusted? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648159#M99041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your fast and effective&lt;SPAN style="color: #32220e; background-color: #f9f8e4; font-size: 14px;"&gt;&amp;nbsp;response。&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2016 03:42:25 GMT</pubDate>
    <dc:creator>conteczxy</dc:creator>
    <dc:date>2016-12-29T03:42:25Z</dc:date>
    <item>
      <title>Can HDMI's audio be adjusted?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648157#M99039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on imx6q, android4.4.2, kernel 3.0.35, with hdmi display.&lt;/P&gt;&lt;P&gt;I found sound is output through hdmi, but when I adjust the sound to low or high in android settings-&amp;gt; sound volume, it doesn't take effect.&lt;/P&gt;&lt;P&gt;So, I want to know if it is possible to adjust sound of hdmi audio?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 00:45:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648157#M99039</guid>
      <dc:creator>conteczxy</dc:creator>
      <dc:date>2016-12-29T00:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can HDMI's audio be adjusted?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648158#M99040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Hi Xiyuan,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; I have got the following solution from my colleague and tested it!&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;-----------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;&amp;nbsp; Two modifications were needed to adjust hdmi volume: &lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI style="margin-right: 7.5pt; text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; “myandroid/hardware/libhardware_legacy/audio/AudioPolicyManagerBase.cpp”, function computeVolume()&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;From&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp; &amp;nbsp; // if volume is not 0 (not muted), force media volume to max on digital output&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp; &amp;nbsp; if (stream == AudioSystem::MUSIC &amp;amp;&amp;amp;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; index != mStreams[stream].mIndexMin &amp;amp;&amp;amp;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&lt;SPAN style="font-size: 8.0pt; color: red;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; (((device == AUDIO_DEVICE_OUT_AUX_DIGITAL) &amp;amp;&amp;amp; (mDeviceIsHdmidongle == false)) ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&lt;SPAN style="font-size: 8.0pt; color: red;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; device == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; device == AUDIO_DEVICE_OUT_USB_DEVICE)) {&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; return 1.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;To&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp; &amp;nbsp; // if volume is not 0 (not muted), force media volume to max on digital output&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp; &amp;nbsp; if (stream == AudioSystem::MUSIC &amp;amp;&amp;amp;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; index != mStreams[stream].mIndexMin &amp;amp;&amp;amp;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&lt;SPAN style="font-size: 8.0pt; color: red;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; (device == AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET ||&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; device == AUDIO_DEVICE_OUT_USB_ACCESSORY ||&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; device == AUDIO_DEVICE_OUT_USB_DEVICE)) {&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; return 1.0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; }&lt;/P&gt;&lt;OL start="2"&gt;&lt;LI style="margin-right: 37.5pt; text-indent: -.25in;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt; “myandroid/frameworks/base/media/java/android/media/AudioService.java&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;From&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-right: 7.5pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; if (SystemProperties.get("ro.product.device").contains("hdmidongle"))&lt;/P&gt;&lt;P style="margin: 5.0pt 15.0pt 5.0pt 15.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; mFixedVolumeDevices &amp;amp;= ~AudioSystem.DEVICE_OUT_AUX_DIGITAL;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;To&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 5.0pt 15.0pt 5.0pt 15.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; mFixedVolumeDevices &amp;amp;= ~AudioSystem.DEVICE_OUT_AUX_DIGITAL;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;------------------------------------------------------------------------------------------------ &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.0pt; color: #1f497d;"&gt;Weidong&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 02:25:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648158#M99040</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2016-12-29T02:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can HDMI's audio be adjusted?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648159#M99041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your fast and effective&lt;SPAN style="color: #32220e; background-color: #f9f8e4; font-size: 14px;"&gt;&amp;nbsp;response。&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2016 03:42:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Can-HDMI-s-audio-be-adjusted/m-p/648159#M99041</guid>
      <dc:creator>conteczxy</dc:creator>
      <dc:date>2016-12-29T03:42:25Z</dc:date>
    </item>
  </channel>
</rss>

