Skip to content

Commit c63bb67

Browse files
samples: usb: uac2_implicit: Allow using 8 channels
Signed-off-by: Adam Kondraciuk <[email protected]>
1 parent 294b5a7 commit c63bb67

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

samples/subsys/usb/uac2_implicit_feedback/boards/nrf54h20dk_nrf54h20_cpuapp.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ i2s_rxtx: &tdm130 {
4141
reserved-memory {
4242
cpuflpr_dma_region: memory@2fc12e00 {
4343
compatible = "nordic,owned-memory", "zephyr,memory-region";
44-
reg = <0x2fc12e00 512>;
44+
reg = <0x2fc12e00 1024>;
4545
status = "okay";
4646
#memory-region-cells = <0>;
4747
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RW>;

samples/subsys/usb/uac2_implicit_feedback/flpr/boards/nrf54h20dk_nrf54h20_cpuflpr.overlay

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
reserved-memory {
99
cpuflpr_dma_region: memory@2fc12e00 {
1010
compatible = "nordic,owned-memory", "zephyr,memory-region";
11-
reg = <0x2fc12e00 512>;
11+
reg = <0x2fc12e00 1024>;
1212
status = "okay";
1313
#memory-region-cells = <0>;
1414
nordic,access = <NRF_OWNER_ID_APPLICATION NRF_PERM_RW>;

samples/subsys/usb/uac2_implicit_feedback/flpr/src/main.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
LOG_MODULE_REGISTER(main, 1);
1111
/* === BUFFERS === */
1212
/* buffers configuration */
13-
#define ISO_IN_CH_CNT 4
13+
#define ISO_IN_CH_CNT 8
1414
#define ISO_OUT_CH_CNT 2
1515
#define TDM_WORD_SIZE 32
1616

@@ -390,9 +390,11 @@ static void tdm_set_tx_ptr(void)
390390

391391
static void tdm_start(void)
392392
{
393+
bool sck_bypass = (SCK_DIV_VALUE > 0x80000000) ? (true) : (false);
394+
393395
nrf_tdm_enable(NRF_TDM130);
394396
nrf_tdm_configure(NRF_TDM130, &m_cfg);
395-
nrf_tdm_sck_configure(NRF_TDM130, NRF_TDM_SRC_ACLK, false);
397+
nrf_tdm_sck_configure(NRF_TDM130, NRF_TDM_SRC_ACLK, sck_bypass);
396398
nrf_tdm_mck_configure(NRF_TDM130, NRF_TDM_SRC_ACLK, false);
397399
nrf_tdm_event_clear(NRF_TDM130, NRF_TDM_EVENT_RXPTRUPD);
398400
nrf_tdm_event_clear(NRF_TDM130, NRF_TDM_EVENT_TXPTRUPD);

0 commit comments

Comments
 (0)