<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Passing Audio data (PCM 16 bit) to a USB audio device *not* from headphones</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52335/passing-audio-data-pcm-16-bit-to-a-usb-audio-device-not-from-headphones</link><description>Hi, 
 I&amp;#39;m trying to implement a USB audio device (michrophone) and I cant seem to be able to call app_usbd_audio_class_tx_start() without getting NRF_ERROR_INVALID_STATE from time to time (sometimes it returns NRF_SUCCESS). 
 I&amp;#39;ve tried 2 things: 1. call</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 May 2023 01:22:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52335/passing-audio-data-pcm-16-bit-to-a-usb-audio-device-not-from-headphones" /><item><title>RE: Passing Audio data (PCM 16 bit) to a USB audio device *not* from headphones</title><link>https://devzone.nordicsemi.com/thread/423413?ContentTypeID=1</link><pubDate>Wed, 03 May 2023 01:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22882b39-fe4c-4571-adfe-0aca88f7ca9e</guid><dc:creator>yoyou</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;i&amp;#39;ve the same porbem in&amp;nbsp;&lt;span&gt;nRF5_SDK_17,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I2S mic 16bit 48Khz&amp;nbsp;stereo&amp;nbsp;transferre to&amp;nbsp; USB AUIDO.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;some time&amp;nbsp;app_usbd_audio_class_tx_start() return code 17.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Audio data (PCM 16 bit) to a USB audio device *not* from headphones</title><link>https://devzone.nordicsemi.com/thread/211920?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 20:23:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371ba651-75ec-4f6d-8893-7380a1d865be</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;This case seems related to this:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52242/passing-data-from-pdm-callback-to-usb-audio-device"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52242/passing-data-from-pdm-callback-to-usb-audio-device&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I suggest to continue there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Passing Audio data (PCM 16 bit) to a USB audio device *not* from headphones</title><link>https://devzone.nordicsemi.com/thread/211067?ContentTypeID=1</link><pubDate>Sun, 22 Sep 2019 10:55:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a99287c-2458-449a-bf0c-a4b1f91de2fc</guid><dc:creator>Or</dc:creator><description>&lt;p&gt;After debugging the SDK and checking why I get NRF_ERROR_INVALID_STATE when I call app_usbd_audio_class_tx_start() I found out that it is returned from inside the following if statement:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;if (!nrf_drv_usbd_ep_enable_check(ep))
{
    return NRF_ERROR_INVALID_STATE;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;inside the file &amp;quot;nRF5_SDK_15.3.0/components/libraries/usbd/app_usbd.c&amp;quot; inside function app_usbd_ep_transfer() (line 1820).&lt;/p&gt;
&lt;p&gt;What can disable the endpoint ? why does it happen in the middle of using it ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>