• Home
  • Raw
  • Download

Lines Matching full:aif

262 		struct sun8i_codec_aif *aif = &scodec->aifs[i];  in sun8i_codec_update_sample_rate()  local
264 if (aif->active_streams) in sun8i_codec_update_sample_rate()
265 max_rate = max(max_rate, aif->sample_rate); in sun8i_codec_update_sample_rate()
268 /* Set the sample rate for ADC->DAC passthrough when no AIF is active. */ in sun8i_codec_update_sample_rate()
399 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_set_tdm_slot() local
404 aif->slots = slots; in sun8i_codec_set_tdm_slot()
405 aif->slot_width = slot_width; in sun8i_codec_set_tdm_slot()
515 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_hw_params() local
517 unsigned int slots = aif->slots ?: params_channels(params); in sun8i_codec_hw_params()
518 unsigned int slot_width = aif->slot_width ?: params_width(params); in sun8i_codec_hw_params()
588 * Protect the clock rate once per AIF, on the first hw_params call in sun8i_codec_hw_params()
590 * changes on subsequent calls if only one AIF has open streams. in sun8i_codec_hw_params()
592 ret = (aif->open_streams ? clk_set_rate : clk_set_rate_exclusive)(scodec->clk_module, in sun8i_codec_hw_params()
601 if (!aif->open_streams) in sun8i_codec_hw_params()
605 aif->lrck_div_order = lrck_div_order; in sun8i_codec_hw_params()
606 aif->sample_rate = sample_rate; in sun8i_codec_hw_params()
607 aif->open_streams |= BIT(substream->stream); in sun8i_codec_hw_params()
616 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id]; in sun8i_codec_hw_free() local
618 /* Drop references when the last substream for the AIF is freed. */ in sun8i_codec_hw_free()
619 if (aif->open_streams != BIT(substream->stream)) in sun8i_codec_hw_free()
624 aif->lrck_div_order = 0; in sun8i_codec_hw_free()
625 aif->sample_rate = 0; in sun8i_codec_hw_free()
628 aif->open_streams &= ~BIT(substream->stream); in sun8i_codec_hw_free()
758 struct sun8i_codec_aif *aif = &scodec->aifs[w->sname[3] - '1']; in sun8i_codec_aif_event() local
762 aif->active_streams |= BIT(stream); in sun8i_codec_aif_event()
764 aif->active_streams &= ~BIT(stream); in sun8i_codec_aif_event()
950 /* AIF "ADC" Outputs */
974 /* AIF "ADC" Mono/Stereo Muxes */
985 /* AIF "ADC" Output Muxes */
989 /* AIF "ADC" Mixers */
1000 /* AIF "DAC" Input Muxes */
1006 /* AIF "DAC" Mono/Stereo Muxes */
1017 /* AIF "DAC" Inputs */
1096 /* AIF "ADC" Output Routes */
1105 /* AIF "ADC" Mono/Stereo Mux Routes */
1134 /* AIF "ADC" Output Mux Routes */
1138 /* AIF "ADC" Mixer Routes */
1157 /* AIF "DAC" Input Mux Routes */
1166 /* AIF "DAC" Mono/Stereo Mux Routes */