<?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 WM8974 codec setup in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/WM8974-codec-setup/m-p/812837#M5929</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 a custom board using Vybrid processor.&lt;/P&gt;&lt;P&gt;We are trying to add audio support using WM8974 codec, using i2c + i2c&lt;/P&gt;&lt;P&gt;IC codec seems to be working (i2cdetect shows is at 0x1A)&lt;/P&gt;&lt;P&gt;However, Im not sure about changes on devicetree and/or&amp;nbsp;linux/sound/soc/fsl/fsl-asoc-card.c)&lt;/P&gt;&lt;P&gt;This is my device tree sound related:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;sound { &lt;BR /&gt;compatible = "fsl,imx-audio-wm8974"; &lt;BR /&gt;audio-cpu = &amp;lt;&amp;amp;sai3&amp;gt;; &lt;BR /&gt;audio-codec = &amp;lt;&amp;amp;wm8974_codec&amp;gt;; &lt;BR /&gt;status = "okay"; &lt;BR /&gt;};&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;wm8974_codec: wm8974@1a { &lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;; &lt;BR /&gt;compatible = "wlf,wm8974"; &lt;BR /&gt;reg = &amp;lt;0x1a&amp;gt;; &lt;BR /&gt;clocks = &amp;lt;&amp;amp;osc 0&amp;gt;; &lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;I also added at fsl-asoc-card.c:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;} else if (of_device_is_compatible(np, "fsl,imx-audio-wm8974")) { &lt;BR /&gt;codec_dai_name = "wlf,wm8974"; &lt;BR /&gt;priv-&amp;gt;card.set_bias_level = fsl_asoc_card_set_bias_level; &lt;BR /&gt;priv-&amp;gt;dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P&gt;On dmesg I got:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.283707] fsl-asoc-card sound: ASoC: CPU DAI (null) not registered&lt;/P&gt;&lt;P&gt;[ 0.321637] fsl-asoc-card sound: ASoC: CODEC DAI wlf,wm8974 not registered&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WM8974 is enabled at kernel (not as a module).&lt;/P&gt;&lt;P&gt;Any tips or suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2018 15:53:04 GMT</pubDate>
    <dc:creator>leonardogiordan</dc:creator>
    <dc:date>2018-06-25T15:53:04Z</dc:date>
    <item>
      <title>WM8974 codec setup</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/WM8974-codec-setup/m-p/812837#M5929</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 a custom board using Vybrid processor.&lt;/P&gt;&lt;P&gt;We are trying to add audio support using WM8974 codec, using i2c + i2c&lt;/P&gt;&lt;P&gt;IC codec seems to be working (i2cdetect shows is at 0x1A)&lt;/P&gt;&lt;P&gt;However, Im not sure about changes on devicetree and/or&amp;nbsp;linux/sound/soc/fsl/fsl-asoc-card.c)&lt;/P&gt;&lt;P&gt;This is my device tree sound related:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;sound { &lt;BR /&gt;compatible = "fsl,imx-audio-wm8974"; &lt;BR /&gt;audio-cpu = &amp;lt;&amp;amp;sai3&amp;gt;; &lt;BR /&gt;audio-codec = &amp;lt;&amp;amp;wm8974_codec&amp;gt;; &lt;BR /&gt;status = "okay"; &lt;BR /&gt;};&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;wm8974_codec: wm8974@1a { &lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;; &lt;BR /&gt;compatible = "wlf,wm8974"; &lt;BR /&gt;reg = &amp;lt;0x1a&amp;gt;; &lt;BR /&gt;clocks = &amp;lt;&amp;amp;osc 0&amp;gt;; &lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;I also added at fsl-asoc-card.c:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;} else if (of_device_is_compatible(np, "fsl,imx-audio-wm8974")) { &lt;BR /&gt;codec_dai_name = "wlf,wm8974"; &lt;BR /&gt;priv-&amp;gt;card.set_bias_level = fsl_asoc_card_set_bias_level; &lt;BR /&gt;priv-&amp;gt;dai_fmt |= SND_SOC_DAIFMT_CBM_CFM;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;}&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;...&lt;/P&gt;&lt;P&gt;On dmesg I got:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;[ 0.283707] fsl-asoc-card sound: ASoC: CPU DAI (null) not registered&lt;/P&gt;&lt;P&gt;[ 0.321637] fsl-asoc-card sound: ASoC: CODEC DAI wlf,wm8974 not registered&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WM8974 is enabled at kernel (not as a module).&lt;/P&gt;&lt;P&gt;Any tips or suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/WM8974-codec-setup/m-p/812837#M5929</guid>
      <dc:creator>leonardogiordan</dc:creator>
      <dc:date>2018-06-25T15:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: WM8974 codec setup</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/WM8974-codec-setup/m-p/812838#M5930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should adapt de kernel config to include the codec. But you probably already found out.&lt;/P&gt;&lt;P&gt;Do you have a working solution with the wm8974 codec in the meantime? I have all drivers registered, but get pcm_write errors. Probably due to some clk configuration I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 19:59:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/WM8974-codec-setup/m-p/812838#M5930</guid>
      <dc:creator>smvankampen</dc:creator>
      <dc:date>2020-05-07T19:59:22Z</dc:date>
    </item>
  </channel>
</rss>

