<?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: imx6 audio 3.14 kernel bug in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579329#M88294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even correct "library" will not work on wrongly ported&lt;/P&gt;&lt;P&gt;board image, so recommended to try official nxp releases.&lt;/P&gt;&lt;P&gt;imx-codec sw solution provides universal approach as most i.MX&lt;/P&gt;&lt;P&gt;do not have fpu, if necessary one can look fpu optimized codecs on :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.arm.com/docs/DOC-4141" title="https://community.arm.com/docs/DOC-4141"&gt;Audio Codecs on ARM ISA (Cortex A5/A7/A9/A15/A8... | ARM Connected Community&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jul 2016 07:53:04 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2016-07-18T07:53:04Z</dc:date>
    <item>
      <title>imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579326#M88291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;Sorry if this is inappropriate place for posting kernel bugs - I've tried to reach Freescale audio maintainer (Li.Xiubo) but his email bouncing messages - please point me to the right place if so.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt; I'm using the DART-6UL kit with IMX6UL CPU and found three kernel problems with audio :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;1. The raw audio device can be opened only at 44100 sampling rate. This means that all other rates must be used through plughw interface which leads to CPU consuming software resampling. This line of code at fsl_sai.c:fsl_sai_set_bclk() prevents other rates :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 14pt;"&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; /* Drop the source that can not be divided into the required rate */&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&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; if (ret != 0 &amp;amp;&amp;amp; clk_rate / ret &amp;lt; 1000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&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; continue;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;It is interesting where is the magic value 1000 from ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;2. If you try to open the raw audio using other than 44100 sample rate (aplay -r 8000 -c 1 -D hw:CARD=wm8731audio,DEV=0 some.wav) you will have the kernel error message and &lt;STRONG&gt;unusable audio until next reboot&lt;/STRONG&gt; :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-size: 14pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;DIV&gt;[&amp;nbsp;&amp;nbsp; 79.495881] fsl-sai 202c000.sai: failed to derive required Tx rate: 512000&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp; 79.501506] fsl-sai 202c000.sai: ASoC: 202c000.sai hw params failed: -22&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;As I can see all other subsequent audio openings are made with 48000Hz(?!) sample rate and fail despite correct settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;3. I've got total system freeze several times with infinite debug console scrolling lines about audio interrupts overrun. I still can't reproduce this but in this state the board do not respond to pings or console commands.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;I will be appreciated if somebody can point me to the imx audio kernel developer or fix this issues.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14pt;"&gt;TIA, Rus&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 04:57:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579326#M88291</guid>
      <dc:creator>sfinx</dc:creator>
      <dc:date>2016-07-18T04:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579327#M88292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to test with i.MX6UL EVK with official nxp bsp&lt;/P&gt;&lt;P&gt;Board Support Packages (3)&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/products/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?fpsp=1&amp;amp;tab=Documentation_Tab" title="http://www.freescale.com/products/arm-processors/i.mx-applications-processors-based-on-arm-cores/i.mx-6-processors/i.mx6qp/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?fpsp=1&amp;amp;tab=Documentation_Tab"&gt;i.MX6UltraLite Evaluation Kit|NXP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Regarding non-nxp boards, like&amp;nbsp; DART-6UL kit - these are supported by its&lt;/P&gt;&lt;P&gt;vendors. Please look at support policy described on&lt;/P&gt;&lt;P&gt;&lt;A href="http://freescale.github.io/doc/release-notes/current/index.html#supported-board-list" title="http://freescale.github.io/doc/release-notes/current/index.html#supported-board-list"&gt;FSL Community BSP Release Notes 2.1 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;The maintainer duties:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responsible to keep that machine working (that means, booting and with some stability) &lt;/P&gt;&lt;P&gt;Keep kernel, u-boot updated/tested/working.&lt;/P&gt;&lt;P&gt;Keep release notes updated&lt;/P&gt;&lt;P&gt;Keep test cycle updated&lt;/P&gt;&lt;P&gt;Keep the most usual images building and booting&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>Mon, 18 Jul 2016 06:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579327#M88292</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-07-18T06:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579328#M88293</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;The buggy library remains buggy in any board. Or you think that missing hardfp libraries and headers magically appears at oficial NXP board when installed from the same imx-codec package ? :smileywink: Just try to install the imx-codec to your famous NXP board, compile the g729 example and post the log here - be practicable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Issue counted as resolved. NXP likes to hide and ignore the bugs - which means that Freescale software became at NXP totally unsupported just like Sun Java at Oracle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 06:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579328#M88293</guid>
      <dc:creator>sfinx</dc:creator>
      <dc:date>2016-07-18T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579329#M88294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even correct "library" will not work on wrongly ported&lt;/P&gt;&lt;P&gt;board image, so recommended to try official nxp releases.&lt;/P&gt;&lt;P&gt;imx-codec sw solution provides universal approach as most i.MX&lt;/P&gt;&lt;P&gt;do not have fpu, if necessary one can look fpu optimized codecs on :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.arm.com/docs/DOC-4141" title="https://community.arm.com/docs/DOC-4141"&gt;Audio Codecs on ARM ISA (Cortex A5/A7/A9/A15/A8... | ARM Connected Community&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 07:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579329#M88294</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-07-18T07:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579330#M88295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Variscite DART-6UL runs all libraries except imx-codec supplied by NXP so if we will use the simple logic it will appear that it is NXP imx-codec that do not works. I think mainly because the support people like you did not try to reproduce the issue ever (at any NXP board) - it is definitely easier to pass the buck out to commercially supported third party libs than to try to support Freescale software. I will not recommend to my customers the NXP - it just do not works and do not have the support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 08:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579330#M88295</guid>
      <dc:creator>sfinx</dc:creator>
      <dc:date>2016-07-18T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579331#M88296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW: Then why the heck the --enable-fhw option was added to the imx-codec package ? Seems like people with bad luck who bought the IMX with FPU have to throw out the imx-codec because the packge has the hardfpu install option but it just do not works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 08:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579331#M88296</guid>
      <dc:creator>sfinx</dc:creator>
      <dc:date>2016-07-18T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 audio 3.14 kernel bug</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579332#M88297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are right, speech codecs are not hardware accelerated&lt;/P&gt;&lt;P&gt;in imx-codec package. In general, every nxp bsp package has Release Notes document,&lt;/P&gt;&lt;P&gt;please find attached one of them, it describes what is supported and what not.&lt;/P&gt;&lt;P&gt;If smth "hw accelerated", there is special note in its description.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 09:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-audio-3-14-kernel-bug/m-p/579332#M88297</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-07-18T09:36:15Z</dc:date>
    </item>
  </channel>
</rss>

