<?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のトピックwm8974 audio codec imx machine driver help</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643974#M98290</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 am doing bring-up of imx6qp based custom board. Last part of my bring up is audio codec.We are using&amp;nbsp;wm8974 codec connected as slave device on i2c3 bus. I can see codec address on I2C bus using i2cdetect but i2cdump fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found wm-8974 codec driver is kernel and written small imx-wm8974 driver after modifying imx-sgtl5000.&lt;/P&gt;&lt;P&gt;# insmod /lib/modules/snd-soc-imx-wm8974.ko&lt;BR /&gt;imx-wm8974 sound: ASoC: CODEC DAI wm8974 not registered&lt;BR /&gt;imx-wm8974 sound: snd_soc_register_card failed (-517)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codec: wm8974@1a {&lt;BR /&gt; compatible = "wlf,wm8974";&lt;BR /&gt; reg = &amp;lt;0x1a&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_CKO&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sound {&lt;BR /&gt; compatible = "fsl,imx6q-sabresd-wm8974",&lt;BR /&gt; "fsl,imx-audio-wm8974";&lt;BR /&gt; model = "wm8974-audio";&lt;BR /&gt; cpu-dai = &amp;lt;&amp;amp;ssi1&amp;gt;;&lt;BR /&gt; audio-codec = &amp;lt;&amp;amp;codec&amp;gt;;&lt;BR /&gt; audio-routing =&lt;BR /&gt; "Ext Spk", "SPKOUTL",&lt;BR /&gt; "Ext Spk", "SPKOUTR",&lt;BR /&gt; "Mic Jack", "Mic Bias";&lt;BR /&gt; mux-int-port = &amp;lt;1&amp;gt;;&lt;BR /&gt; mux-ext-port = &amp;lt;4&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my audmux pin mappings:&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* Audio MCLK */&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_audmux: audmuxgrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT23__AUD4_RXD 0x130b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT20__AUD4_TXC 0x130b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT21__AUD4_TXD 0x110b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT22__AUD4_TXFS 0x130b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;Does external and internal port setting is correct for above pin configuration ? Will appreciate if someone already wm8974 machine driver or some good working reference that I can cross check.&lt;/P&gt;&lt;P&gt;Will appreciate quick help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2016 04:48:23 GMT</pubDate>
    <dc:creator>vikasgahlan</dc:creator>
    <dc:date>2016-10-18T04:48:23Z</dc:date>
    <item>
      <title>wm8974 audio codec imx machine driver help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643974#M98290</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 am doing bring-up of imx6qp based custom board. Last part of my bring up is audio codec.We are using&amp;nbsp;wm8974 codec connected as slave device on i2c3 bus. I can see codec address on I2C bus using i2cdetect but i2cdump fails.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found wm-8974 codec driver is kernel and written small imx-wm8974 driver after modifying imx-sgtl5000.&lt;/P&gt;&lt;P&gt;# insmod /lib/modules/snd-soc-imx-wm8974.ko&lt;BR /&gt;imx-wm8974 sound: ASoC: CODEC DAI wm8974 not registered&lt;BR /&gt;imx-wm8974 sound: snd_soc_register_card failed (-517)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;codec: wm8974@1a {&lt;BR /&gt; compatible = "wlf,wm8974";&lt;BR /&gt; reg = &amp;lt;0x1a&amp;gt;;&lt;BR /&gt; clocks = &amp;lt;&amp;amp;clks IMX6QDL_CLK_CKO&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sound {&lt;BR /&gt; compatible = "fsl,imx6q-sabresd-wm8974",&lt;BR /&gt; "fsl,imx-audio-wm8974";&lt;BR /&gt; model = "wm8974-audio";&lt;BR /&gt; cpu-dai = &amp;lt;&amp;amp;ssi1&amp;gt;;&lt;BR /&gt; audio-codec = &amp;lt;&amp;amp;codec&amp;gt;;&lt;BR /&gt; audio-routing =&lt;BR /&gt; "Ext Spk", "SPKOUTL",&lt;BR /&gt; "Ext Spk", "SPKOUTR",&lt;BR /&gt; "Mic Jack", "Mic Bias";&lt;BR /&gt; mux-int-port = &amp;lt;1&amp;gt;;&lt;BR /&gt; mux-ext-port = &amp;lt;4&amp;gt;;&lt;BR /&gt; status = "okay";&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my audmux pin mappings:&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_GPIO_0__CCM_CLKO1 0x130b0 /* Audio MCLK */&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_audmux: audmuxgrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT23__AUD4_RXD 0x130b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT20__AUD4_TXC 0x130b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT21__AUD4_TXD 0x110b0&lt;BR /&gt; MX6QDL_PAD_DISP0_DAT22__AUD4_TXFS 0x130b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;Does external and internal port setting is correct for above pin configuration ? Will appreciate if someone already wm8974 machine driver or some good working reference that I can cross check.&lt;/P&gt;&lt;P&gt;Will appreciate quick help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 04:48:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643974#M98290</guid>
      <dc:creator>vikasgahlan</dc:creator>
      <dc:date>2016-10-18T04:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: wm8974 audio codec imx machine driver help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643975#M98291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="276492" data-username="vikasgahlan" href="https://community.nxp.com/people/vikasgahlan" style="color: #616d9a; background-color: #ffffff; border: 0px; font-weight: 600; text-decoration: underline; font-size: 11.9994px;"&gt;Vikas Gahlan&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Are you enabled this&amp;nbsp;&lt;STRONG&gt;SND_SOC_WM8974 &lt;/STRONG&gt;this config in kernel.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aravinth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 11:47:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643975#M98291</guid>
      <dc:creator>aravinthkumarja</dc:creator>
      <dc:date>2016-10-18T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: wm8974 audio codec imx machine driver help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643976#M98292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Aravinth. Yes, I am building wm8974 codec driver and imx machine drivers as loadable modules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@cs_0024b10000011002:~# lsmod&lt;BR /&gt;Module Size Used by&lt;BR /&gt;snd_soc_imx_wm8974 3992 0&lt;BR /&gt;snd_soc_wm8974 17427 0&lt;BR /&gt;ctel 2871 8&lt;BR /&gt;root@cs_0024b10000011002:~# cat /sys/kernel/debug/asoc/&lt;BR /&gt;codecs dais platforms&lt;BR /&gt;root@cs_0024b10000011002:~# cat /sys/kernel/debug/asoc/codecs&lt;BR /&gt;wm8974.2-001a&lt;BR /&gt;snd-soc-dummy&lt;BR /&gt;root@cs_0024b10000011002:~# cat /sys/kernel/debug/asoc/dais&lt;BR /&gt;wm8974-hifi&lt;BR /&gt;202c000.ssi&lt;BR /&gt;2034000.asrc&lt;BR /&gt;snd-soc-dummy-dai&lt;BR /&gt;root@cs_0024b10000011002:~# cat /sys/kernel/debug/asoc/platforms&lt;BR /&gt;202c000.ssi&lt;BR /&gt;2034000.asrc&lt;BR /&gt;snd-soc-dummy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;root@cs_0024b10000011002:~# i2cdetect 2&lt;BR /&gt;i2cdetect: WARNING! This program can confuse your I2C bus&lt;BR /&gt;Continue? [y/N] y&lt;BR /&gt; 0 1 2 3 4 5 6 7 8 9 a b c d e f&lt;BR /&gt;00: -- -- -- -- -- UU -- -- -- -- -- -- --&lt;BR /&gt;10: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --&lt;BR /&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;50: UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;BR /&gt;70: -- -- -- -- -- -- -- --&lt;BR /&gt;root@cs_0024b10000011002:~#&lt;BR /&gt;root@cs_0024b10000011002:~#&lt;BR /&gt;root@cs_0024b10000011002:~#&lt;BR /&gt;root@cs_0024b10000011002:~# i2cdump -f -r 0x0-0xff 2 0x1a&lt;BR /&gt;i2cdump: WARNING! This program can confuse your I2C bus&lt;BR /&gt;Continue? [y/N] y&lt;BR /&gt;i2cdump: block read failed&lt;BR /&gt;&lt;A href="mailto:root@cs_0024b10000011002:~"&gt;root@cs_0024b10000011002:~#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As wm8974 connected as slave on my board, so I revered ext and internal port in device config and modified wm8974.c as per slave daiformat. but no luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 18:30:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643976#M98292</guid>
      <dc:creator>vikasgahlan</dc:creator>
      <dc:date>2016-10-18T18:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: wm8974 audio codec imx machine driver help</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643977#M98293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it was developed from modifying imx-sgtl5000, seems&lt;/P&gt;&lt;P&gt;one can try to use it as Generic ASoC Sound Card, fsl-asoc-card.txt&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt?id=rel_imx_4.1.15_1.2.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/Documentation/devicetree/bindings/sound/fsl-asoc-card.txt?id=rel_imx_4.1.15_1.2.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;choosing for example compatible "fsl,imx-audio-sgtl5000"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:00:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/wm8974-audio-codec-imx-machine-driver-help/m-p/643977#M98293</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-10-19T01:00:11Z</dc:date>
    </item>
  </channel>
</rss>

