<?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: [i.MX6] HDMI audio not working sometimes Android JB</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452399#M70343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I will check by adding small delay as option 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Different HDMI cable as option 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2015 07:05:04 GMT</pubDate>
    <dc:creator>mohamedfasil</dc:creator>
    <dc:date>2015-07-10T07:05:04Z</dc:date>
    <item>
      <title>[i.MX6] HDMI audio not working sometimes Android JB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452397#M70341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m working on iMX6 custom board running Freescale (BSP with&amp;nbsp; Android JB version) in which HDMI audio is not working sometimes. Audio data is originated from a phone app (which supports HDMI and ear jack out). When I use the Phone app HDMI audio works fine for most of the time but audio is not coming for 1 out of 10 calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never seen any failure logs from the ALSA part right from opening of pcm card and writing data and also there is no error logs from the driver side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When HDMI is connected the audio doesn't comes 1 out of 10 times and when I switch to ear phone out and then to HDMI (in Android UI) audio is coming in HDMI.&lt;/P&gt;&lt;P&gt;I have added delay in pcm_write part of the tinyalsa code to reproduce this issue. Still issue is reproduced 1 out of 25 times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further enabled dumpregs part in [sound/soc/imx/imx-hdmi-dma.c] to see the DMA status register, after enabling this the issue is not reproduced at all. Just enabled the macros to print dumpregs which is not reproducing this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I m not able to concluded on the root cause of the issue. If I remove the dumpregs (prints) from kernel log the issue is reproduced again. It seems there is issue with respect to delays but why its produced and what is the proper fix for this will really be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 06:44:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452397#M70341</guid>
      <dc:creator>mohamedfasil</dc:creator>
      <dc:date>2015-07-03T06:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX6] HDMI audio not working sometimes Android JB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452398#M70342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adding delays may point to suggestion&lt;/P&gt;&lt;P&gt;that this is caused by noise, as delays slow down application,&lt;/P&gt;&lt;P&gt;so one can try other hdmi cable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 04:45:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452398#M70342</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-07-10T04:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX6] HDMI audio not working sometimes Android JB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452399#M70343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply, I will check by adding small delay as option 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Different HDMI cable as option 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Fasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 07:05:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452399#M70343</guid>
      <dc:creator>mohamedfasil</dc:creator>
      <dc:date>2015-07-10T07:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX6] HDMI audio not working sometimes Android JB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452400#M70344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohamed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;likely have nothing to do, but i had issues with hdmi audio, everything was set appropriately but no audio was played. At the end, it was an issue with fb resolution not set appropriately for the auto-sync / probe of the monitor. With correct resolution, audio started to be played.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 07:15:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452400#M70344</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2015-07-10T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: [i.MX6] HDMI audio not working sometimes Android JB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452401#M70345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;​&lt;/P&gt;&lt;H3 style="margin-bottom: 15px; font-weight: normal; font-size: 20px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #999999;"&gt;&lt;/H3&gt;&lt;H3 style="margin-bottom: 15px; font-weight: normal; font-size: 20px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #999999;"&gt;Hi All,&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still have this issue in place. Adding delay is giving side-effect by distorting the original sound at times. Hence adding delay is ruled out. Tested with multiple HDMI cables as well as this issue is reproduced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sometime reproducible issue. I find few other interesting stuffs which proves that driver side(PCM) data is received by the HDMI audio is not coming.&lt;/P&gt;&lt;P&gt;There is no resolution or video problem in my case. Just by closing the HDMI sound card (from application UI) and opening it again the issue is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Findings:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I played simple wav file from adb shell using tinyplay.&lt;/P&gt;&lt;P&gt;#tinyplay LowBattery.wav -D 0 -d 0 -p 192 -n 8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and observed the hdmi pcm card status using proc entry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@android:/ # cat /proc/asound/imxhdmisoc/pcm0p/sub0/status&lt;/P&gt;&lt;P&gt;state: RUNNING&lt;/P&gt;&lt;P&gt;owner_pid&amp;nbsp;&amp;nbsp; : 7288&lt;/P&gt;&lt;P&gt;trigger_time: 1438259679.447798509&lt;/P&gt;&lt;P&gt;tstamp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1438259682.389487843&lt;/P&gt;&lt;P&gt;delay&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 6144&lt;/P&gt;&lt;P&gt;avail&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/P&gt;&lt;P&gt;avail_max&amp;nbsp;&amp;nbsp; : 768&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;hw_ptr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 129792&lt;/P&gt;&lt;P&gt;appl_ptr&amp;nbsp;&amp;nbsp;&amp;nbsp; : 135936&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in which hw_ptr and appl_ptr are updated according to the available data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise I checked the same proc entry in HDMI audio played from phone app. the same pointers are updated &lt;STRONG&gt;but no sound is played via HDMI&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These proc entries are soured from struct snd_pcm_runtime runtime which is used in HDMI DMA as well.&lt;/P&gt;&lt;P&gt;I m clueless in finding the solution for this. Will appreciate the feedback from FSL community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Fasil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2015 12:09:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-HDMI-audio-not-working-sometimes-Android-JB/m-p/452401#M70345</guid>
      <dc:creator>mohamedfasil</dc:creator>
      <dc:date>2015-08-04T12:09:44Z</dc:date>
    </item>
  </channel>
</rss>

