<?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: RT1050 WM8960 codec - change audio parameters in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791140#M734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. WM8960 inserts zeros after each byte in u-law mode. The target device uses the PCMU without zeros (each byte is informational). How do I configure DMA to automatically insert zeros?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2018 11:54:16 GMT</pubDate>
    <dc:creator>pazdimpazdim</dc:creator>
    <dc:date>2018-07-08T11:54:16Z</dc:date>
    <item>
      <title>RT1050 WM8960 codec - change audio parameters</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791138#M732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;I am using I.mx RT1050 evk with WM8960 codec for audio playback. SDK example plays 16 khz 16bit stereo sound. Its working good - I created corresponding raw audio file and transmit it to EVK via ethernet. But I need to work with 8 khz 16bit mono sound. Default configuration from example:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;/* Clock pre divider for sai1 clock source */&lt;BR /&gt;#define DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER (1U)&lt;BR /&gt;/* Clock divider for sai1 clock source */&lt;BR /&gt;#define DEMO_SAI1_CLOCK_SOURCE_DIVIDER (63U)&lt;BR /&gt;/* Get frequency of sai1 clock */&lt;BR /&gt;#define DEMO_SAI_CLK_FREQ (CLOCK_GetFreq(kCLOCK_AudioPllClk) / (DEMO_SAI1_CLOCK_SOURCE_DIVIDER + 1U) / (DEMO_SAI1_CLOCK_SOURCE_PRE_DIVIDER + 1U))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format.bitWidth = kSAI_WordWidth16bits;&lt;BR /&gt;format.channel = 0U;&lt;BR /&gt;format.sampleRate_Hz = kSAI_SampleRate16KHz;&lt;BR /&gt;format.masterClockHz = DEMO_SAI_CLK_FREQ;&lt;BR /&gt;format.protocol = config.protocol;&lt;BR /&gt;format.stereo = kSAI_Stereo;&lt;BR /&gt;format.isFrameSyncCompact = false;&lt;BR /&gt;format.watermark = FSL_FEATURE_SAI_FIFO_COUNT / 2U;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;What parameters do I need to change?&lt;/SPAN&gt;&lt;/SPAN&gt; I tried to set sampleRate_HZ to 8KHz, stereo to kSAI_MonoRight. &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;But I do not understand the CLOCK parameters. H&lt;SPAN&gt;ow do I calculate them? The frequency of transmitting is reduced by 4 times (16khz to 8khz and stereo to mono) and the playback frequency is reduced by 2 times (16khz to 8khz), right?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Jul 2018 09:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791138#M732</guid>
      <dc:creator>pazdimpazdim</dc:creator>
      <dc:date>2018-07-07T09:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 WM8960 codec - change audio parameters</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791139#M733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need a sound in the format of PCMU. I changed the fields DACCOMP and ADCCOMP of register 09h. After processing in audio editor, I saw that the stereo sound. How do I set the SAI or MQS to mono?&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;And this is only for the PCMU&lt;/SPAN&gt;&lt;/SPAN&gt;/PCMA, the raw sound is received as 8000 kHz mono.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 09:15:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791139#M733</guid>
      <dc:creator>pazdimpazdim</dc:creator>
      <dc:date>2018-07-08T09:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: RT1050 WM8960 codec - change audio parameters</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791140#M734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. WM8960 inserts zeros after each byte in u-law mode. The target device uses the PCMU without zeros (each byte is informational). How do I configure DMA to automatically insert zeros?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2018 11:54:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1050-WM8960-codec-change-audio-parameters/m-p/791140#M734</guid>
      <dc:creator>pazdimpazdim</dc:creator>
      <dc:date>2018-07-08T11:54:16Z</dc:date>
    </item>
  </channel>
</rss>

