Home
last modified time | relevance | path

Searched refs:abs_diff (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/
Dfeedback_nrf53.c124 uint32_t abs_diff; in update_sof_offset() local
128 abs_diff = sof_offset - ctx->rel_sof_offset; in update_sof_offset()
131 abs_diff = ctx->rel_sof_offset - sof_offset; in update_sof_offset()
139 if (abs_diff > (SAMPLES_PER_SOF * CLKS_PER_SAMPLE)/2) { in update_sof_offset()
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dfeedback_nrf53.c238 uint32_t abs_diff; in update_sof_offset() local
242 abs_diff = sof_offset - ctx->rel_sof_offset; in update_sof_offset()
245 abs_diff = ctx->rel_sof_offset - sof_offset; in update_sof_offset()
253 if (abs_diff > (SAMPLES_PER_SOF << FEEDBACK_P)/2) { in update_sof_offset()