Lines Matching full:ideal
316 * fsl_asrc_set_ideal_ratio - Calculate and set the ratio for Ideal Ratio mode only
371 * The ideal ratio configuration can work with a flexible clock rate setting.
392 bool ideal, div_avail; in fsl_asrc_config_pair() local
436 ideal = config->inclk == INCLK_NONE; in fsl_asrc_config_pair()
468 /* We only have output clock for ideal ratio mode */ in fsl_asrc_config_pair()
469 clk = asrc_priv->asrck_clk[clk_index[ideal ? OUT : IN]]; in fsl_asrc_config_pair()
476 * ideal ratio configuration, clock rate has to be strictly aligned in fsl_asrc_config_pair()
477 * with the sample rate. For ideal ratio configuration, clock rates in fsl_asrc_config_pair()
481 if (div[IN] == 0 || (!ideal && !div_avail)) { in fsl_asrc_config_pair()
483 inrate, clk_index[ideal ? OUT : IN]); in fsl_asrc_config_pair()
491 if (ideal && use_ideal_rate) in fsl_asrc_config_pair()
497 if (div[OUT] == 0 || (!ideal && !div_avail)) { in fsl_asrc_config_pair()
552 /* Configure the following only for Ideal Ratio mode */ in fsl_asrc_config_pair()
553 if (!ideal) in fsl_asrc_config_pair()
556 /* Clear ASTSx bit to use Ideal Ratio mode */ in fsl_asrc_config_pair()
560 /* Enable Ideal Ratio mode */ in fsl_asrc_config_pair()
687 /* Switch to ideal ratio mode if there is no proper clock source */ in fsl_asrc_select_clk()