<?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>i.MX ProcessorsのトピックRe: SGTL5000 access/set PEQ from Linux userspace</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398662#M58602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried I2C tools. &lt;/P&gt;&lt;P&gt;i2cdetect shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;/P&gt;&lt;P&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- -- -- -- -- -- -- UU -- -- -- -- --&lt;/P&gt;&lt;P&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;20: 20 21 22 -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;50: -- -- -- -- -- -- 56 -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UU means - that the address is used - opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try i2cdump or i2cset i get error:&lt;/P&gt;&lt;P&gt;Error: Could not set address to 0x0a: Device or resource busy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is , Alsa driver in kernel hold the SGTL5000 I2C address open, therefore there is no possibility to communicate with SGTL5000 directly through I2C bus.&lt;/P&gt;&lt;P&gt;Is there a way to set the wanted parameter for PEQ to SGTL5000 through Alsa driver?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 06:48:25 GMT</pubDate>
    <dc:creator>michalbury</dc:creator>
    <dc:date>2015-05-05T06:48:25Z</dc:date>
    <item>
      <title>SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398660#M58600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;we working on custom made system with i.MX25 module and SGTL5000 codec. All works fine, we use ALSA subsystem to capture audio and&amp;nbsp; a software band pass filter in our application.&lt;/P&gt;&lt;P&gt;I have seen possibility to set a band pass filter directly in SGTL5000 codec, and already have coefficients calculated. Now the question is how to write the coefficients to SGTL5000 through Llinux user space?&lt;/P&gt;&lt;P&gt;It's not possible to do it directly through I2C because the Chip is used by ALSA. &lt;/P&gt;&lt;P&gt;We don't want to modify SGTL5000 kernel driver. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Michal Bury&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2015 11:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398660#M58600</guid>
      <dc:creator>michalbury</dc:creator>
      <dc:date>2015-05-04T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398661#M58601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems one can try i2c tools&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-1477"&gt;All Boards I2C-tools&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 00:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398661#M58601</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-05-05T00:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398662#M58602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have already tried I2C tools. &lt;/P&gt;&lt;P&gt;i2cdetect shows:&lt;/P&gt;&lt;P&gt;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;/P&gt;&lt;P&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- -- -- -- -- -- -- UU -- -- -- -- --&lt;/P&gt;&lt;P&gt;10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;20: 20 21 22 -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;50: -- -- -- -- -- -- 56 -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UU means - that the address is used - opened.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try i2cdump or i2cset i get error:&lt;/P&gt;&lt;P&gt;Error: Could not set address to 0x0a: Device or resource busy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is , Alsa driver in kernel hold the SGTL5000 I2C address open, therefore there is no possibility to communicate with SGTL5000 directly through I2C bus.&lt;/P&gt;&lt;P&gt;Is there a way to set the wanted parameter for PEQ to SGTL5000 through Alsa driver?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 06:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398662#M58602</guid>
      <dc:creator>michalbury</dc:creator>
      <dc:date>2015-05-05T06:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398663#M58603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will be two ways to access the codec registers.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Userspace code can access the i2c host adapters via device nodes. To operate on the nth adapter open /dev/i2c-n. After you have a file descriptor tied to a host adapter, you can command it through ioctls to connect to specific slave devices attached to it. (Ref: Essential Linux device drivers chapter 19 user mod I2C)(If codec interfaced with i2c bus)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You&amp;nbsp; can implement wrapper methods using ALSA lib apis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 07:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398663#M58603</guid>
      <dc:creator>ask</dc:creator>
      <dc:date>2015-05-05T07:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398664#M58604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the -f option in i2cdump, i2cset to bypass the check on whether the device is in use by the kernel if you are running with root permissions.&amp;nbsp; For example, on my system I have a EEPROM on i2c bus 0 at address 0x50 that is used by a kernel driver, but 'i2cdump -f -y -r 0-0xff 0 0x50' will dump the contents.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 15:02:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398664#M58604</guid>
      <dc:creator>andrewdyer</dc:creator>
      <dc:date>2015-05-05T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398665#M58605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes with -f option I can access the codec registers. Now I need to do this from C code. I will investigate the i2cdump sources to see how gain access to used device. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 05:16:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398665#M58605</guid>
      <dc:creator>michalbury</dc:creator>
      <dc:date>2015-05-06T05:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398666#M58606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While this is assumed answered, I can -f attempt to read the SGTL5000 registers, but the values that get returned make no sense and change on every read.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints on the wrapper methods using ALSA lib API's? Digging through the ALSA API's but have not found those yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 00:26:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398666#M58606</guid>
      <dc:creator>stevenriedl</dc:creator>
      <dc:date>2017-07-27T00:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: SGTL5000 access/set PEQ from Linux userspace</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398667#M58607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ask,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which files in the ALSA lib have to be used for implementing wrapper, for i2c codec registers access?&lt;/P&gt;&lt;P&gt;If there is a specific file, how to modify it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 09:34:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SGTL5000-access-set-PEQ-from-Linux-userspace/m-p/398667#M58607</guid>
      <dc:creator>abhijeet_ghodga</dc:creator>
      <dc:date>2020-02-17T09:34:52Z</dc:date>
    </item>
  </channel>
</rss>

