Lines Matching refs:afe_priv
303 struct mt8192_afe_private *afe_priv = afe->platform_priv;
304 int mtkaif_dmic = afe_priv->mtkaif_dmic;
341 struct mt8192_afe_private *afe_priv = afe->platform_priv;
342 int mtkaif_dmic = afe_priv->mtkaif_dmic_ch34;
343 int mtkaif_adda6_only = afe_priv->mtkaif_adda6_only;
382 afe_priv->mtkaif_dmic_ch34 = 0;
403 struct mt8192_afe_private *afe_priv = afe->platform_priv;
407 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2)
425 struct mt8192_afe_private *afe_priv = afe->platform_priv;
431 if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2_CLK_P2) {
439 (afe_priv->mtkaif_chosen_phase[0] < 0 ||
440 afe_priv->mtkaif_chosen_phase[1] < 0)) {
444 afe_priv->mtkaif_chosen_phase[0],
445 afe_priv->mtkaif_chosen_phase[1]);
448 afe_priv->mtkaif_chosen_phase[2] < 0) {
452 afe_priv->mtkaif_chosen_phase[2]);
465 if (afe_priv->mtkaif_phase_cycle[0] >=
466 afe_priv->mtkaif_phase_cycle[1]) {
468 delay_cycle = afe_priv->mtkaif_phase_cycle[0] -
469 afe_priv->mtkaif_phase_cycle[1];
472 delay_cycle = afe_priv->mtkaif_phase_cycle[1] -
473 afe_priv->mtkaif_phase_cycle[0];
489 if (afe_priv->mtkaif_phase_cycle[2] >=
490 afe_priv->mtkaif_phase_cycle[1]) {
492 delay_cycle = afe_priv->mtkaif_phase_cycle[2] -
493 afe_priv->mtkaif_phase_cycle[1];
496 delay_cycle = afe_priv->mtkaif_phase_cycle[1] -
497 afe_priv->mtkaif_phase_cycle[2];
510 } else if (afe_priv->mtkaif_protocol == MTKAIF_PROTOCOL_2) {
581 struct mt8192_afe_private *afe_priv = afe->platform_priv;
583 ucontrol->value.integer.value[0] = afe_priv->stf_positive_gain_db;
592 struct mt8192_afe_private *afe_priv = afe->platform_priv;
596 afe_priv->stf_positive_gain_db = gain_db;
616 struct mt8192_afe_private *afe_priv = afe->platform_priv;
618 ucontrol->value.integer.value[0] = afe_priv->mtkaif_dmic;
627 struct mt8192_afe_private *afe_priv = afe->platform_priv;
633 change = (afe_priv->mtkaif_dmic != dmic_on) ||
634 (afe_priv->mtkaif_dmic_ch34 != dmic_on);
636 afe_priv->mtkaif_dmic = dmic_on;
637 afe_priv->mtkaif_dmic_ch34 = dmic_on;
647 struct mt8192_afe_private *afe_priv = afe->platform_priv;
649 ucontrol->value.integer.value[0] = afe_priv->mtkaif_adda6_only;
658 struct mt8192_afe_private *afe_priv = afe->platform_priv;
664 change = afe_priv->mtkaif_adda6_only != mtkaif_adda6_only;
665 afe_priv->mtkaif_adda6_only = mtkaif_adda6_only;
1424 struct mt8192_afe_private *afe_priv = afe->platform_priv;
1443 afe_priv->dai_priv[MT8192_DAI_AP_DMIC] =
1444 afe_priv->dai_priv[MT8192_DAI_ADDA];
1445 afe_priv->dai_priv[MT8192_DAI_AP_DMIC_CH34] =
1446 afe_priv->dai_priv[MT8192_DAI_ADDA_CH34];