Lines Matching full:aif

324 		struct sun8i_codec_aif *aif = &scodec->aifs[i];  in sun8i_codec_update_sample_rate()  local
326 if (aif->active_streams) in sun8i_codec_update_sample_rate()
327 max_rate = max(max_rate, aif->sample_rate); in sun8i_codec_update_sample_rate()
330 /* Set the sample rate for ADC->DAC passthrough when no AIF is active. */ in sun8i_codec_update_sample_rate()
461 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_set_tdm_slot() local
466 aif->slots = slots; in sun8i_codec_set_tdm_slot()
467 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot()
577 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_hw_params() local
579 unsigned int slots = aif->slots ?: params_channels(params); in sun8i_codec_hw_params()
580 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params()
650 * Protect the clock rate once per AIF, on the first hw_params call in sun8i_codec_hw_params()
652 * changes on subsequent calls if only one AIF has open streams. in sun8i_codec_hw_params()
654 ret = (aif->open_streams ? clk_set_rate : clk_set_rate_exclusive)(scodec->clk_module, in sun8i_codec_hw_params()
663 if (!aif->open_streams) in sun8i_codec_hw_params()
667 aif->lrck_div_order = lrck_div_order; in sun8i_codec_hw_params()
668 aif->sample_rate = sample_rate; in sun8i_codec_hw_params()
669 aif->open_streams |= BIT(substream->stream); in sun8i_codec_hw_params()
678 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_hw_free() local
680 /* Drop references when the last substream for the AIF is freed. */ in sun8i_codec_hw_free()
681 if (aif->open_streams != BIT(substream->stream)) in sun8i_codec_hw_free()
686 aif->lrck_div_order = 0; in sun8i_codec_hw_free()
687 aif->sample_rate = 0; in sun8i_codec_hw_free()
690 aif->open_streams &= ~BIT(substream->stream); in sun8i_codec_hw_free()
820 struct sun8i_codec_aif *aif = &scodec->aifs[w->sname[3] - '1']; in sun8i_codec_aif_event() local
824 aif->active_streams |= BIT(stream); in sun8i_codec_aif_event()
826 aif->active_streams &= ~BIT(stream); in sun8i_codec_aif_event()
1012 /* AIF "ADC" Outputs */
1036 /* AIF "ADC" Mono/Stereo Muxes */
1047 /* AIF "ADC" Output Muxes */
1051 /* AIF "ADC" Mixers */
1062 /* AIF "DAC" Input Muxes */
1068 /* AIF "DAC" Mono/Stereo Muxes */
1079 /* AIF "DAC" Inputs */
1158 /* AIF "ADC" Output Routes */
1167 /* AIF "ADC" Mono/Stereo Mux Routes */
1196 /* AIF "ADC" Output Mux Routes */
1200 /* AIF "ADC" Mixer Routes */
1219 /* AIF "DAC" Input Mux Routes */
1228 /* AIF "DAC" Mono/Stereo Mux Routes */