<?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>Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111984/zephyr-i2s-echo-code-channel-number</link><description>Hi, 
 Im currently adjusting this i2s sample code to work with my TAS2781 audio amplifier. The code works perfectly but I just want to do a little adjustment on the channel number to 4 to give me a 64 ratio as per table 3(i2s nordic documentation) of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Jun 2024 02:05:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111984/zephyr-i2s-echo-code-channel-number" /><item><title>RE: Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/thread/488585?ContentTypeID=1</link><pubDate>Thu, 13 Jun 2024 02:05:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c59b4e3-fa23-4a9e-86b5-587b10637f52</guid><dc:creator>Lanz</dc:creator><description>&lt;p&gt;Hi Ken,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;yes the ratio is 32.. I have successfully sync the i2s comms of the nrf and the tas2781.. thanks for taking sometime to respond on my inquiries&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Lanz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/thread/488487?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2024 12:01:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8097b9-4c4f-4984-a4c4-4880c14e3a23</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;There is no direct relationship between the confguration of #bitwidth and #channels vs. clock ratio. Instead looking at the code and i2c_nrfx.c I can find there is a function&amp;nbsp;find_suitable_clock() that calculate the ratio that best fit the requested sampling frequency vs.&amp;nbsp;hfclkaudio-frequency. I can only assume by your description that this function allways calculate 32x?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/thread/488382?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 19:48:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b73414cf-59dc-47ee-a3a8-4b29265ed139</guid><dc:creator>Lanz</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;below is my setting for ACLK. from the photo It should be possible to get 64 as a ratio for 16 bit (4channels)? As you mentioned the configured function above is limited to 2 channels.?.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1718135200888v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/thread/488297?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 11:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e420e542-c06c-484c-af75-56aff45e60d6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;If you want to change the ratio, I guess you need to modify the devicetree, e.g.:&lt;br /&gt;&lt;br /&gt;&amp;amp;clock {&lt;br /&gt;&amp;nbsp; &amp;nbsp; hfclkaudio-frequency = &amp;lt;11289600&amp;gt;;&lt;br /&gt;};&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr i2s echo code channel number</title><link>https://devzone.nordicsemi.com/thread/488296?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2024 11:22:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78aa3bfc-cd23-4ae6-9256-1e06b4e9e28e</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I would expect that you get an &amp;quot;Failed to configure streams:...&amp;quot; when trying to set NUMBER_OF_CHANNELS to more than 2, since 2 is the maximum supported.&lt;/p&gt;
&lt;p&gt;Looking at the implementation of&amp;nbsp;i2s_nrfx_configure() I can find it should return&amp;nbsp;-EINVAL.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	if (i2s_cfg-&amp;gt;channels == 2) {
		nrfx_cfg.channels = NRF_I2S_CHANNELS_STEREO;
	} else if (i2s_cfg-&amp;gt;channels == 1) {
		nrfx_cfg.channels = NRF_I2S_CHANNELS_LEFT;
	} else {
		LOG_ERR(&amp;quot;Unsupported number of channels: %u&amp;quot;,
			i2s_cfg-&amp;gt;channels);
		return -EINVAL;
	}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>