<?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 how to close audio clock when the codec doesn`t work in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607719#M91658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using a codec named es8323s like wm8988. The codec is the master and the imx6 is the slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have already debuged the codec well. &lt;STRONG&gt;But I want to close the clock when the codec doesn`t work&lt;/STRONG&gt;. The&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clock is from clko.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am wondering if the interface of the clock to open and close is&amp;nbsp;&lt;STRONG&gt;clk_prepare_enable&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;clk_disable_unprepare.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;STRONG&gt;And&amp;nbsp;&lt;/STRONG&gt;I don`t know where the interface should place in the codec driver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Edward&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2016 13:02:01 GMT</pubDate>
    <dc:creator>edwardfu</dc:creator>
    <dc:date>2016-12-13T13:02:01Z</dc:date>
    <item>
      <title>how to close audio clock when the codec doesn`t work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607719#M91658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am using a codec named es8323s like wm8988. The codec is the master and the imx6 is the slave.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have already debuged the codec well. &lt;STRONG&gt;But I want to close the clock when the codec doesn`t work&lt;/STRONG&gt;. The&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;clock is from clko.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am wondering if the interface of the clock to open and close is&amp;nbsp;&lt;STRONG&gt;clk_prepare_enable&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;clk_disable_unprepare.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;STRONG&gt;And&amp;nbsp;&lt;/STRONG&gt;I don`t know where the interface should place in the codec driver.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Edward&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2016 13:02:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607719#M91658</guid>
      <dc:creator>edwardfu</dc:creator>
      <dc:date>2016-12-13T13:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to close audio clock when the codec doesn`t work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607720#M91659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;SPAN&gt;Edward&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general one can enable clock in modprobe function.&lt;/P&gt;&lt;P&gt;For linux clock infrastructure one can check presentation&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Felinux.org%2Fimages%2Fb%2Fb8%2FElc2013_Clement.pdf" rel="nofollow" target="_blank"&gt;http://elinux.org/images/b/b8/Elc2013_Clement.pdf&lt;/A&gt;&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>Tue, 13 Dec 2016 23:45:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607720#M91659</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-13T23:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: how to close audio clock when the codec doesn`t work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607721#M91660</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;Thank you for your reply!&lt;/P&gt;&lt;P&gt;I have read the presentation you provided. I know the common clock framework and the API. Now I want&lt;/P&gt;&lt;P&gt;to use the clock API to the audio driver.&lt;/P&gt;&lt;P&gt;Actually I use the&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;clk_prepare_enable&amp;nbsp;&lt;/STRONG&gt;to open the clock and&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;clk_disable_unprepare&amp;nbsp;&lt;/STRONG&gt;to close the clock&lt;/P&gt;&lt;P&gt;from the imx6 to the codec. You know when the codec doesn`t work, we should close the codec. So I add&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;clk_prepare_enable&amp;nbsp;&lt;/STRONG&gt;in the codec probe function and&amp;nbsp;&lt;STRONG style="color: #51626f; border: 0px; font-weight: bold;"&gt;clk_disable_unprepare&amp;nbsp;&lt;/STRONG&gt;in the codec remove function.&lt;/P&gt;&lt;P&gt;But once the imx6 board starts, the audio driver will be added and also the audio clock will be open. The audio&amp;nbsp;&lt;/P&gt;&lt;P&gt;clock will be closed unless the audio driver is removed. My design aim is to close clock when the codec doesn`t&lt;/P&gt;&lt;P&gt;work in case we can pass EMC much easier.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Edward&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 01:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/how-to-close-audio-clock-when-the-codec-doesn-t-work/m-p/607721#M91660</guid>
      <dc:creator>edwardfu</dc:creator>
      <dc:date>2016-12-14T01:51:11Z</dc:date>
    </item>
  </channel>
</rss>

