<?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: SGTL5000 CODEC line-in noise on i.MX28 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251301#M22984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any further advice on this issue of not getting any audio data when trying to play and record at different audio sample rates? We are still sometimes getting audio noise on line-in, and can't use the latest patches because they don't work for different playback and record audio sample rates. What do you advise?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Apr 2014 02:15:28 GMT</pubDate>
    <dc:creator>CraigMcQueen</dc:creator>
    <dc:date>2014-04-22T02:15:28Z</dc:date>
    <item>
      <title>SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251281#M22964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are developing a system based on i.MX28, which does audio input and output through the SGTL5000 CODEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our software works fine most of the time, however, sometimes after boot-up (maybe 10-20% of the time) the audio input via SGTL5000 ADC_IN is very noisy. It persists even if I stop and restart audio input. (Normally the software is doing two-way audio streaming, but I also get the same sort of noise via 'arecord test.wav'.) If I power cycle the unit, then usually audio is fine after the power cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're using the Linux 2.6.35 kernel. The problem occurred both before and after applying the Freescale patches "patches_for_L2.6.35_MX28_SDK_10.12_SOURCE.tar.gz".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The noise sounds as though it's due to a gain setting that is sometimes starting up in an indeterminate state, with a higher gain setting than "normal". Sometimes it sounds like bad clipping of the input, when gain is set too high. Sometimes it sounds like plain noise, regardless of the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried compiling the kernel audio drivers as a module, and loading/unloading via "modprobe" command. When the problem occurs, it persists even if I do "modprobe -r" then "modprobe" to reload the audio driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks as though it might be some sort of issue with the SGTL5000 CODEC coming up in an indeterminate state for some register settings, and the Linux SGTL5000 driver doesn't fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else seen this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an easy way I can see a dump of all SGTL5000 register settings with/without this noise issue present, to test my hypothesis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 05:21:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251281#M22964</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-22T05:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251282#M22965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you test a 3.9 kernel and let us know if the issue is also there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 00:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251282#M22965</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-05-23T00:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251283#M22966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Fabio Estevam wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Can you test a 3.9 kernel and let us know if the issue is also there?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hmm, maybe. We're using Timesys for builds, and Timesys is currently supporting 2.6.35 without the latest Freescale patches (I added the Freescale patches myself).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if there's a 3.9 kernel repository that supports the i.MX28 EVK, I could perhaps try that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 02:03:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251283#M22966</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-23T02:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251284#M22967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try this patch? It reset the SAIF1 to get rid of the recording noise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 04:03:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251284#M22967</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-05-23T04:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251285#M22968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for providing this patch. This is a big help. Initial results indicate this patch did seem to help, but not fix it entirely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done about 10 power cycles. On none of those did I get noisy input. However, twice when I've closed and re-opened the audio device, I've got noisy input. Then on those two occasions, when I've closed and re-opened the audio device again, the noise disappeared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an improvement on previous behaviour, where the noise persisted even if I closed and re-opened the audio device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So is this a SAIF driver issue, rather than a SGTL5000 driver issue? And why do you think I would still be getting noise sometimes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 07:14:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251285#M22968</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-23T07:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251286#M22969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please tell me how did you close and re-open the audio device so that I can reproduce the noise issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system clock of SGTL5000 comes from the SAIF0_MCLK. If SAIF0 is reset, theSAIF0_MCLK is interrupted and you may need to re-initialize the SGTL5000 again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 10:40:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251286#M22969</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-05-23T10:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251287#M22970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;PeterChan wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Could you please tell me how did you close and re-open the audio device so that I can reproduce the noise issue?&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am using a C program that does bi-directional audio streaming using &lt;A href="http://www.linphone.org/eng/documentation/dev/mediastreamer2.html"&gt;libmediastreamer&lt;/A&gt;. It's doing 8 kHz audio in both directions.&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;PeterChan wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The system clock of SGTL5000 comes from the SAIF0_MCLK. If SAIF0 is reset, theSAIF0_MCLK is interrupted and you may need to re-initialize the SGTL5000 again.&lt;/P&gt;

&lt;/BLOCKQUOTE&gt;&lt;P&gt;I hope this sort of detail is all taken care of by the Linux SGTL5000 audio driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2013 23:22:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251287#M22970</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-23T23:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251288#M22971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the linux SGTL5000 and SAIF audio driver should take care of all the detail about the link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested the audio stream open/close by running this command repeatedly but not yet able to hear noise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"arecord -t wav -c 2 -r 44100 -f S16_LE -d 3 | aplay"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to hack into linux/sound/soc/mxs/mxs-dai.c to find out if&amp;nbsp; SAIF0 has been reset in between close and re-open the audio device.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2013 10:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251288#M22971</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-05-24T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251289#M22972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been testing this further. The noise cases are uncommon, and I have been unable to isolate the problem so far.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tested open/close using &lt;STRONG&gt;ecasignalview&lt;/STRONG&gt; from &lt;A href="http://www.eca.cx/ecasound/"&gt;ecasound&lt;/A&gt;, to loop-back audio input to output and also show the signal level:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ecasignalview -b:256 -f:,,8000 alsahw alsahw&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By that method, I was also unable to reproduce the noise issue in multiple tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also ran my code (that uses libmediastreamer) in isolation, and could not reproduce the noise issue in multiple tests.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have two possible theories about interaction with other elements of the system:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) It is also displaying information on a display on the I2C bus. Could I2C bus activity disturb normal SGTL5000 CODEC initialisation?&lt;/P&gt;&lt;P&gt;2) It is communicating through a radio module. Maybe power load on the system when the radio module begins communications (at about the same time the audio devices are opened) is glitching the power rails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) doesn't seem likely. But (1) may be an issue. We've had issues with audio previously, when the I2C bus was (I think) trying to talk to an I2C device that wasn't communicating. See: &lt;A href="https://community.nxp.com/message/328708"&gt;Re: sgtl5000 problem on i.mx28&lt;/A&gt;. Could these be related?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 00:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251289#M22972</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-31T00:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251290#M22973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Now I have two possible theories about interaction with other elements of the system:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;1) It is also displaying information on a display on the I2C bus. Could I2C bus activity disturb normal SGTL5000 CODEC initialisation?&lt;/P&gt;
&lt;P&gt;2) It is communicating through a radio module. Maybe power load on the system when the radio module begins communications (at about the same time the audio devices are opened) is glitching the power rails.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;(2) doesn't seem likely. But (1) may be an issue. We've had issues with audio previously, when the I2C bus was (I think) trying to talk to an I2C device that wasn't communicating. See: &lt;A _jive_internal="true" data-containerid="2004" data-containertype="14" data-objectid="328708" data-objecttype="2" href="https://community.nxp.com/message/328708#328708"&gt;Re: sgtl5000 problem on i.mx28&lt;/A&gt;. Could these be related?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tested (1), by doing audio tests while a test program was writing lots of data on the I2C bus. I did 30 audio tests, and had no noise issues. So I think this rules out the I2C bus hypothesis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since applying the patch supplied by Peter Chan, I've only had the 2 instances of noise, and never since then. I've probably done 80 or so tests, without noise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2013 03:19:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251290#M22973</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2013-05-31T03:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251291#M22974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Craig, Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are running into same issue as you had. The provided patch also helped, but we still get the noise around 1 on 60 iterations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has any other patch been implemented for this ? I can not see any other activity related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter, we are in discussion we technical support Jack Lee about this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your feedback,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 09:02:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251291#M22974</guid>
      <dc:creator>ThomasBandelier</dc:creator>
      <dc:date>2013-10-07T09:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251292#M22975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are sorry for the audio noise issue. Jack and I are sharing the same information and we are now working on this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 01:06:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251292#M22975</guid>
      <dc:creator>PeterChan</dc:creator>
      <dc:date>2013-10-10T01:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251293#M22976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please tell me how I can reproduce this issue? Is it possible to reproduce it via standard alsa utilities, such as aplay/arecord?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try kernel 3.12-rc4?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 04:01:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251293#M22976</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-10-10T04:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251294#M22977</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;I observe audio noise issue on mainline kernel, which is based on linux-next repository, master branch (last commit: 3a94271d0798fe2a2e5bfe2d135f2c8f6db2e80b).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't make any changes, just built mxs-defconfig-based uImage and imx28-evk.dtb and loaded on my i.MX28 EVK REV D board.&lt;/P&gt;&lt;P&gt;After that I tried to record something:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ # arecord -D hw:0,1 -t wav -c 2 -r 44100 -f S16_LE -d 5 awesome.wav&lt;/P&gt;&lt;P&gt;Recording WAVE 'awesome.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and play it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~ # aplay -D plughw:0,0 awesome.wav&lt;/P&gt;&lt;P&gt;Playing WAVE 'awesome.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I heard only random noise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the list of devices:&lt;/P&gt;&lt;P&gt;~ # aplay -l&lt;/P&gt;&lt;P&gt;**** List of PLAYBACK Hardware Devices ****&lt;/P&gt;&lt;P&gt;card 0: mxssgtl5000 [mxs_sgtl5000], device 0: HiFi Playback sgtl5000-0 []&lt;/P&gt;&lt;P&gt;&amp;nbsp; Subdevices: 1/1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;~ # arecord -l&lt;/P&gt;&lt;P&gt;**** List of CAPTURE Hardware Devices ****&lt;/P&gt;&lt;P&gt;card 0: mxssgtl5000 [mxs_sgtl5000], device 1: HiFi Capture sgtl5000-1 []&lt;/P&gt;&lt;P&gt;&amp;nbsp; Subdevices: 1/1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 13:13:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251294#M22977</guid>
      <dc:creator>aidamynzhasova</dc:creator>
      <dc:date>2013-10-30T13:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251295#M22978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aida,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From your description, it looks like the LINE_IN option is not selected in alsamixer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please run alsamixer and make sure that LINE_IN is selected for the capture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:12:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251295#M22978</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-10-30T15:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251296#M22979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;thanks for reply. I've tried to change "Capture Mux" to LINE_IN, but in this case I don't hear even noise, just silence.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 15:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251296#M22979</guid>
      <dc:creator>aidamynzhasova</dc:creator>
      <dc:date>2013-10-30T15:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251297#M22980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aida,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When selecting LINE_IN, please make sure you are connecting a stereo audio source to the LINE_IN jack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually connect my notebook analog output to the mx28evk LINE_IN jack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double check the volume level you are applying as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have my mx28evk at the moment to try, but linux-next with arecord/aplay a few weeks ago and it was working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 16:53:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251297#M22980</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-10-30T16:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251298#M22981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;I tried line input and it works. Thanks very much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Oct 2013 10:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251298#M22981</guid>
      <dc:creator>aidamynzhasova</dc:creator>
      <dc:date>2013-10-31T10:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251299#M22982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Craig,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please apply the four patches from Jack Lee available at:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_maintain"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/log/?h=imx_2.6.35_maintain&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 15:43:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251299#M22982</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2013-11-26T15:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 CODEC line-in noise on i.MX28</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251300#M22983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've recently been trying the imx_2.6.35_maintain branch of Freescale's repository. I'm finding problems with Jack Lee's patches—maybe they fix the noise issue, however they also introduce other problems: it's not possible to playback and record at different sample rates. E.g. using aplay and arecord:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In one terminal:&lt;/P&gt;&lt;PRE class="jive-pre"&gt;# aplay testing_1_2_3_4_repeated.wav&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;Playing WAVE 'testing_1_2_3_4_repeated.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while in another terminal:&lt;/P&gt;&lt;P class="panelContent preformattedContent"&gt;&lt;/P&gt;&lt;PRE class="jive-pre"&gt;# arecord -r 16000 /tmp/test.wav&lt;/PRE&gt;&lt;PRE class="jive-pre"&gt;Recording WAVE '/tmp/test.wav' : Unsigned 8 bit, Rate 16000 Hz, Mono &lt;/PRE&gt;&lt;P&gt;The arecord doesn't show any error messages, however it doesn't get any audio data. The file /tmp/test.wav is just 44 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using a somewhat modified sound driver, due to the hardware we're using which is based on SGTL5000 but with some changes. I modified my code to match up with these patches, namely, duplicating a change in the ALSA SoC machine driver of &lt;CODE&gt;sound/soc/mxs/mxs-devb.c&lt;/CODE&gt; — and I'm still having this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I record at the same sample rate as the play, then it is okay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Feb 2014 23:01:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-CODEC-line-in-noise-on-i-MX28/m-p/251300#M22983</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2014-02-09T23:01:50Z</dc:date>
    </item>
  </channel>
</rss>

