<?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のトピックIMX8MM - Multiple audio devices/channels</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Multiple-audio-devices-channels/m-p/1508771#M194056</link>
    <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I'm developing a product with IMX8MM where I need to have 6 independent audio devices/channels.&lt;/P&gt;&lt;P&gt;I need each channel to be able to establish calls to one or several sip phones (like above image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crcn_0-1660889083054.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190684iD03CF67910134B30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crcn_0-1660889083054.png" alt="crcn_0-1660889083054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In A, i have an analogic microphone and speaker.&lt;/P&gt;&lt;P&gt;I find the PCM3168A codec, who have 6 inputs/8 outputs, I make a custom prototype with that codec, connected to J1001 connector of IMX8mm EVK (see schematic.pdf)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crcn_2-1660890069258.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190689i4076FE3FBF2B9247/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crcn_2-1660890069258.png" alt="crcn_2-1660890069258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on &lt;A href="https://bootlin.com/blog/eight-channels-audio-on-i-mx7-with-pcm3168/" target="_blank" rel="noopener"&gt;https://bootlin.com/blog/eight-channels-audio-on-i-mx7-with-pcm3168/&lt;/A&gt; I configured the device tree:&lt;/P&gt;&lt;P&gt;sound-pcm3168a {&lt;BR /&gt;compatible = "simple-audio-card";&lt;BR /&gt;simple-audio-card,name = "pcm3168a-audio";&lt;BR /&gt;simple-audio-card,widgets = "Speaker", "Channel1out",&lt;BR /&gt;"Speaker", "Channel2out",&lt;BR /&gt;"Speaker", "Channel3out",&lt;BR /&gt;"Speaker", "Channel4out",&lt;BR /&gt;"Speaker", "Channel5out",&lt;BR /&gt;"Speaker", "Channel6out",&lt;BR /&gt;"Microphone", "Channel1in",&lt;BR /&gt;"Microphone", "Channel2in",&lt;BR /&gt;"Microphone", "Channel3in",&lt;BR /&gt;"Microphone", "Channel4in",&lt;BR /&gt;"Microphone", "Channel5in",&lt;BR /&gt;"Microphone", "Channel6in";&lt;BR /&gt;simple-audio-card,routing = "Channel1out", "AOUT1L",&lt;BR /&gt;"Channel2out", "AOUT1R",&lt;BR /&gt;"Channel3out", "AOUT2L",&lt;BR /&gt;"Channel4out", "AOUT2R",&lt;BR /&gt;"Channel5out", "AOUT3L",&lt;BR /&gt;"Channel6out", "AOUT3R",&lt;BR /&gt;"Channel1in", "AIN1L",&lt;BR /&gt;"Channel2in", "AIN1R",&lt;BR /&gt;"Channel3in", "AIN2L",&lt;BR /&gt;"Channel4in", "AIN2R",&lt;BR /&gt;"Channel5in", "AIN3L",&lt;BR /&gt;"Channel6in", "AIN3R";&lt;BR /&gt;simple-audio-card,dai-link@1 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;pcm3168_dac&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;pcm3168_dac&amp;gt;;&lt;BR /&gt;cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;dai-tdm-slot-num = &amp;lt;8&amp;gt;;&lt;BR /&gt;dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;pcm3168_dac: codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;pcm3168a 0&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;simple-audio-card,dai-link@2 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;pcm3168_adc&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;pcm3168_adc&amp;gt;;&lt;BR /&gt;cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;dai-tdm-slot-num = &amp;lt;8&amp;gt;;&lt;BR /&gt;dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;pcm3168_adc: codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;pcm3168a 1&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;///I2C3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pcm3168a: audio-codec@44 {&lt;BR /&gt;compatible = "ti,pcm3168a";&lt;BR /&gt;#sound-dai-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x44&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio4 17 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;clock-names = "scki";&lt;BR /&gt;VDD1-supply = &amp;lt;&amp;amp;supply3v3&amp;gt;;&lt;BR /&gt;VDD2-supply = &amp;lt;&amp;amp;supply3v3&amp;gt;;&lt;BR /&gt;VCCAD1-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCAD2-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCDA1-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCDA2-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pcm3168a&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//iomux&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pinctrl_pcm3168a: pinctrl_pcm3168a{&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17 0x19 /*RESET*/&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x19 /*OVF*/&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x19 /*ZERO*/&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When loaded the device tree on EVK, I have:&lt;/P&gt;&lt;P&gt;[ 2.375321] debugfs: Directory '30010000.sai' with parent 'pcm3168a-audio' already present!&lt;BR /&gt;[ 2.383813] asoc-simple-card sound-pcm3168a: pcm3168a-dac &amp;lt;-&amp;gt; 30010000.sai mapping ok&lt;BR /&gt;[ 2.391733] asoc-simple-card sound-pcm3168a: pcm3168a-adc &amp;lt;-&amp;gt; 30010000.sai mapping ok&lt;BR /&gt;[ 2.399624] asoc-simple-card sound-pcm3168a: ASoC: no DMI vendor name!&lt;/P&gt;&lt;P&gt;[ 2.552554] ALSA device list:&lt;BR /&gt;[ 2.557548] #0: imx-spdif&lt;BR /&gt;[ 2.568080] #1: imx-audio-micfil&lt;BR /&gt;[ 2.571488] #2: pcm3168a-audio&lt;BR /&gt;[ 2.574717] #3: wm8524-audio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -l&lt;/STRONG&gt;&lt;BR /&gt;**** List of PLAYBACK Hardware Devices ****&lt;BR /&gt;card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 2: pcm3168aaudio [pcm3168a-audio], device 0: 30010000.sai-pcm3168a-dac pcm3168a-dac-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 3: wm8524audio [wm8524-audio], device 0: 30030000.sai-wm8524-hifi wm8524-hifi-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arecord -l&lt;/STRONG&gt;&lt;BR /&gt;**** List of CAPTURE Hardware Devices ****&lt;BR /&gt;card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 1: imxaudiomicfil [imx-audio-micfil], device 0: micfil hifi snd-soc-dummy-dai-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 2: pcm3168aaudio [pcm3168a-audio], device 1: 30010000.sai-pcm3168a-adc pcm3168a-adc-1 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When tried to play a audio:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:2,0 48000.wav &amp;nbsp;&amp;nbsp; //PCM3168 don't work&lt;/STRONG&gt;&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;aplay: set_params:1339: Sample format S16_LE non available&lt;BR /&gt;Available formats:&lt;BR /&gt;- S24_LE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:2,0 --format=S24_LE 48000.wav &amp;nbsp; //PCM3168 don't work&lt;/STRONG&gt;&lt;BR /&gt;Warning: format is changed to S16_LE&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;aplay: set_params:1339: Sample format S16_LE non available&lt;BR /&gt;Available formats:&lt;BR /&gt;- S24_LE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:3,0 48000.wav&amp;nbsp; //wm8524 work&lt;/STRONG&gt;&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;^CAborted by signal Interrupt...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When try to record&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arecord -D hw:2,0 sample.wav&lt;/STRONG&gt;&lt;BR /&gt;arecord: main:828: audio open error: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question are:&lt;/P&gt;&lt;P&gt;1-Can I use the PCM3168A to have the 6 independent audios?&lt;/P&gt;&lt;P&gt;2-I&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;f yes, has anyone managed to configure the pcm3168 with imx8mm?&lt;/SPAN&gt;&lt;/SPAN&gt; Anyone can&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; help me with the device tree configuration?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;2-If not, the solution can passed to using 6 simple codecs (like wm8960 that was on many imx evk)? There are other options (but simple to implement in this micro)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks to all.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 11:31:13 GMT</pubDate>
    <dc:creator>crcn</dc:creator>
    <dc:date>2022-08-19T11:31:13Z</dc:date>
    <item>
      <title>IMX8MM - Multiple audio devices/channels</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Multiple-audio-devices-channels/m-p/1508771#M194056</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I'm developing a product with IMX8MM where I need to have 6 independent audio devices/channels.&lt;/P&gt;&lt;P&gt;I need each channel to be able to establish calls to one or several sip phones (like above image)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crcn_0-1660889083054.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190684iD03CF67910134B30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crcn_0-1660889083054.png" alt="crcn_0-1660889083054.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In A, i have an analogic microphone and speaker.&lt;/P&gt;&lt;P&gt;I find the PCM3168A codec, who have 6 inputs/8 outputs, I make a custom prototype with that codec, connected to J1001 connector of IMX8mm EVK (see schematic.pdf)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="crcn_2-1660890069258.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/190689i4076FE3FBF2B9247/image-size/medium?v=v2&amp;amp;px=400" role="button" title="crcn_2-1660890069258.png" alt="crcn_2-1660890069258.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Based on &lt;A href="https://bootlin.com/blog/eight-channels-audio-on-i-mx7-with-pcm3168/" target="_blank" rel="noopener"&gt;https://bootlin.com/blog/eight-channels-audio-on-i-mx7-with-pcm3168/&lt;/A&gt; I configured the device tree:&lt;/P&gt;&lt;P&gt;sound-pcm3168a {&lt;BR /&gt;compatible = "simple-audio-card";&lt;BR /&gt;simple-audio-card,name = "pcm3168a-audio";&lt;BR /&gt;simple-audio-card,widgets = "Speaker", "Channel1out",&lt;BR /&gt;"Speaker", "Channel2out",&lt;BR /&gt;"Speaker", "Channel3out",&lt;BR /&gt;"Speaker", "Channel4out",&lt;BR /&gt;"Speaker", "Channel5out",&lt;BR /&gt;"Speaker", "Channel6out",&lt;BR /&gt;"Microphone", "Channel1in",&lt;BR /&gt;"Microphone", "Channel2in",&lt;BR /&gt;"Microphone", "Channel3in",&lt;BR /&gt;"Microphone", "Channel4in",&lt;BR /&gt;"Microphone", "Channel5in",&lt;BR /&gt;"Microphone", "Channel6in";&lt;BR /&gt;simple-audio-card,routing = "Channel1out", "AOUT1L",&lt;BR /&gt;"Channel2out", "AOUT1R",&lt;BR /&gt;"Channel3out", "AOUT2L",&lt;BR /&gt;"Channel4out", "AOUT2R",&lt;BR /&gt;"Channel5out", "AOUT3L",&lt;BR /&gt;"Channel6out", "AOUT3R",&lt;BR /&gt;"Channel1in", "AIN1L",&lt;BR /&gt;"Channel2in", "AIN1R",&lt;BR /&gt;"Channel3in", "AIN2L",&lt;BR /&gt;"Channel4in", "AIN2R",&lt;BR /&gt;"Channel5in", "AIN3L",&lt;BR /&gt;"Channel6in", "AIN3R";&lt;BR /&gt;simple-audio-card,dai-link@1 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;pcm3168_dac&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;pcm3168_dac&amp;gt;;&lt;BR /&gt;cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;dai-tdm-slot-num = &amp;lt;8&amp;gt;;&lt;BR /&gt;dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;pcm3168_dac: codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;pcm3168a 0&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;simple-audio-card,dai-link@2 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;pcm3168_adc&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;pcm3168_adc&amp;gt;;&lt;BR /&gt;cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai1&amp;gt;;&lt;BR /&gt;dai-tdm-slot-num = &amp;lt;8&amp;gt;;&lt;BR /&gt;dai-tdm-slot-width = &amp;lt;32&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;pcm3168_adc: codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;pcm3168a 1&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;///I2C3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pcm3168a: audio-codec@44 {&lt;BR /&gt;compatible = "ti,pcm3168a";&lt;BR /&gt;#sound-dai-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0x44&amp;gt;;&lt;BR /&gt;reset-gpios = &amp;lt;&amp;amp;gpio4 17 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI1_ROOT&amp;gt;;&lt;BR /&gt;clock-names = "scki";&lt;BR /&gt;VDD1-supply = &amp;lt;&amp;amp;supply3v3&amp;gt;;&lt;BR /&gt;VDD2-supply = &amp;lt;&amp;amp;supply3v3&amp;gt;;&lt;BR /&gt;VCCAD1-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCAD2-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCDA1-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;VCCDA2-supply = &amp;lt;&amp;amp;supply5v0&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pcm3168a&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//iomux&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;pinctrl_pcm3168a: pinctrl_pcm3168a{&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD5_GPIO4_IO17 0x19 /*RESET*/&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x19 /*OVF*/&lt;BR /&gt;MX8MM_IOMUXC_SAI1_TXD7_GPIO4_IO19 0x19 /*ZERO*/&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When loaded the device tree on EVK, I have:&lt;/P&gt;&lt;P&gt;[ 2.375321] debugfs: Directory '30010000.sai' with parent 'pcm3168a-audio' already present!&lt;BR /&gt;[ 2.383813] asoc-simple-card sound-pcm3168a: pcm3168a-dac &amp;lt;-&amp;gt; 30010000.sai mapping ok&lt;BR /&gt;[ 2.391733] asoc-simple-card sound-pcm3168a: pcm3168a-adc &amp;lt;-&amp;gt; 30010000.sai mapping ok&lt;BR /&gt;[ 2.399624] asoc-simple-card sound-pcm3168a: ASoC: no DMI vendor name!&lt;/P&gt;&lt;P&gt;[ 2.552554] ALSA device list:&lt;BR /&gt;[ 2.557548] #0: imx-spdif&lt;BR /&gt;[ 2.568080] #1: imx-audio-micfil&lt;BR /&gt;[ 2.571488] #2: pcm3168a-audio&lt;BR /&gt;[ 2.574717] #3: wm8524-audio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -l&lt;/STRONG&gt;&lt;BR /&gt;**** List of PLAYBACK Hardware Devices ****&lt;BR /&gt;card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 2: pcm3168aaudio [pcm3168a-audio], device 0: 30010000.sai-pcm3168a-dac pcm3168a-dac-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 3: wm8524audio [wm8524-audio], device 0: 30030000.sai-wm8524-hifi wm8524-hifi-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arecord -l&lt;/STRONG&gt;&lt;BR /&gt;**** List of CAPTURE Hardware Devices ****&lt;BR /&gt;card 0: imxspdif [imx-spdif], device 0: S/PDIF PCM snd-soc-dummy-dai-0 [S/PDIF PCM snd-soc-dummy-dai-0]&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 1: imxaudiomicfil [imx-audio-micfil], device 0: micfil hifi snd-soc-dummy-dai-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 2: pcm3168aaudio [pcm3168a-audio], device 1: 30010000.sai-pcm3168a-adc pcm3168a-adc-1 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When tried to play a audio:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:2,0 48000.wav &amp;nbsp;&amp;nbsp; //PCM3168 don't work&lt;/STRONG&gt;&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;aplay: set_params:1339: Sample format S16_LE non available&lt;BR /&gt;Available formats:&lt;BR /&gt;- S24_LE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:2,0 --format=S24_LE 48000.wav &amp;nbsp; //PCM3168 don't work&lt;/STRONG&gt;&lt;BR /&gt;Warning: format is changed to S16_LE&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;aplay: set_params:1339: Sample format S16_LE non available&lt;BR /&gt;Available formats:&lt;BR /&gt;- S24_LE&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aplay -D hw:3,0 48000.wav&amp;nbsp; //wm8524 work&lt;/STRONG&gt;&lt;BR /&gt;Playing WAVE '48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&lt;BR /&gt;^CAborted by signal Interrupt...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When try to record&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;arecord -D hw:2,0 sample.wav&lt;/STRONG&gt;&lt;BR /&gt;arecord: main:828: audio open error: No such file or directory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, my question are:&lt;/P&gt;&lt;P&gt;1-Can I use the PCM3168A to have the 6 independent audios?&lt;/P&gt;&lt;P&gt;2-I&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;f yes, has anyone managed to configure the pcm3168 with imx8mm?&lt;/SPAN&gt;&lt;/SPAN&gt; Anyone can&lt;SPAN class=""&gt;&lt;SPAN class=""&gt; help me with the device tree configuration?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;2-If not, the solution can passed to using 6 simple codecs (like wm8960 that was on many imx evk)? There are other options (but simple to implement in this micro)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Thanks to all.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 11:31:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MM-Multiple-audio-devices-channels/m-p/1508771#M194056</guid>
      <dc:creator>crcn</dc:creator>
      <dc:date>2022-08-19T11:31:13Z</dc:date>
    </item>
  </channel>
</rss>

