<?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: Re: Re: Re: Re: I2s capture in vybrid is noisy in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290860#M2289</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 have dumped PCM samples to a file in SD card after capturing from I2S . When I played this using Cool edit, it plays very fast and also it have tick sound. Could you please tell me what is the reason for this. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vybrid I2S configured for&lt;/P&gt;&lt;P&gt;Master&lt;/P&gt;&lt;P&gt;48KHz&lt;/P&gt;&lt;P&gt;16bit&lt;/P&gt;&lt;P&gt;Stereo&lt;/P&gt;&lt;P&gt;Mclk = 48KHz * 384&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//snap of code:&lt;/P&gt;&lt;P&gt;/*read from I2S*/&lt;/P&gt;&lt;P&gt;msg_ptr-&amp;gt;LENGTH = read(p-&amp;gt;tunerI2S_fd, (msg_ptr-&amp;gt;DATA), block_size);&lt;/P&gt;&lt;P&gt;#if (DUMP_TO_SDCARD &amp;amp;&amp;amp; DUMP_IN_CAPTURE_THREAD)&lt;/P&gt;&lt;P&gt;/* Write data to SD card */&lt;/P&gt;&lt;P&gt;length = write(SDcardfile_ptr, msg_ptr-&amp;gt;DATA, msg_ptr-&amp;gt;LENGTH);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/-&lt;/P&gt;&lt;P&gt;Nihad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 09:33:01 GMT</pubDate>
    <dc:creator>abdulnihad</dc:creator>
    <dc:date>2014-01-24T09:33:01Z</dc:date>
    <item>
      <title>I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290845#M2274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to capture audio using I2S protocol. I have connected my audio slave device to SAI2 of vybrid. I have configured vybrid as master and my audio device as slave.&lt;/P&gt;&lt;P&gt;We have configured vybid I2S as master Receiver and tuner I2S as slave transmitter. Here it is clear that we have to use vybrid receive channel. But according to vybrid reference manual I2S_RX_BCLK(Pin#58) and I2S_RX_SYNC (Pin#59) are bi-directional So vybrid master will provide all the clock signal for tuner through its I2S_RX_xx pins and vybrid receive PCM samples through its I2S_RX_DATA. But this configuration is not working and not able to get audio . But When I used SAI2_TX clock signals it worked. According to demo setup we are using SAI2_TX_BCLK (Y5) ,&amp;nbsp; SAI2_RX_WS (U6) , SAI2_RX_DATA (E17). But captured audio is noisy. How to fix this issue. I am pasting snaps of my initialization code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;#define DEFAULT_SAMPLE_RATE_HZ&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;48000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define DEFAULT_NUM_CHANNELS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define DEFAULT_BITS_PER_SAMPLE&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;#define SAMPLE_SIZE_IN_BYTE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;DEFAULT_BITS_PER_SAMPLE/8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_mqx_int InitTunerI2S(HTUNER h)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TUNER* p = (TUNER*)h;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mqx_int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // _mqx_int&amp;nbsp;&amp;nbsp;&amp;nbsp; param, temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Prepare audio format struct */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.ENDIAN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = AUDIO_LITTLE_ENDIAN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.ALIGNMENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = AUDIO_ALIGNMENT_LEFT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.BITS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_BITS_PER_SAMPLE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = SAMPLE_SIZE_IN_BYTE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.CHANNELS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_NUM_CHANNELS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audioSamplingFreq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_SAMPLE_RATE_HZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_freq = p-&amp;gt;audioSamplingFreq * CLK_MULT;&amp;nbsp; /* Set master clock frequency so oversampling = 384 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; uint_8 mode = I2S_MODE_MASTER;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;tunerI2S_fd = fopen(AUDIO_DEVICE, "r");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (p-&amp;gt;tunerI2S_fd == NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n&amp;nbsp; InitTunerI2S error: Unable to open audio device.\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(0xDEAD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup device */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_AUDIO_SET_IO_DATA_FORMAT, &amp;amp;(p-&amp;gt;audio_format)) != I2S_OK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Error: Input data format not supported.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose(p-&amp;gt;tunerI2S_fd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (MQX_ERROR);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_DATA_BITS, &amp;amp;(p-&amp;gt;audio_format.BITS)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_MODE_MASTER, &amp;amp;mode))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_MCLK_FREQ, &amp;amp;mclk_freq))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_FS_FREQ, &amp;amp;p-&amp;gt;audioSamplingFreq))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _time_delay(50);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(errcode != -1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_GET_FS_FREQ, &amp;amp;p-&amp;gt;audioSamplingFreq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_GET_BCLK_FREQ, &amp;amp;p-&amp;gt;audioBitClkFreq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("I2S Settings:\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Sampling frequency:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %d Hz\r\n", p-&amp;gt;audioSamplingFreq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Bit depth:&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; %d bits\r\n", p-&amp;gt;audio_format.BITS);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Bit rate :&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; %d bits/sec\r\n", p-&amp;gt;audioBitClkFreq);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Channels:&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; ");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (p-&amp;gt;audio_format.CHANNELS == 1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("mono\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("stereo\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("I2S initialised.....\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (MQX_OK);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Nov 2013 14:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290845#M2274</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2013-11-20T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290846#M2275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an MQX sample for I2S that you may want to take a look.&lt;/P&gt;&lt;P&gt;In your MQX installation directory look for:&lt;/P&gt;&lt;P&gt;Freescale\Freescale_MQX_4_0\mqx\examples\i2s_demo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully it helps for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:45:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290846#M2275</guid>
      <dc:creator>juangutierrez</dc:creator>
      <dc:date>2013-11-26T21:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290847#M2276</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 have written my application based on i2s_demo application. Instead of writing to a file in SD card I am sending captured PCM samples over Ethernet to my client application.&lt;/P&gt;&lt;P&gt;But output is noisy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My dought is in I2s settings and the pin used. Please recheck and let me know is there any issue in I2S settings and the pins I used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/-&lt;/P&gt;&lt;P&gt;Nihad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 07:08:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290847#M2276</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2013-11-27T07:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290848#M2277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nihad&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Regarding your "I am sending captured PCM samples over Ethernet to my client application. But output is noisy." phrase - is there any way to verify that this noise is not caused by the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Ethernet &lt;/SPAN&gt;portion of the path?&lt;/P&gt;&lt;P&gt;May you anyhow verify the I2S portion only?&lt;/P&gt;&lt;P&gt;Regards, Naoum Gitnik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 21:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290848#M2277</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-11-27T21:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290849#M2278</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 have verified Ethernet portion by sending pure tone(480 Hz sine wave @ 48KHz sampling freq), it is working fine and no noise in audio output. But when I send captured I2S PCM samples there is noise in audio output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/-&lt;/P&gt;&lt;P&gt;Nihad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 05:41:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290849#M2278</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2013-11-28T05:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290850#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Nihad, &lt;/P&gt;&lt;P&gt;Let me see if I can find the I2S code example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ross,&lt;/P&gt;&lt;P&gt;Is there any way to share the Auto EVB I2S code portion, please?&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RossMcLuckie"&gt;RossMcLuckie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, Naoum Gitnik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Dec 2013 00:10:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290850#M2279</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-12-03T00:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290851#M2280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The auto EVB code is based on MQX, so the SAI driver used there should be the same, and perhaps as highlighted by Juan already. What hardware platform is in use here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it MQX you are using, what harwdare is doing the audio capturing, what have you done to confirm there is no hardware/layout issues involved, what is providing the master audio clock, have you tried simple loop tests, feeding the input direct to the output, keeping the clocking the same, have you tried analysing the captured data, to see if noise is already present in capture before data sent out etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 19:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290851#M2280</guid>
      <dc:creator>RossMcLuckie</dc:creator>
      <dc:date>2013-12-04T19:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290852#M2281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Nihad&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Is this your own board or our platform?&lt;/P&gt;&lt;P&gt;/Naoum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="203016" data-objecttype="3" href="https://community.nxp.com/people/RossMcLuckie" style="padding: 1px 0 1px 17px; font-weight: normal; font-style: normal; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #6a737b; text-decoration: underline; text-align: left; text-indent: 0px; background-position: no-repeat no-repeat;"&gt;Ross McLuckie&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 23:36:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290852#M2281</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-12-04T23:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290853#M2282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using vybrid tower system and an ST microelectronics based Tuner daughter board. I have interfaced tuner board to vybrid using j8 header in primary peripheral board. The tuner board is a proven board and it is working with other micro controllers from ST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already shared my I2S init routine in my first post. Also mentioned Pin I used. Please find the attached capture code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 05:24:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290853#M2282</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2013-12-05T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290854#M2283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for the questions is to try better understand your set up and help you debug, without answers that makes things harder. The issue here will be with your set up, we have another hardware platform using Vybrid in an automotive set up with a SiLabs tuner that is working perfectly, so without additonal information that is the only reference we have to go on. What is likely here is the tuner module set up and Vybrid settings don't match, looking at one side of these settings may offer much help, the SAI can be configured in many ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance you state when using RX clocks nothing is working, but when using TX clocks things work, that is down to how you set up the SAI itself, in synchronous mode the RX and TX sections use the same set of clocks, from the TX side, independent clocks for RX ad TX can be used in asynchronous mode, so this is the sort of thing you should be aware of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume your tuner module, which we have no experience of or support, uses something like an I2C interface to set up it's parameters, if so what have you done there, these settings will determine data width, MSB or LSB aligned, formats, etc, this has to match with what Vybrid is set up to receive, so that's what you need to be looking for here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you looked at the signals on an oscilloscope, do they look clean and as expected or do you see any signs of distortion or problems that could related to the way you have things connected together?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you supplying the power to the TWR module and the tuner, are your ground references correct, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a hardware perspective you have to check signal connections and intergrity to see if anything is not as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From a software perspective you need to review how you are clocking the system, is this as you require, do you understand how the module is clocked, asynchronous/synchrounous operation, are the clocks generated as you expect, does the tuner and SAI module configuration match, have you confirmed this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a well known and tested configuration for Vybrid so the issue will almost certainly be in your current set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ross&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 18:33:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290854#M2283</guid>
      <dc:creator>RossMcLuckie</dc:creator>
      <dc:date>2013-12-05T18:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290855#M2284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nihad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Regarding the fact that you are using the Vybrid tower system - please, verify the signal integrity, possibly compromised by possible stubs on the lines (due to multiple functions practically every Vybrid's IO has on this board).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also discussed your case with our audio expert, and according to him, briefly, while switching between Master and Slave, configuration settings cannot be kept unchanged. He specifically mentioned the Bit Clock and Frame division factors – from your description it is unclear if you did this or not. The reason for that is that the Master generates these signals for itself and the Slave based on its own, internal System Clock, and the Slave recovers System Clock for itself from the signals coming from the Master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the above, I would recommend you to review settings in our code, also used on our &lt;SPAN style="color: #3d3d3d;"&gt;Auto EVB&lt;/SPAN&gt;; the I2S “link partner” on this board is &lt;A href="http://www.digikey.com/product-detail/en/ADMP441ACEZ-RL7/ADMP441ACEZ-RL7CT-ND/2793284?WT.srch=1&amp;amp;WT.medium=cpc&amp;amp;WT.mc_id=IQ59989288-VQ2-g-VQ6-31395941235-VQ15-1t1-VQ16-c" title="http://www.digikey.com/product-detail/en/ADMP441ACEZ-RL7/ADMP441ACEZ-RL7CT-ND/2793284?WT.srch=1&amp;amp;WT.medium=cpc&amp;amp;WT.mc_id=IQ59989288-VQ2-g-VQ6-31395941235-VQ15-1t1-VQ16-c"&gt;ADMP441ACEZ-RL7 InvenSense | ADMP441ACEZ-RL7CT-ND | DigiKey&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;BTW, is my understanding of the "capture ... is noisy" phrase correct that there is noise on top of the proper sound? It is not just totally irregular noise, right?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Regards, Naoum.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 23:53:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290855#M2284</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-12-09T23:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290856#M2285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Hi All,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Below is my tuner I2S settings . Also attached the recorded i2S captured audio to feel the audio chopping issue. Could you please tell me what may be the reason for this audio chopping.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif'; color: #351c75;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #000000;"&gt; 1. Tuner has configured as slave with external clock. controller will provide BCLK and I2S_WS &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #000000;"&gt;2. sampling frequency 48KHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #000000;"&gt;3.&amp;nbsp; bit depth 16L+16R&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt;4.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif';"&gt; audio little Indian&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #000000;"&gt;5. audio alignment left&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: 'Calibri','sans-serif'; color: #000000;"&gt;6. Interface used: BCLK, I2S_DO, I2S_WS&amp;nbsp; (MCLK is not used)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;7 50/50 duty cycle, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;8. no sign extension,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;9. WS polarity high,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; 10. MSB First, with data delay, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;11. normal clock&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 09:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290856#M2285</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2013-12-27T09:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290857#M2286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I listened to your audio file.&amp;nbsp; Here is my two cents.&lt;/P&gt;&lt;P&gt;1. music and voice are coming in clearly without any annoying audio noise artifact.&amp;nbsp; This suggests your clock and SAI settings may be correct&lt;/P&gt;&lt;P&gt;2. I hear 'skipping' at periodic locations longer than a few milliseconds. This suggests some buffer related issue rather than SAI/I2S clock timing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to focus on how the input and output buffers for audio data are handled. &lt;/P&gt;&lt;P&gt;This type of periodic skip usually mean one or more of the following&lt;/P&gt;&lt;P&gt;- Pointer may be looking at the wrong address ranges compared to the ranges allocated for buffer&lt;/P&gt;&lt;P&gt;- buffer content copy may not be done properly:&amp;nbsp; copying all but few of the data within the source.&amp;nbsp; leaving a few blank spots within output buffer.&lt;/P&gt;&lt;P&gt;- buffer access violation:&amp;nbsp; Usually occurs when DMA and copy is done in the same buffer location.&amp;nbsp; Pingpong buffer is usually used to avoid this, but DMA and copy location may be coinciding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you look at the copy and buffer management portion of your driver before looking further into SAI settings, since the audio quality does not suggest you have a setup issue.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Haku&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 17:23:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290857#M2286</guid>
      <dc:creator>haku_sato</dc:creator>
      <dc:date>2014-01-02T17:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290858#M2287</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;When I sent pure tone(480 Hz sine wave @ 48KHz sampling freq), it is working fine and no chopping noise in audio output. But when I send captured I2S PCM samples there is chopping noise in audio output.If it is a buffer problem then pure tone also produce chopping noise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I tried to configure my tuner module as master and vybrid as slave. But I am not able to capture the audio. Below is the details. Could you please tell me how to configure vybrid as slave and all clocks will be provided by tuner module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pin used in primary elevator J8 Header to interface tuner module&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; pin 24: RX_DATA&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; pin 58: RX_BCLK&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; pin 59: RX_WS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; modification in init_sai.c bsp file&lt;/P&gt;&lt;P&gt;------------------------------------------&lt;/P&gt;&lt;P&gt;KSAI_INIT_STRUCT _bsp_ksai_init = {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Selected peripheral (HW channel) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* TX channel */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* RX channel */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_TX_ASYNCHRONOUS |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* TX is asynchronous */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_RX_ASYNCHRONOUS |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_TX_BCLK_NORMAL&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Both TX and RX are clocked by the transmitter */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_RX_BCLK_SWAPPED,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_TX_MASTER |&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; /* SAI transmitter mode */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_RX_SLAVE,&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; /* SAI receiver mode */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16,&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;&amp;nbsp;&amp;nbsp; /* Data bits */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2S_CLK_EXT,&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; /* Clock source */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FALSE,&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; /* Tx Dummy */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Interrupt priority */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048,&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; /* Buffer size */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CM_CLOCK_SOURCE_PLL_AUDIO,&amp;nbsp;&amp;nbsp; /* Internal master clock source */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;_bsp_audio_data_init&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Audio init */&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I2s init application code:&lt;/P&gt;&lt;P&gt;---------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_mqx_int InitTunerI2S(HTUNER h)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TUNER* p = (TUNER*)h;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mqx_int&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_32&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_freq;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mqx_int&amp;nbsp;&amp;nbsp;&amp;nbsp; param = 0;// temp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char* modeString;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Prepare audio format struct */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.ENDIAN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = AUDIO_LITTLE_ENDIAN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.ALIGNMENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = AUDIO_ALIGNMENT_LEFT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.BITS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_BITS_PER_SAMPLE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.SIZE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = SAMPLE_SIZE_IN_BYTE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audio_format.CHANNELS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_NUM_CHANNELS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;audioSamplingFreq&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = DEFAULT_SAMPLE_RATE_HZ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mclk_freq = p-&amp;gt;audioSamplingFreq * CLK_MULT;&amp;nbsp; /* Set master clock frequency so oversampling = 384 */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#if BSPCFG_ENABLE_SAI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 mode = (I2S_TX_SLAVE | I2S_RX_SLAVE);&lt;/P&gt;&lt;P&gt;#else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint_8 mode = I2S_MODE_MASTER;&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;tunerI2S_fd = fopen(AUDIO_DEVICE, "r");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (p-&amp;gt;tunerI2S_fd == NULL)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\n&amp;nbsp; InitTunerI2S error: Unable to open audio device.\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return(0xDEAD);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Setup device */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_AUDIO_SET_IO_DATA_FORMAT, &amp;amp;(p-&amp;gt;audio_format)) != I2S_OK)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("&amp;nbsp; Error: Input data format not supported.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose(p-&amp;gt;tunerI2S_fd);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (MQX_ERROR);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_DATA_BITS, &amp;amp;(p-&amp;gt;audio_format.BITS)))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_MODE_SLAVE, &amp;amp;mode))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_MCLK_FREQ, &amp;amp;mclk_freq))&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; if(I2S_OK != ioctl(p-&amp;gt;tunerI2S_fd, IO_IOCTL_I2S_SET_FS_FREQ, &amp;amp;p-&amp;gt;audioSamplingFreq))&lt;/P&gt;&lt;P&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; errcode = -1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _time_delay(50);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(errcode != -1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf("I2S initialised.....\r\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (MQX_OK);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 12:20:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290858#M2287</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2014-01-03T12:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290859#M2288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abdul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for checking... but your test mentioned below is &lt;SPAN style="text-decoration: underline;"&gt;not sufficient to rule out&lt;/SPAN&gt; the buffer management as the root cause.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;When I sent pure tone(480 Hz sine wave @ 48KHz sampling freq), it is working fine and no chopping noise in audio output. But when I send captured I2S PCM samples there is chopping noise in audio output.If it is a buffer problem then pure tone also produce chopping noise.&lt;/P&gt;&lt;P&gt;Listening test alone usually is not sufficient, and your frequency choice may be masking the issue.&amp;nbsp; Ear is highly unreliable and I strongly advise you to use proper equipment to visually confirm there is no issue.&amp;nbsp; Listening on the speaker or HP are always unreliable.&amp;nbsp; You must use some sort of digital audio analyzer to be sure.&amp;nbsp; In addition, 480Hz @ 48kHz is at the node frequency where the issue could be masked, meaning zero crossing can land within the buffer length that could mask the problem entirely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In order to make sure there is NO issue with the buffer, I suggest the following test method to rule out buffer issue:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Stream Stereo Sine waves consisting of L=1897kHz R=2975kHz at 0dBFS&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Swap between channels for Stream #1&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; Stream Walking Ones and Walking Zeros to check input and output.&amp;nbsp; It can be L= Walking1 and R=Walking0&lt;/P&gt;&lt;P&gt;4.&amp;nbsp; Swap between channels for Stream #3&lt;/P&gt;&lt;P&gt;5.&amp;nbsp; Do the test 1-4 at 48kHzFS, 44.1kHzFS, 88.2kHzFS and 96kHzFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above will give you the accurate results of what's going on with buffer management.&amp;nbsp; If there is truly no buffer management issues, the test will reveal no issue at all.&lt;/P&gt;&lt;P&gt;You need to rule out the buffer issue before moving to detailed clock settings.&amp;nbsp; At this point in time, I believe it is too early to rule out the buffer issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Haku&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 17:03:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290859#M2288</guid>
      <dc:creator>haku_sato</dc:creator>
      <dc:date>2014-01-03T17:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290860#M2289</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 have dumped PCM samples to a file in SD card after capturing from I2S . When I played this using Cool edit, it plays very fast and also it have tick sound. Could you please tell me what is the reason for this. .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vybrid I2S configured for&lt;/P&gt;&lt;P&gt;Master&lt;/P&gt;&lt;P&gt;48KHz&lt;/P&gt;&lt;P&gt;16bit&lt;/P&gt;&lt;P&gt;Stereo&lt;/P&gt;&lt;P&gt;Mclk = 48KHz * 384&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//snap of code:&lt;/P&gt;&lt;P&gt;/*read from I2S*/&lt;/P&gt;&lt;P&gt;msg_ptr-&amp;gt;LENGTH = read(p-&amp;gt;tunerI2S_fd, (msg_ptr-&amp;gt;DATA), block_size);&lt;/P&gt;&lt;P&gt;#if (DUMP_TO_SDCARD &amp;amp;&amp;amp; DUMP_IN_CAPTURE_THREAD)&lt;/P&gt;&lt;P&gt;/* Write data to SD card */&lt;/P&gt;&lt;P&gt;length = write(SDcardfile_ptr, msg_ptr-&amp;gt;DATA, msg_ptr-&amp;gt;LENGTH);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/-&lt;/P&gt;&lt;P&gt;Nihad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 09:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290860#M2289</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2014-01-24T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290861#M2290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihad, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fast playback maybe due to your sample rate settings? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot help you effectively without specific scope shot indicating the point of corruption.&amp;nbsp; Fast and tick noise explained with code snip does not provide us with enough information.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; please provide scope shot showing the data and suspected timing violation&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; whether all of the clock frequencies provided to SAI, and all division are set properly (register values vs the intended frame and bit clock frequency).&amp;nbsp; &lt;/P&gt;&lt;P&gt;3.&amp;nbsp; can the same phenomenon be observed, recreated on FSL reference.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without above materials, I cannot provide assist you effectively. &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Haku&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 00:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290861#M2290</guid>
      <dc:creator>haku_sato</dc:creator>
      <dc:date>2014-01-30T00:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290862#M2291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below explains my finding When I debugged vybrid SAI driver in MQX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a FIFO in I2S hardware. its size is 32x4 byte. it can hold 32 samples of 32 bit size each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another internal buffer (2048*4 bytes) in i2s driver which can hold 2048 samples of 32 bit size each. When i2s interrupt occur, data will be copied from FIFO to internal buffer.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In my application there is a Capture thread which will copy data from i2s internal buffer to application buffer of size 13372 bytes. At a time I am copying 13372 bytes which is equivalent to 6686 samples of 16 bit size each.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have validated SAI driver by injected 4 types of audio&lt;/P&gt;&lt;P&gt;1) music track, &lt;/P&gt;&lt;P&gt;2) pure sine wave at 480Hz, &lt;/P&gt;&lt;P&gt;3) sweep with 440Hz to 16KHz, &lt;/P&gt;&lt;P&gt;4) stereo tone with 2KHz tone on left and 3KHz tone on right channel with 0.3 sec delay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; in i2s rx interrupt handler function '_ksai_rx_irq_handler' instead of I2S data from i2s_ptr-&amp;gt;RDR register. and played on player thread. all plays fine. So I dumped three type of tone in vybrid playback thread in my application and played using cool edit. I got same out put as in player thread.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This conclude that there is no problem between the i2s audio path shown below&lt;/P&gt;&lt;P&gt; i2s rx interrupt handler of MQX---&amp;gt;i2sread---&amp;gt;capture thread----&amp;gt;msg queue----&amp;gt; playback thread------&amp;gt; audio speaker out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debugged the interrupt handler code, some time code flow shows FIFO full. If FIFO full persist for longer time then I think we will miss data on I2S line. Is it correct?. By default in MQX I2S interrupt priority set to 5 . my capture thread priority is set to 9. In MQX who is generating I2S interrupt and at what rate.? and I am not able to see any DMA involvement in data transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MQX release note it shows that SAI is not supported for vybrid in 4.0.2 release. Could you please tell me why it is not supported?. When can I expect MQX release with SAI support for vybrid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR/-&lt;/P&gt;&lt;P&gt;Nihad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 07:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290862#M2291</guid>
      <dc:creator>abdulnihad</dc:creator>
      <dc:date>2014-01-30T07:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290863#M2292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nihad, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the details.&amp;nbsp; Your explanation is very helpful.&amp;nbsp; &lt;/P&gt;&lt;P&gt;From your explanation, the issue now seem to be MQX related than the actual setting of the IP blocks.&amp;nbsp; Since my expertise is in HW systems, I need to loop in a person who is well versed in MQX specifics.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience!&lt;/P&gt;&lt;P&gt;Haku&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/karinavalencia"&gt;karinavalencia&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 14:21:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290863#M2292</guid>
      <dc:creator>haku_sato</dc:creator>
      <dc:date>2014-01-30T14:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: I2s capture in vybrid is noisy</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290864#M2293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/juangutierrez"&gt;juangutierrez&lt;/A&gt;&amp;nbsp; please continue with&amp;nbsp;&amp;nbsp; the follow up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/I2s-capture-in-vybrid-is-noisy/m-p/290864#M2293</guid>
      <dc:creator>karina_valencia</dc:creator>
      <dc:date>2014-01-30T15:56:58Z</dc:date>
    </item>
  </channel>
</rss>

