Skip to content

Commit 14a38dd

Browse files
alexsvennordicjm
authored andcommitted
applications: nrf5340_audio: Handle PD=0 in broadcast_sink
- If presentation delay is set to 0, use the default and print a warning. - OCT-2952 Signed-off-by: Alexander Svensen <[email protected]>
1 parent f332dfc commit 14a38dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

applications/nrf5340_audio/broadcast_sink/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ static void le_audio_msg_sub_thread(void)
253253

254254
ret = audio_datapath_pres_delay_us_set(pres_delay_us);
255255
if (ret) {
256-
LOG_ERR("Failed to set presentation delay to %d", pres_delay_us);
257256
break;
258257
}
259258

applications/nrf5340_audio/src/audio/audio_datapath.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,8 @@ ZBUS_LISTENER_DEFINE(sdu_ref_msg_listen, audio_datapath_sdu_ref_update);
866866
int audio_datapath_pres_delay_us_set(uint32_t delay_us)
867867
{
868868
if (!IN_RANGE(delay_us, CONFIG_AUDIO_MIN_PRES_DLY_US, CONFIG_AUDIO_MAX_PRES_DLY_US)) {
869-
LOG_WRN("Presentation delay not supported: %d", delay_us);
869+
LOG_WRN("Presentation delay not supported: %d us", delay_us);
870+
LOG_WRN("Keeping current value: %d us", ctrl_blk.pres_comp.pres_delay_us);
870871
return -EINVAL;
871872
}
872873

0 commit comments

Comments
 (0)