<?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 Audio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92123/nrf5340-stereo-audio</link><description>Hello team, 
 
 I was not able to receive a suitable reply for this post for almost two weeks. I started thinking the engineer had gone for vacation. That is the reason I am reposting and asking for guidance here once again. 
 
 I am hoping to receive</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 28 Sep 2022 11:41:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92123/nrf5340-stereo-audio" /><item><title>RE: nrf5340 Stereo Audio</title><link>https://devzone.nordicsemi.com/thread/388332?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 11:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e0a04b9-fc26-46e1-9cfd-5e8d1a792b54</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you Einarh for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will leave it open just in case I face problems while implementing the suggested methods.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Stereo Audio</title><link>https://devzone.nordicsemi.com/thread/388122?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2022 11:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd4aef1-b3dc-417d-9d77-fe8925f5fe8b</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Looking at the&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.1-branch/applications/nrf5340_audio/src/bluetooth/le_audio_cis_gateway.c#L862"&gt;le_audio_send function&lt;/a&gt;, the stereo stream is split into two mono streams by two different calls of iso_stream_send.&lt;/p&gt;
&lt;p&gt;Here AUDIO_CH_R and AUDIO_CH_L simply indicate what iso channel to send the data on.&lt;/p&gt;
&lt;p&gt;So if you want to send a stereo stream, you can simply send all the data with a single call of iso_stream_send by doubling the sdu_size.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll then have to split the received data in two on the headset side.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Stereo Audio</title><link>https://devzone.nordicsemi.com/thread/387700?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 13:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afcda5a0-8469-4c8e-adfb-cc68fbe134ef</guid><dc:creator>Adarsh_1</dc:creator><description>&lt;p&gt;Hai Einarh,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Yours suggestions are on point.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have decided to use NCS V2.1.0.&amp;nbsp;&lt;/p&gt;
[quote userid="111520" url="~/f/nordic-q-a/92123/nrf5340-stereo-audio/387426"]If you compare the implementation of streamctrl_encoded_data_send in 2.1 and 2.0:[/quote]
&lt;p&gt;I am struggling here somehow. I am not able to modify the le_audio_send function to make it work.&lt;/p&gt;
[quote userid="111520" url="~/f/nordic-q-a/92123/nrf5340-stereo-audio/387426"]It seems like ble_trans_iso_tx is the function you&amp;#39;re looking for, and it seems to take an option for mono/stereo.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since now I am using NCSV2.1.0, I cannot find this function anymore. What is the equivalent function in ncsv2.1.0?&lt;/p&gt;
[quote userid="111520" url="~/f/nordic-q-a/92123/nrf5340-stereo-audio/387426"]You should here modify the le_audio_send function so that it sends stereo data[/quote]
&lt;p&gt;Can you please shed more light on how this can be done. I assume it is not that easy as changing the parameter in ble_trans_iso_tx from mono to stereo.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;iso_stream_send () does not seems to support stereo. I assume this function has to be properly modified. Is it correct? How you please explain how this could be done?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ret = iso_stream_send(data, sdu_size, AUDIO_CH_L);
	if (ret) {
		LOG_DBG(&amp;quot;Failed to send data to left channel&amp;quot;);
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;Adarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Stereo Audio</title><link>https://devzone.nordicsemi.com/thread/387426?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 08:38:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d4e596a-7505-4ef6-93ba-46e565a1b7ab</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;You should here modify the le_audio_send function so that it sends stereo data&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;If you compare the implementation of streamctrl_encoded_data_send in 2.1 and 2.0:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.1-branch/applications/nrf5340_audio/src/audio/streamctrl.c#L211"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.1-branch/applications/nrf5340_audio/src/audio/streamctrl.c#L211&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0-branch/applications/nrf5340_audio/src/audio/streamctrl.c#L226"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.0-branch/applications/nrf5340_audio/src/audio/streamctrl.c#L226&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It seems like ble_trans_iso_tx is the function you&amp;#39;re looking for, and it seems to take an option for mono/stereo.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;make the headset device expect to receive a stereo stream&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span&gt;These seem to be the corresponding functions in 2.1 and 2.0:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.1-branch/applications/nrf5340_audio/src/audio/audio_system.c#L68"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.1-branch/applications/nrf5340_audio/src/audio/audio_system.c#L68&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.0-branch/applications/nrf5340_audio/src/audio/audio_codec.c#L308"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.0-branch/applications/nrf5340_audio/src/audio/audio_codec.c#L308&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;
&lt;p&gt;-Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 Stereo Audio</title><link>https://devzone.nordicsemi.com/thread/387082?ContentTypeID=1</link><pubDate>Tue, 20 Sep 2022 12:59:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55934ea7-c10a-434b-bcf7-309f7dd22126</guid><dc:creator>Einarh</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m looking into your issue, but I might need some time to get up to speed on your case.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>