<?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>nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111439/nrf5340-stereo-output-using-external-codec-on-sdk-2-6-1</link><description>I am trying to make my gateway send stereo data to the headset where it will be played on an external codec. I want this to be a single stereo stream. 
 I had this working in SDK 2.5.1 but can&amp;#39;t seem to get it working with SDK 2.6.1. 
 The gateway is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Dec 2024 12:10:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111439/nrf5340-stereo-output-using-external-codec-on-sdk-2-6-1" /><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/514240?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2024 12:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b700848-697f-41de-83c2-b1d145b6da2e</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;You can refer to this branch&amp;nbsp;&lt;a href="https://github.com/rick1082/sdk-nrf/commits/cis_stereo_audio_sink_pre280"&gt;cis_stereo_audio_sink&lt;/a&gt;. This is demo branch which is provided without warranty or guarantee to be working. You would need to add a mechanism on CIS gateway for restricting scanning and connecting to more than one headset.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/489053?ContentTypeID=1</link><pubDate>Mon, 17 Jun 2024 10:06:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e405a5-28e0-43ef-ae7f-3f5554bb3a9c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Please find below some suggestions from our developers.&lt;br /&gt;It is possible to send both left and right data in a single ISO stream by stacking both left and right data in the same SDU. After encoding on the sender side, the data would be combined. Data would later be split on the receiving side. The downside of this is that it is rather uncommon and packets over the air might get too large potentially causing retransmissions due to CRC errors.&lt;br /&gt;If the packets in the same CIG/BIG are sent with the same SDU reference, the receiving side would also perceive it like that. If you have one peripheral receiving 2 CISes, you should receive the same timestamp as long as they are in the same CIG. If the streams are sent with the same timestamp, then they should be in sync. You can send Left and Right in separate CISes to the same peripheral. On the receiving side, you can check if timestamps are the same and if they are that means that the streams are in sync (as they should be). If the timestamps happen to be different then this would need to be handled by the application.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/488920?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2024 18:43:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6d57acc-ec89-4087-b291-26ce23959f16</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I am sorry for a delayed reply. I have not yet got internal response. I will reach out to developers on Monday. I will get back to you hopefully during next week.&lt;br /&gt;&lt;br /&gt;Thank you for your patience.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/487881?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2024 11:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a020b14d-b763-41db-80e7-55d0b3c0a235</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have asked internally for some clarifications. I will get back to you during next week.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/487162?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2024 16:21:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c728859-d84d-46ca-bde7-785a673cf9eb</guid><dc:creator>EchoCharlieWhiskey</dc:creator><description>&lt;p&gt;In &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109906/nrf5340-cis-groups-and-streams-stereo-headset-stereo-gateway-nus"&gt;NRF5340: CIS Groups, and Streams: Stereo headset + stereo gateway + NUS?&lt;/a&gt;, you (&lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;&amp;nbsp;) suggested I move to the new SDK though I described what I wanted in terms of strereo. Additionally, you said&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&amp;quot;An audio stream is unidirectional stream which means there can be up to 2 audio streams in a single CIS. Each of the 2 audio streams could go different way as CIS can be bidirectional. It is possible to have multiple audio channels in a single audio stream. In other words, it is possible to have stereo in a single audio stream.&amp;quot;&lt;/p&gt;
&lt;p&gt;So I&amp;#39;m having some trouble understanding your current answer which seems to contradict that. I do not want to have two mono streams that need to be sync&amp;#39;d on my single device, I need it to be one stereo stream. How do I do that?&lt;br /&gt;&lt;br /&gt;Thank you,&lt;/p&gt;
&lt;p&gt;ECW&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/486103?ContentTypeID=1</link><pubDate>Tue, 28 May 2024 08:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e9db2a3-9cd1-4779-8ab3-c0c12f96898a</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I had a discussion with our developers. Below are some relevant points.&lt;/p&gt;
[quote user="elecia"]how should a CIS stereo stream from the gateway to the headset (with an external codec) work for SDK 2.6.1?[/quote]
&lt;p&gt;At the moment our application supports only mono bidirectional. However, you should be able to do either stereo in one BIS to the headset or 2 mono BIS to the headset, but this would require some code changes.&lt;/p&gt;
[quote user="elecia"]having stereo in unicast mode is a common&amp;nbsp;application.&amp;nbsp;Does a white paper exist?[/quote]
&lt;p&gt;There is currently no such white paper. We are aiming at implementing full support for this.&lt;br /&gt;&lt;br /&gt;The error that you see is what is expected. You could try to print sizes and compare values. You would need to split the data yourself and decode it. Please note that the tone module is mono by design. Even if this approach works, you would still see mono data on I2S.&amp;nbsp;&lt;br /&gt;The suggestion is to first start with mono stream and duplicate the data after it has been received. Audio part of it can then be modified so that one gets 2 mono outputs, Then, changes can happen on the BLE and sending side.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/485881?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 16:44:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:648efb8d-fae6-458d-a951-15507e312b29</guid><dc:creator>EchoCharlieWhiskey</dc:creator><description>&lt;p&gt;My code aside, how should a CIS stereo stream from the gateway to the headset (with an external codec) work for SDK 2.6.1? Note that I also want a mono stream from the headset to the gateway and I have only one headset.&lt;br /&gt;&lt;br /&gt;(And yes, my modifications above were for the unicast_server and unicast_client example code in 2.6.1, recompiling both gateway and headset.)&lt;br /&gt;&lt;br /&gt;Also, from the forums here, having stereo in unicast mode is a common&amp;nbsp;application.&amp;nbsp;Does a white paper exist?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/485788?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 11:14:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0641acf0-1a1b-4a42-84b8-be3346e7ff9c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you specify all changes which you made when you used NCS v2.5.1 and when everything was working as expected?&lt;br /&gt;&lt;br /&gt;When providing code changes you mentioned &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/unicast_server/README.html"&gt;unicast_server&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/nrf/applications/nrf5340_audio/unicast_client/README.html"&gt;unicast_client&lt;/a&gt;. Did you modify these samples on the headset and gateway side?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/485694?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 21:00:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b64b219-ab37-4b9c-9f17-38bb358dac25</guid><dc:creator>EchoCharlieWhiskey</dc:creator><description>&lt;p&gt;Yes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 stereo output using external codec on SDK 2.6.1</title><link>https://devzone.nordicsemi.com/thread/485623?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 11:46:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:706d9721-9aee-44e3-9084-c2f43dbd4066</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Are all mentioned configuration and code changes specified for NCS v2.6.1?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>