Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/drivers/dai/intel/ssp/
Dssp.c428 uint32_t scr_div = freq / bclk; in dai_ssp_find_mn() local
432 if (freq % bclk == 0 && scr_div < (SSCR0_SCR_MASK >> 8) + 1) { in dai_ssp_find_mn()
433 *out_scr_div = scr_div; in dai_ssp_find_mn()
446 if (scr_div > 1 && scr_div % 2 != 0) { in dai_ssp_find_mn()
447 --scr_div; in dai_ssp_find_mn()
451 scr_div = MIN(scr_div, (SSCR0_SCR_MASK >> 8) + 1); in dai_ssp_find_mn()
454 while (scr_div > 1 && freq % scr_div != 0) { in dai_ssp_find_mn()
455 scr_div -= 2; in dai_ssp_find_mn()
459 mn_div = dai_ssp_gcd(bclk, freq / scr_div); in dai_ssp_find_mn()
462 n = freq / scr_div / mn_div; in dai_ssp_find_mn()
[all …]