Home
last modified time | relevance | path

Searched refs:SAMPLES_PER_SOF (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/src/
Dfeedback_nrf53.c40 #define CLKS_PER_SAMPLE (16000000 / (SAMPLES_PER_SOF * 1000))
113 if (framestart_cc > (SAMPLES_PER_SOF * CLKS_PER_SAMPLE)/2) { in update_sof_offset()
114 sof_offset = framestart_cc - SAMPLES_PER_SOF * CLKS_PER_SAMPLE; in update_sof_offset()
129 base_change = -(SAMPLES_PER_SOF * CLKS_PER_SAMPLE); in update_sof_offset()
132 base_change = SAMPLES_PER_SOF * CLKS_PER_SAMPLE; in update_sof_offset()
139 if (abs_diff > (SAMPLES_PER_SOF * CLKS_PER_SAMPLE)/2) { in update_sof_offset()
172 ctx->rel_sof_offset = (SAMPLES_PER_SOF * CLKS_PER_SAMPLE) / 2; in feedback_start()
177 (SAMPLES_PER_SOF * CLKS_PER_SAMPLE); in feedback_start()
Dmain.c25 #define SAMPLES_PER_SOF 48 macro
26 #define SAMPLE_FREQUENCY (SAMPLES_PER_SOF * 1000)
31 #define MIN_BLOCK_SIZE ((SAMPLES_PER_SOF - 1) * BYTES_PER_SLOT)
32 #define BLOCK_SIZE (SAMPLES_PER_SOF * BYTES_PER_SLOT)
33 #define MAX_BLOCK_SIZE ((SAMPLES_PER_SOF + 1) * BYTES_PER_SLOT)
160 size = (SAMPLES_PER_SOF + 1) * BYTES_PER_SLOT; in uac2_data_recv_cb()
162 size = (SAMPLES_PER_SOF - 1) * BYTES_PER_SLOT; in uac2_data_recv_cb()
164 size = SAMPLES_PER_SOF * BYTES_PER_SLOT; in uac2_data_recv_cb()
223 return SAMPLES_PER_SOF + 1; in next_mic_num_samples()
231 return SAMPLES_PER_SOF - 1; in next_mic_num_samples()
[all …]
Dfeedback.h15 #define SAMPLES_PER_SOF 48 macro
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/src/
Dfeedback_nrf53.c219 clks_per_edge = sof_cc / (SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
227 if (framestart_cc > (SAMPLES_PER_SOF << FEEDBACK_P)/2) { in update_sof_offset()
228 sof_offset = framestart_cc - (SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
243 base_change = -(SAMPLES_PER_SOF << FEEDBACK_P); in update_sof_offset()
246 base_change = SAMPLES_PER_SOF << FEEDBACK_P; in update_sof_offset()
253 if (abs_diff > (SAMPLES_PER_SOF << FEEDBACK_P)/2) { in update_sof_offset()
359 fb = SAMPLES_PER_SOF << (FEEDBACK_K + FEEDBACK_FS_SHIFT); in feedback_process()
371 ctx->fb_value = SAMPLES_PER_SOF << (FEEDBACK_K + FEEDBACK_FS_SHIFT); in feedback_reset_ctx()
387 ctx->rel_sof_offset = (SAMPLES_PER_SOF << FEEDBACK_P) / 2; in feedback_start()
392 (SAMPLES_PER_SOF << FEEDBACK_P); in feedback_start()
Dmain.c24 #define SAMPLE_FREQUENCY (SAMPLES_PER_SOF * 1000)
29 #define MIN_BLOCK_SIZE ((SAMPLES_PER_SOF - 1) * BYTES_PER_SLOT)
30 #define BLOCK_SIZE (SAMPLES_PER_SOF * BYTES_PER_SLOT)
31 #define MAX_BLOCK_SIZE ((SAMPLES_PER_SOF + 1) * BYTES_PER_SLOT)
Dfeedback.h15 #define SAMPLES_PER_SOF 48 macro
Dfeedback_dummy.c38 return SAMPLES_PER_SOF << FEEDBACK_K; in feedback_value()