Lines Matching defs:ratio
121 * Check if the divider is available for internal ratio mode
312 * fsl_asrc_set_ideal_ratio - Calculate and set the ratio for Ideal Ratio mode only
317 * The ratio is a 32-bit fixed point value with 26 fractional bits.
324 unsigned long ratio;
332 /* Calculate the intergal part of the ratio */
333 ratio = (inrate / outrate) << IDEAL_RATIO_DECIMAL_DEPTH;
344 ratio |= 1 << (IDEAL_RATIO_DECIMAL_DEPTH - i);
351 regmap_write(asrc->regmap, REG_ASRIDRL(index), ratio);
352 regmap_write(asrc->regmap, REG_ASRIDRH(index), ratio >> 24);
367 * The ideal ratio configuration can work with a flexible clock rate setting.
455 pair_err("exceed supported ratio range [1/24, 8] for \
464 /* We only have output clock for ideal ratio mode */
472 * ideal ratio configuration, clock rate has to be strictly aligned
473 * with the sample rate. For ideal ratio configuration, clock rates
651 /* Select proper clock source for internal ratio mode */
666 /* Select proper clock source for internal ratio mode */
679 /* Switch to ideal ratio mode if there is no proper clock source */