<?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: IMX8MMini sai, alsa capture no pcm data</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMini-sai-alsa-capture-no-pcm-data/m-p/1192978#M165915</link>
    <description>&lt;P&gt;Hi caozile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example of such configuration one can look at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-ak5558.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-ak5558.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-swpdm.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-swpdm.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sect.7.5 Audio Mixer (AUDMIX), sect.7.6 PDM Microphone Interface (MICFIL)&amp;nbsp;&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener"&gt;i.MX Linux Reference Manual​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2020 08:08:28 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-12-03T08:08:28Z</dc:date>
    <item>
      <title>IMX8MMini sai, alsa capture no pcm data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMini-sai-alsa-capture-no-pcm-data/m-p/1192829#M165904</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I used 8 digital mic to connect to the 4 RX pins of SAI5, and used arecord command to capture 8-channels PCM audio to the file, but only SAI5_Rx0 capture correct audio data, and the other 6 channels did not capture any data. May I ask what need to be configured?&lt;/P&gt;&lt;P&gt;I have measured the signal, the SAI5 RX0 - RX3 is all signaled&lt;/P&gt;&lt;P&gt;Here is dts configuration:&lt;/P&gt;&lt;P&gt;sound-sai5 {&lt;BR /&gt;compatible = "simple-audio-card";&lt;BR /&gt;simple-audio-card,name = "sai5-audio";&lt;BR /&gt;simple-audio-card,format = "i2s";&lt;BR /&gt;simple-audio-card,frame-master = &amp;lt;&amp;amp;mcpu&amp;gt;;&lt;BR /&gt;simple-audio-card,bitclock-master = &amp;lt;&amp;amp;mcpu&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;mcpu: simple-audio-card,cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai5&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;simple-audio-card,codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;dummycodec&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;dummycodec: codec@0 {&lt;BR /&gt;compatible = "snd-dummycodec";&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;amp;sai5 {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&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;49152000&amp;gt;;&lt;BR /&gt;clocks = &amp;lt;&amp;amp;clk IMX8MM_CLK_SAI5_IPG&amp;gt;, &amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_SAI5_ROOT&amp;gt;, &amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MM_CLK_DUMMY&amp;gt;, &amp;lt;&amp;amp;clk IMX8MM_AUDIO_PLL1_OUT&amp;gt;,&lt;BR /&gt;&amp;lt;&amp;amp;clk IMX8MM_AUDIO_PLL2_OUT&amp;gt;;&lt;BR /&gt;clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3", "pll8k", "pll11k";&lt;BR /&gt;fsl,dataline = &amp;lt;0 0xf 0xf&amp;gt;;&lt;BR /&gt;fsl,sai-asynchronous;&lt;BR /&gt;//fsl,sai-mclk-direction-output;&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&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXC_SAI5_RX_BCLK 0xd6&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXFS_SAI5_RX_SYNC 0xd6&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD0_SAI5_RX_DATA0 0xd6&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD1_SAI5_RX_DATA1 0xd6&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD2_SAI5_RX_DATA2 0xd6&lt;BR /&gt;MX8MM_IOMUXC_SAI5_RXD3_SAI5_RX_DATA3 0xd6&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sound card:&lt;/P&gt;&lt;P&gt;root@imx8mmlpddr4evk:/tmp# arecord -l&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: btscoaudio [bt-sco-audio], device 0: 30020000.sai-bt-sco-pcm bt-sco-pcm-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 2: sai5audio [sai5-audio], device 0: 30050000.sai-amba_dummy_codec 3.codec-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;BR /&gt;card 3: sai1audio [sai1-audio], device 0: 30010000.sai-amba_dummy_codec 100000003.codec-0 []&lt;BR /&gt;Subdevices: 1/1&lt;BR /&gt;Subdevice #0: subdevice #0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;And my capture command:&lt;/P&gt;&lt;P&gt;arecord -Dhw:2,0 -c 8 -r 48000 -f S16_LE -t raw --period-size=1024 --buffer-size=4096 /tmp/mic.pcm&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Please help me ,thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 04:22:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MMini-sai-alsa-capture-no-pcm-data/m-p/1192829#M165904</guid>
      <dc:creator>caozile</dc:creator>
      <dc:date>2020-12-03T04:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: IMX8MMini sai, alsa capture no pcm data</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MMini-sai-alsa-capture-no-pcm-data/m-p/1192978#M165915</link>
      <description>&lt;P&gt;Hi caozile&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example of such configuration one can look at&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-ak5558.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-ak5558.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-swpdm.dts?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk-8mic-swpdm.dts?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sect.7.5 Audio Mixer (AUDMIX), sect.7.6 PDM Microphone Interface (MICFIL)&amp;nbsp;&amp;nbsp; &lt;A style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;" href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" target="_blank" rel="noopener"&gt;i.MX Linux Reference Manual​&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 08:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MMini-sai-alsa-capture-no-pcm-data/m-p/1192978#M165915</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-12-03T08:08:28Z</dc:date>
    </item>
  </channel>
</rss>

