<?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のトピックaudio source codes support</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1704615#M210776</link>
    <description>&lt;P&gt;I would like to port our internal voice algorithm into i.MX 8MM, but I needs some audio source code from SoC chip which including each microphone raw and AEC reference signals, as well as transport Tx signal via USB. There have some detail demand.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sample rate can support 16K and 24K.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Support dump original microphone signal and AEC reference signal data together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The delay between microphone signal and reference signal is stable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At currently stage, I will use IMX 8MM as a USB device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There need two audio input sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microphone input : Audio from digital microphones. (4 microphones)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rx input: Audio from the far-end device. For example, receive the audio signal via USB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There need two audio output sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RX out: Processed audio(just bypass) to play in the near-end device speaker.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TX out: Processed audio(just bypass) to send back the far-end device. For example, transport the signal to far-end device via USB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Aug 2023 02:23:02 GMT</pubDate>
    <dc:creator>dongyang12</dc:creator>
    <dc:date>2023-08-15T02:23:02Z</dc:date>
    <item>
      <title>audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1704615#M210776</link>
      <description>&lt;P&gt;I would like to port our internal voice algorithm into i.MX 8MM, but I needs some audio source code from SoC chip which including each microphone raw and AEC reference signals, as well as transport Tx signal via USB. There have some detail demand.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The sample rate can support 16K and 24K.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Support dump original microphone signal and AEC reference signal data together.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The delay between microphone signal and reference signal is stable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;At currently stage, I will use IMX 8MM as a USB device.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There need two audio input sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Microphone input : Audio from digital microphones. (4 microphones)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Rx input: Audio from the far-end device. For example, receive the audio signal via USB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There need two audio output sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RX out: Processed audio(just bypass) to play in the near-end device speaker.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TX out: Processed audio(just bypass) to send back the far-end device. For example, transport the signal to far-end device via USB.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 02:23:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1704615#M210776</guid>
      <dc:creator>dongyang12</dc:creator>
      <dc:date>2023-08-15T02:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1706030#M210938</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;You may find NXP’s Audio Front End (AFE) useful, which allows to load signal processors from different vendors and configure all the necessary streams to make the whole chain functional. You can find more information in section 8.3.3 of the i.MX Linux User’s Guide (link below). You can setup the AFE to your needs (TX and RX streams, number of microphones, etc).&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.nxp.com/docs/en/user-guide/IMX_LINUX_USERS_GUIDE.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The repository for the AFE can be found on the link below. The AFE is already integrated on the i.MX Linux BSP.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/nxp-afe" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/nxp-imx/nxp-afe&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please note that stability of the delay between the microphone signal and reference signal would be dependent on the audio chain setup and the load of the Linux system, as interruptions from other services may affect this delay.&lt;/P&gt;
&lt;P&gt;As for an USB solution to transport the audio streams, one alternative is using an USB composite gadget as to allow input and output streams. You can find an example attached that creates a USB Composite using the Serial Gadget (g_serial) and an UAC Gadget (g_audio) drivers already in Linux. Please note that an UDC must be available to run the script, so please connect the board to a Windows or Linux host before running the script.&lt;/P&gt;
&lt;P&gt;I hope this information helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 21:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1706030#M210938</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-08-16T21:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1707371#M211042</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks your detialed information, and I found some problems during experiment. There have four questions, could you help me check it?&lt;/P&gt;&lt;P&gt;1, it will happen error when I build&amp;nbsp;&lt;A href="https://github.com/nxp-imx/nxp-afe" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/nxp-imx/nxp-afe.&lt;/A&gt;&amp;nbsp;It can't found alsa/asoundlib.h, Could you help check it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxp_afe_build_error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237024iD10B90788685FD64/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_afe_build_error.PNG" alt="nxp_afe_build_error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2, &lt;SPAN&gt;The AFE is already integrated on the i.MX Linux BSP. Do you mean file "nxp-afe_git.bb" in the folder meta-imx/meta-bsp/recipes-multimedia/nxp-afe?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3, Because I can't build success by make with source code. So I try to build it using bitbake nxp-afe in the yocto and generate a package. And I install this package in the IMX8MM board. And I do test according to the file "/unit_tests/nxp-afe/TODO.md". It can work and I can hear the sound from the headphone. But the output file from record only have 1 channel, and it didn't include reference signal. How to setup AFE if I need 4 channel mic signal and 1 channel reference?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4, Running the script UAC_VCOM_composite.sh after connect the board to Windows PC. The PC can recognized sink/mic card. But the board no sound output when I play music in PC. And the PC can't capture the data when I start record.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 07:59:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1707371#M211042</guid>
      <dc:creator>dongyang12</dc:creator>
      <dc:date>2023-08-18T07:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1707678#M211070</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt;1) The error found is most likely due to the toolchain used. I would recommend extracting the toolchain from the Yocto BSP and use it to build the AFE. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt;2) Correct, there is a recipe that compiles and install the AFE on the images generated in Yocto. The demo images available also have the AFE installed in the following path. /unit_tests/nxp_afe &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt;3) You may use the Signal Processor Dummy as reference, in the code for this dummy you can setup the number of channels, sampling rate etc. It’s part of the nxp-afe repository and it’s locate on nxp-afe/src/SignalProcessor &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt;4) Once the UAC gadget is ready, it will be enumerated as a soundcard in ALSA. You would need to configure your audio pipeline to play or record from this soundcard. You can see your playback devices with the command: $ aplay -l And your recording devices with: $ arecord -l &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt; I hope that this information helps! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="email-notification-body"&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 19:03:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1707678#M211070</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-08-18T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1708058#M211113</link>
      <description>Hi,&lt;BR /&gt;Thanks your information. And I have some question need your support.&lt;BR /&gt;1), My toolchain is get from the folder build_folder/tmp/deploy/sdk/ after build the yocto sdk successfully. Is it different with what you said. Could you tell me how to extract the toolchain from the Yocto BSP and use it to build the AFE. Because using bitbake nxp-afe build the AFE, it will use the default setup and I can't change the setup and code.&lt;BR /&gt;2), I download the image "Real-time_Edge_v2.5_IMX8MM-LPDDR4-EVK.zip" from official website. But it doesn't install the AFE in path /unit_test/nxp-afe. Could you provide the link the demo image to me?&lt;BR /&gt;3) I will confirm and check it.&lt;BR /&gt;4) Do you mean that I need to change the configure file asound.conf? Could you give a example to me?</description>
      <pubDate>Mon, 21 Aug 2023 06:30:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1708058#M211113</guid>
      <dc:creator>dongyang12</dc:creator>
      <dc:date>2023-08-21T06:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: audio source codes support</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1710802#M211389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;If you have extracted the toolchain from Yocto it should be correct. You can generate a .sh to install the toolchain using Yocto with the following command:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-c"&gt;&lt;CODE&gt;$ bitbake imx-image-multimedia -c populate_sdk&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The default path for installing the toolchain is /opt, your toolchain should have the asound header on a couple of paths. If this is not available there may be a problem with the toolchain.&lt;/P&gt;
&lt;P&gt;/opt/&amp;lt;DISTRO&amp;gt;/&amp;lt;BSP&amp;gt;/sysroots/armv8a-poky-linux/usr/include/sys/asoundlib.h&lt;BR /&gt;/opt/&amp;lt;DISTRO&amp;gt;/&amp;lt;BSP&amp;gt;/sysroots/armv8a-poky-linux/usr/include/asoundlib.h&lt;BR /&gt;/opt/&amp;lt;DISTRO&amp;gt;/&amp;lt;BSP&amp;gt;/sysroots/armv8a-poky-linux/usr/include/alsa/asoundlib.h&lt;/P&gt;
&lt;P&gt;As for the Real Time Edge image, it does not include the AFE so you would need to install it manually. You may copy the files from /unit_tests/nxp-afe and /usr/lib/nxp-afe/ to the same paths on the Real Time Edge image to run the AFE.&lt;/P&gt;
&lt;P&gt;The asound.conf file ready to be used with the AFE is available in /unit_tests/nxp-afe/asound.conf&lt;/P&gt;
&lt;P&gt;For the i.MX8MM you may use the default asound.conf available in this directory. There are separate configurations for other boards or configurations.&lt;/P&gt;
&lt;P&gt;I hope that this information helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 14:03:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/audio-source-codes-support/m-p/1710802#M211389</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2023-08-24T14:03:12Z</dc:date>
    </item>
  </channel>
</rss>

