<?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: USB Bandwith issue on IMX8M Mini in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937648#M140460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please try reducing the buffer size for the Alsa card?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make that, please try the below command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ echo x &amp;gt;&amp;nbsp;/proc/asound/card1/pcm0p/sub0/prealloc&amp;nbsp; Where x is the size of the buffer you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Aug 2019 18:41:10 GMT</pubDate>
    <dc:creator>diegoadrian</dc:creator>
    <dc:date>2019-08-05T18:41:10Z</dc:date>
    <item>
      <title>USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937646#M140458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am encountering an issue using a USB sound card based on the cmedia CM6206 IC&amp;nbsp;when used on the IMX8M Mini dev board running the example yocto build with some additional packages. When used on the IMX board i get the following dmesg errors indicating a lack of usb bandwidth.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;[ 7842.124001] retire_capture_urb: 1242 callbacks suppressed&lt;BR /&gt;[ 7847.126543] retire_capture_urb: 1241 callbacks suppressed&lt;BR /&gt;[ 7852.129241] retire_capture_urb: 1240 callbacks suppressed&lt;BR /&gt;[ 8131.025107] kauditd_printk_skb: 313 callbacks suppressed&lt;BR /&gt;[ 8131.025113] audit: type=1006 audit(1564672351.145:9): pid=4524 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=8 res=1&lt;BR /&gt;[ 8468.600276] retire_capture_urb: 1231 callbacks suppressed&lt;BR /&gt;[ 8491.603052] usb 1-1: cannot submit urb 0, error -28: not enough bandwidth&lt;BR /&gt;[ 8504.029087] retire_capture_urb: 586 callbacks suppressed&lt;BR /&gt;[ 8509.034814] retire_capture_urb: 1231 callbacks suppressed&lt;BR /&gt;[ 8514.042949] retire_capture_urb: 1242 callbacks suppressed&lt;BR /&gt;[ 8519.050003] retire_capture_urb: 1242 callbacks suppressed&lt;BR /&gt;[ 9180.893566] kauditd_printk_skb: 741 callbacks suppressed&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The suppressed callbacks and not enough bandwidth errors are from different test applications. I have tested on other boards (an Intel based up board and an arm based odroid c2) and I don't get the errors shown above. Have other people encountered this issue and is there a solution for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional information:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx8mmevk:~# lsusb -t&lt;BR /&gt;/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M&lt;BR /&gt; |__ Port 1: Dev 6, If 0, Class=Audio, Driver=snd-usb-audio, 12M&lt;BR /&gt; |__ Port 1: Dev 6, If 1, Class=Audio, Driver=snd-usb-audio, 12M&lt;BR /&gt; |__ Port 1: Dev 6, If 2, Class=Audio, Driver=snd-usb-audio, 12M&lt;BR /&gt; |__ Port 1: Dev 6, If 3, Class=Human Interface Device, Driver=usbhid, 12M&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This one works&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arecord -D hw:1,0 -f S16_LE -c 2 -r 48000 | aplay -D hw:1,0 -f S16_LE -c 2 -r 48000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This one does not&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;arecord -D hw:1,0 -f S16_LE -c 2 -r 48000 | aplay -D hw:1,0 -f S16_LE -c 4 -r 48000&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Aug 2019 16:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937646#M140458</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2019-08-01T16:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937647#M140459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have done some more debugging and got some more info.&lt;/P&gt;&lt;P&gt;The callbacks suppressed error is due to kernel rate limiting of a non printed debug messages this can be fixed by using the kernel patch given at&amp;nbsp;&lt;A href="https://github.com/raspberrypi/linux/issues/535"&gt;https://github.com/raspberrypi/linux/issues/535&lt;/A&gt;&amp;nbsp;I have also now got the message causing the print rate limit to print and the error is&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;frame 0 active: -18&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;which is the code for EXDEV&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;ISO: URB_ISO_ASAP wasn’t specified and all the frames the URB would be scheduled in have already expired.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Therefore this looks to be caused an issue somewhere in the USB stack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 14:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937647#M140459</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2019-08-05T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937648#M140460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please try reducing the buffer size for the Alsa card?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make that, please try the below command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$ echo x &amp;gt;&amp;nbsp;/proc/asound/card1/pcm0p/sub0/prealloc&amp;nbsp; Where x is the size of the buffer you want to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this could help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2019 18:41:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937648#M140460</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-08-05T18:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937649#M140461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Diego&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We don't have&amp;nbsp;a prealloc file in &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;/proc/asound/card1/pcm0p/sub0/ directory&lt;/SPAN&gt; however I have adjusted the alsa buffer size both up and down&amp;nbsp;via our software and the arecord/aplay combo to various values and the errors still occur. If i set the buffer size in aplay low enough (512) it then causes the EXDEV error like our software rather than the urb -28 (ENOSPC) error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2019 13:28:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937649#M140461</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2019-08-06T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937650#M140462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Some more info on this. We have tested with a professional soundcard (ICE16) which uses a hi speed (480Mb/s) interface rather than the usual full speed (12Mb/s) interfaces used on consumer sound cards e.g. (CM6206) we are trying to connect and don't get the issues discussed above. Both of the cards are using the same kernel modules for the audio backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2019 09:53:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937650#M140462</guid>
      <dc:creator>tyler_ward</dc:creator>
      <dc:date>2019-08-22T09:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB Bandwith issue on IMX8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937651#M140463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize for the delay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried using the sound card that is on our BSP "WM8524CGEDT"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diego.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Sep 2019 21:35:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/USB-Bandwith-issue-on-IMX8M-Mini/m-p/937651#M140463</guid>
      <dc:creator>diegoadrian</dc:creator>
      <dc:date>2019-09-02T21:35:18Z</dc:date>
    </item>
  </channel>
</rss>

