<?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>USB Audio SOF</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41536/usb-audio-sof</link><description>I&amp;#39;m using SDK 15.2 and trying to set up a USB mic class. I am having trouble getting the SOF audio interrupt to fire. 
 I initialize the app_usbd module with the configuration for enable_sof set to true. I register an sof event handler with app_usbd_audio_sof_interrupt_register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Jan 2019 12:12:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41536/usb-audio-sof" /><item><title>RE: USB Audio SOF</title><link>https://devzone.nordicsemi.com/thread/163737?ContentTypeID=1</link><pubDate>Thu, 03 Jan 2019 12:12:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:081eb44a-2d36-4a61-8b24-303f2f69ebcb</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I have added this to internal Jira (NRFFOETT-2203), though I don&amp;#39;t have an estimate of when the designers have time to look at it. For now my best suggestion is to try to workaround it in other ways.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Audio SOF</title><link>https://devzone.nordicsemi.com/thread/161760?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 18:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb58a2cf-92ea-4302-bdc3-d180306ba386</guid><dc:creator>abhipray</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, I cannot share the code since it&amp;#39;s tightly coupled with the rest of our system. I don&amp;#39;t have a headphones class, only microphone. I am getting SOF events inside&amp;nbsp;usbd_user_ev_handler().&lt;br /&gt;&lt;br /&gt;Here are relevant pieces of code:&lt;/p&gt;
&lt;p&gt;static void mic_sof_ev_handler(uint16_t framecnt);&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; /* Initialize the usbd library */&lt;br /&gt; static const app_usbd_config_t usbd_config = {&lt;br /&gt; .ev_state_proc = usbd_user_ev_handler, .enable_sof = true};&lt;br /&gt; APP_ERROR_CHECK(app_usbd_init(&amp;amp;usbd_config));&lt;br /&gt;&lt;br /&gt; app_usbd_class_inst_t const *class_inst_mic =&lt;br /&gt; app_usbd_audio_class_inst_get(&amp;amp;m_app_audio_microphone);&lt;br /&gt;APP_ERROR_CHECK(app_usbd_audio_sof_interrupt_register(class_inst_mic, mic_sof_ev_handler));&lt;br /&gt; APP_ERROR_CHECK(app_usbd_class_append(class_inst_mic));&lt;/p&gt;
&lt;p&gt;app_usbd_power_events_enable();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: USB Audio SOF</title><link>https://devzone.nordicsemi.com/thread/161634?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 10:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28c7e067-0762-44bd-a778-e35bfc29cfcf</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you share code and config?&lt;/p&gt;
&lt;p&gt;Are you getting SOF events in&amp;nbsp;&lt;strong&gt;hp_audio_user_ev_handler&lt;/strong&gt;&amp;nbsp;instead of &lt;strong&gt;hp_sof_ev_handler&lt;/strong&gt;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>