<?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: Creating dai link between cpu-dai (Master) and multiple codecs (Slaves)</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389124#M184700</link>
    <description>&lt;P&gt;Hi Moran&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for such case may be useful to look at "sound-bt-sco" example&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.dtsi?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi?h=lf-5.10.y&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>Mon, 20 Dec 2021 00:39:48 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-12-20T00:39:48Z</dc:date>
    <item>
      <title>Creating dai link between cpu-dai (Master) and multiple codecs (Slaves)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389092#M184691</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am working on a custom design: the host IMX8MM - SAI2&amp;nbsp; is the audio master for two ADC codecs (TDM) --&amp;gt; my target is to capture 8 MIC ( 4 from each ).&lt;/P&gt;&lt;P&gt;I couldn't find any example for such dai-link: 2 * ADC ( codec ) salves for the same host.&lt;/P&gt;&lt;P&gt;Consider below&amp;nbsp; dai description :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="moranmoran_0-1639925134317.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/165593iD7A2F9554B010F82/image-size/medium?v=v2&amp;amp;px=400" role="button" title="moranmoran_0-1639925134317.png" alt="moranmoran_0-1639925134317.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please find my below DTS nodes :&lt;/P&gt;&lt;P&gt;#### Sound card :&lt;/P&gt;&lt;P&gt;sfld-sound-card {&lt;BR /&gt;compatible = "simple-audio-card";&lt;BR /&gt;simple-audio-card,name = "SFLD-sound-card";&lt;BR /&gt;simple-audio-card-widgets =&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;"Microphone", "Channel7in",&lt;BR /&gt;"Microphone", "Channel8in";&lt;BR /&gt;simple-audio-card,routing =&lt;BR /&gt;"CPU-Capture", "Capture";&lt;BR /&gt;&lt;BR /&gt;simple-audio-card,dai-link@0 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;cpu_dai&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;cpu_dai&amp;gt;;&lt;/P&gt;&lt;P&gt;cpu_dai: cpu { // CPU SAI (Master)&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai2&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;dai-tdm-slot-rx-mask = &amp;lt;1 1 1 1 1 1 1 1&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;codec@0 { // ADC # 1 (slave) --&amp;gt; 4 channels&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;tlv320adc_0&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;dai-tdm-slot-rx-mask = &amp;lt;1 1 1 1 0 0 0 0&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;simple-audio-card,dai-link@1 {&lt;BR /&gt;format = "i2s";&lt;BR /&gt;bitclock-master = &amp;lt;&amp;amp;cpu_dai_1&amp;gt;;&lt;BR /&gt;frame-master = &amp;lt;&amp;amp;cpu_dai_1&amp;gt;;&lt;/P&gt;&lt;P&gt;cpu_dai_1: cpu {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;sai2&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;dai-tdm-slot-rx-mask = &amp;lt;1 1 1 1 1 1 1 1&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;codec {&lt;BR /&gt;sound-dai = &amp;lt;&amp;amp;tlv320adc_1&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;dai-tdm-slot-rx-mask = &amp;lt;0 0 0 0 1 1 1 1&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;###### i2c&lt;/P&gt;&lt;P&gt;&amp;amp;i2c4 {&lt;BR /&gt;clock-frequency = &amp;lt;100000&amp;gt;;&lt;BR /&gt;pinctrl-names = "default", "gpio";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c4&amp;gt;;&lt;BR /&gt;pinctrl-1 = &amp;lt;&amp;amp;pinctrl_i2c4_gpio&amp;gt;;&lt;BR /&gt;scl-gpios = &amp;lt;&amp;amp;gpio5 20 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;sda-gpios = &amp;lt;&amp;amp;gpio5 21 GPIO_ACTIVE_HIGH&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;tlv320adc_0: tlv320adc@4c {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "ti,tlv320adc6140";&lt;BR /&gt;reg = &amp;lt;0x4c&amp;gt; , &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;ti,mic-bias-source = &amp;lt;6&amp;gt;;&lt;BR /&gt;// ti,pdm-edge-select = &amp;lt;0 0 0 0&amp;gt;;&lt;BR /&gt;ti,gpi-config = &amp;lt;0 0 0 0&amp;gt;;&lt;BR /&gt;ti,gpio-config = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;ti,gpo-config-1 = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;ti,gpo-config-2 = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;// reset-gpios = &amp;lt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;tlv320adc_1: tlv320adc@4d {&lt;BR /&gt;#sound-dai-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;compatible = "ti,tlv320adc6140";&lt;BR /&gt;reg = &amp;lt;0x4d&amp;gt;;&lt;BR /&gt;ti,mic-bias-source = &amp;lt;6&amp;gt;;&lt;BR /&gt;// ti,pdm-edge-select = &amp;lt;0 0 0 0&amp;gt;;&lt;BR /&gt;ti,gpi-config = &amp;lt;0 0 0 0&amp;gt;;&lt;BR /&gt;ti,gpio-config = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;ti,gpo-config-1 = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;ti,gpo-config-2 = &amp;lt;0 0&amp;gt;;&lt;BR /&gt;// reset-gpios = &amp;lt;&amp;gt;;&lt;/P&gt;&lt;P&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise how is possible to describe such dai-link in ALSA .&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Moran.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 15:01:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389092#M184691</guid>
      <dc:creator>moranmoran</dc:creator>
      <dc:date>2021-12-19T15:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dai link between cpu-dai (Master) and multiple codecs (Slaves)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389124#M184700</link>
      <description>&lt;P&gt;Hi Moran&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for such case may be useful to look at "sound-bt-sco" example&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.dtsi?h=lf-5.10.y" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi?h=lf-5.10.y&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>Mon, 20 Dec 2021 00:39:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389124#M184700</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-12-20T00:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dai link between cpu-dai (Master) and multiple codecs (Slaves)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389475#M184736</link>
      <description>&lt;P&gt;Hi Igor.&lt;/P&gt;&lt;P&gt;I'm still can't understand how to declare the 2*ADC ( &lt;STRONG&gt;I2C&lt;/STRONG&gt; ) under the "sound-card".&lt;/P&gt;&lt;P&gt;As far as I understand, while using my "sound-card" Alsa should access (works in front) both devices I2C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Moran.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 09:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1389475#M184736</guid>
      <dc:creator>moranmoran</dc:creator>
      <dc:date>2021-12-20T09:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating dai link between cpu-dai (Master) and multiple codecs (Slaves)</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1396731#M185595</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can someone advise or give an example?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Moran/&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jan 2022 11:19:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Creating-dai-link-between-cpu-dai-Master-and-multiple-codecs/m-p/1396731#M185595</guid>
      <dc:creator>moranmoran</dc:creator>
      <dc:date>2022-01-10T11:19:57Z</dc:date>
    </item>
  </channel>
</rss>

