<?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: Bit clock/Frame Sync enabled on i.MX7 at boot in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903799#M136354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to set clocks in uboot or dcd header described in sect.6.6.7.2 Device Configuration&lt;/P&gt;&lt;P&gt;Data (DCD) i.MX7D Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg?h=imx_v2018.03_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg?h=imx_v2018.03_4.14.78_1.0.0_ga"&gt;imximage_TO_1_1.cfg\mx7dsabresd\freescale\board - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&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>Wed, 22 May 2019 10:45:35 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-05-22T10:45:35Z</dc:date>
    <item>
      <title>Bit clock/Frame Sync enabled on i.MX7 at boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903798#M136353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm working on an i.MX7d custom board interfacing a Silicon Labs chipset on the SAI2 interface.&lt;/P&gt;&lt;P&gt;I have developed a machine driver to link che CPU dai (sai2) to the Silicon Labs chip codec modeled as a snd-soc-dummy codec. The sound card has been successfully configured and mapped from the operating system.&lt;/P&gt;&lt;P&gt;So I can successfully play an audio&amp;nbsp;file to the chipset. I see the bitclock/framesync and data transmitted on the SAI2 inteface (by a probe) during the play of the audio file and hear the audio.&lt;/P&gt;&lt;P&gt;Anyway the Silicon Labs chipset requires that the Bit clock and frame sync should be provided since from the reset stage of the chip. So my question is&amp;nbsp;how I can enable the bit clock and framesync on the SAI2 interface at boot stage even&amp;nbsp;without any PCM streaming of audio data. Is it doable in any way (from kernel or u-boot)? In other words what i would like to do is to have bit clock and frame sync always enabled on the bus even when there is no streaming of data on the bus.&lt;/P&gt;&lt;P&gt;I have tried to enable the bitclock and frame sync from fsl_sai.c during the probe stage, but unsuccessfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Every hints will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 03:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903798#M136353</guid>
      <dc:creator>f_antonini</dc:creator>
      <dc:date>2019-05-22T03:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bit clock/Frame Sync enabled on i.MX7 at boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903799#M136354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to set clocks in uboot or dcd header described in sect.6.6.7.2 Device Configuration&lt;/P&gt;&lt;P&gt;Data (DCD) i.MX7D Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg?h=imx_v2018.03_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/mx7dsabresd/imximage_TO_1_1.cfg?h=imx_v2018.03_4.14.78_1.0.0_ga"&gt;imximage_TO_1_1.cfg\mx7dsabresd\freescale\board - uboot-imx - i.MX U-Boot&lt;/A&gt;&amp;nbsp;&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>Wed, 22 May 2019 10:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903799#M136354</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-05-22T10:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bit clock/Frame Sync enabled on i.MX7 at boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903800#M136355</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;it sounds really interesting. I was not aware of such interesting feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So we could add some DCD write commands to configure the SAI2 controller &lt;/P&gt;&lt;P&gt;register to start at boot stage the bit clock and the frame sync.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubt is if this initial setting can be lost or overwritten when the &lt;/P&gt;&lt;P&gt;linux kernel starts and the SAI2 is used to stream some audio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I have realized that in the function fsl_sai_trigger (within &lt;/P&gt;&lt;P&gt;the fs_sai.c) the bit clock and frame sync are disabled when the &lt;/P&gt;&lt;P&gt;function is invoked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a SNDRV_PCM_TRIGGER_STOP parameter. In your opinion do this event &lt;/P&gt;&lt;P&gt;overwrite the DCD initial settings?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 03:52:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903800#M136355</guid>
      <dc:creator>f_antonini</dc:creator>
      <dc:date>2019-05-23T03:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bit clock/Frame Sync enabled on i.MX7 at boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903801#M136356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fabio&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general yes, linux can temporarily change sai clocks,&lt;/P&gt;&lt;P&gt;since it can adjust parent clocks used for (example) some other modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 07:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903801#M136356</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-05-23T07:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bit clock/Frame Sync enabled on i.MX7 at boot</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903802#M136357</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;&lt;/P&gt;&lt;P&gt;thanks a lot for your support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fabio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 07:32:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bit-clock-Frame-Sync-enabled-on-i-MX7-at-boot/m-p/903802#M136357</guid>
      <dc:creator>f_antonini</dc:creator>
      <dc:date>2019-05-24T07:32:25Z</dc:date>
    </item>
  </channel>
</rss>

