<?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: Need support for PCm5242 Bringup in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1525003#M195371</link>
    <description>means exactly what need to be done?</description>
    <pubDate>Tue, 20 Sep 2022 11:42:32 GMT</pubDate>
    <dc:creator>divyeshmarne0</dc:creator>
    <dc:date>2022-09-20T11:42:32Z</dc:date>
    <item>
      <title>Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524853#M195356</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We are working on PCM5242 Audio DAC with NXP processor in ANdorid11 code base.&lt;/P&gt;&lt;P&gt;I have integrated all the changes in DTSI and driver file.&lt;/P&gt;&lt;P&gt;After changes, DAC has been registered successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the all clocks like WCLK MCLK BCLK and DIN pin , We are getting all the clocks properly while playing audio file. But NO sound.&lt;/P&gt;&lt;P&gt;Error we are facing:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;E audio_hw_primary: start_output_stream: Invalid PCM card id: -1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I audio_hw_primary: start_output_stream: primary: 1, out: 0xee944630, device: 131072, address: , mode: 0, flags 0x2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;I audio_hw_primary: select_output_device(), headphone 0 ,headset 0 ,speaker 2&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;D audio_hw_primary: start_output_stream: pcm_open: card: -1, pcm_device_id: 0, rate: 48000, channel: 2, format: 0, period_size: 0xc0, flag: 9&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Looks like no card present:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;evk_8mm:/ # cat /proc/asound/card0/pcm0p/*&lt;BR /&gt;card: 0&lt;BR /&gt;device: 0&lt;BR /&gt;subdevice: 0&lt;BR /&gt;stream: PLAYBACK&lt;BR /&gt;id: 30050000.sai-pcm512x-hifi pcm512x-hifi-0&lt;BR /&gt;name: 30050000.sai-pcm512x-hifi pcm512x-hifi-0&lt;BR /&gt;subname: subdevice #0&lt;BR /&gt;class: 0&lt;BR /&gt;subclass: 0&lt;BR /&gt;subdevices_count: 1&lt;BR /&gt;subdevices_avail: 1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I2C dump:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. When audio not playing:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyeshmarne0_6-1663662938852.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194279i8109192E6C662D8D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyeshmarne0_6-1663662938852.png" alt="divyeshmarne0_6-1663662938852.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2. When trying to play audio file&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyeshmarne0_5-1663662922815.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194278iCF56890278B8265A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyeshmarne0_5-1663662922815.png" alt="divyeshmarne0_5-1663662922815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DTSI changes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sound-pcm512x {&lt;BR /&gt;compatible = "simple-audio-card";&lt;BR /&gt;simple-audio-card,name = "pcm512x-audio";&lt;BR /&gt;simple-audio-card,format = "i2s";&lt;BR /&gt;simple-audio-card,bitclock-master = &amp;lt;&amp;amp;dailink0_master4&amp;gt;;&lt;BR /&gt;simple-audio-card,frame-master = &amp;lt;&amp;amp;dailink0_master4&amp;gt;;&lt;/P&gt;&lt;P&gt;simple-audio-card,widgets =&lt;BR /&gt;"Line", "Left Line Out Jack",&lt;BR /&gt;"Line", "Right Line Out Jack";&lt;BR /&gt;simple-audio-card,routing =&lt;BR /&gt;"Left Line Out Jack", "OUTL",&lt;BR /&gt;"Right Line Out Jack", "OUTR";&lt;BR /&gt;dailink0_master4: simple-audio-card,cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai5&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;simple-audio-card,codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;pcm5242&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI5_ROOT&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pcm5242: pcm5242@4c {&lt;BR /&gt;compatible = "ti,pcm5242";&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x4c&amp;gt;;&lt;BR /&gt;AVDD-supply = &amp;lt;&amp;amp;reg_3v3_vext&amp;gt;;&lt;BR /&gt;DVDD-supply = &amp;lt;&amp;amp;reg_3v3_vext&amp;gt;;&lt;BR /&gt;CPVDD-supply = &amp;lt;&amp;amp;reg_3v3_vext&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;ext_osc_22m&amp;gt;, &amp;lt;&amp;amp;ext_osc_24m&amp;gt;;&lt;BR /&gt;clock-names = "sclk0", "sclk1";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;sai5 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_sai5&amp;gt;;&lt;BR /&gt;assigned-clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI5&amp;gt;;&lt;BR /&gt;assigned-clock-parents = &amp;lt;&amp;amp;clk IMX8MM_AUDIO_PLL1_OUT&amp;gt;;&lt;BR /&gt;assigned-clock-rates = &amp;lt;24576000&amp;gt;;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_sai5: sai5grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MM_IOMUXC_SAI5_MCLK_SAI5_MCLK 0xd6 /*MCLK*/&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD2_SAI5_TX_BCLK 0xd6 /*BCLK*/&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD3_SAI5_TX_DATA0 0xd6 /*DIN*/&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD1_SAI5_TX_SYNC 0xd6 /*WCLK*/&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: WE dont have proper driver. We are using driver of different family which is pcm5142.&lt;/P&gt;&lt;P&gt;sound/soc/codecs/pcm512x-i2c.c&lt;/P&gt;&lt;P&gt;sound/soc/codecs/pcm512x.c&lt;/P&gt;&lt;P&gt;Need your urgent support&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Divyesh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:36:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524853#M195356</guid>
      <dc:creator>divyeshmarne0</dc:creator>
      <dc:date>2022-09-20T08:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524945#M195363</link>
      <description>&lt;P&gt;Please find below logs:&lt;/P&gt;&lt;P&gt;01-01 00:00:00.234 0 0 E imx-pcm512x sound-pcm512x: failed to find codec device&lt;BR /&gt;01-01 00:00:01.148 0 0 E pcm512x 3-004c: divyesh enter into CONFIG_OF func :pcm512x_probe&lt;BR /&gt;01-01 00:00:01.155 0 0 E pcm512x 3-004c: divyesh enter into CONFIG_OF and dev-&amp;gt;of_node func :pcm512x_probe&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="divyeshmarne0_0-1663668245637.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/194301i11D810DFE3ACA693/image-size/medium?v=v2&amp;amp;px=400" role="button" title="divyeshmarne0_0-1663668245637.png" alt="divyeshmarne0_0-1663668245637.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 10:04:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524945#M195363</guid>
      <dc:creator>divyeshmarne0</dc:creator>
      <dc:date>2022-09-20T10:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524981#M195366</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192768"&gt;@divyeshmarne0&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Android layer changes are required related to "PCM5242 Audio DAC"&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 11:01:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524981#M195366</guid>
      <dc:creator>qwerty1</dc:creator>
      <dc:date>2022-09-20T11:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524982#M195367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196035"&gt;@qwerty1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Could you please specify the what changes required?&lt;/P&gt;&lt;P&gt;Please share any reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Divyesh&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 11:07:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524982#M195367</guid>
      <dc:creator>divyeshmarne0</dc:creator>
      <dc:date>2022-09-20T11:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524985#M195368</link>
      <description>&lt;P&gt;Sorry, I don't have any reference.&lt;/P&gt;&lt;P&gt;First check in device/nxp folder [Files- audio_policy_configuartion and audio_effects.xml]. Then vendor folder[Audio HAL changes]&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 11:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524985#M195368</guid>
      <dc:creator>qwerty1</dc:creator>
      <dc:date>2022-09-20T11:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524990#M195369</link>
      <description>as per log its identifying your card id as -1. You need to update this in Audio HAL changes</description>
      <pubDate>Tue, 20 Sep 2022 11:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1524990#M195369</guid>
      <dc:creator>qwerty1</dc:creator>
      <dc:date>2022-09-20T11:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1525003#M195371</link>
      <description>means exactly what need to be done?</description>
      <pubDate>Tue, 20 Sep 2022 11:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1525003#M195371</guid>
      <dc:creator>divyeshmarne0</dc:creator>
      <dc:date>2022-09-20T11:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need support for PCm5242 Bringup</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1525678#M195432</link>
      <description>&lt;P&gt;FYI. Please read the Chapter 16 for audio codec porting.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 08:21:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-support-for-PCm5242-Bringup/m-p/1525678#M195432</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2022-09-21T08:21:48Z</dc:date>
    </item>
  </channel>
</rss>

