Lines Matching defs:aif
262 struct sun8i_codec_aif *aif = &scodec->aifs[i];
264 if (aif->active_streams)
265 max_rate = max(max_rate, aif->sample_rate);
399 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
404 aif->slots = slots;
405 aif->slot_width = slot_width;
515 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
517 unsigned int slots = aif->slots ?: params_channels(params);
518 unsigned int slot_width = aif->slot_width ?: params_width(params);
592 ret = (aif->open_streams ? clk_set_rate : clk_set_rate_exclusive)(scodec->clk_module,
601 if (!aif->open_streams)
605 aif->lrck_div_order = lrck_div_order;
606 aif->sample_rate = sample_rate;
607 aif->open_streams |= BIT(substream->stream);
616 struct sun8i_codec_aif *aif = &scodec->aifs[dai->id];
619 if (aif->open_streams != BIT(substream->stream))
624 aif->lrck_div_order = 0;
625 aif->sample_rate = 0;
628 aif->open_streams &= ~BIT(substream->stream);
758 struct sun8i_codec_aif *aif = &scodec->aifs[w->sname[3] - '1'];
762 aif->active_streams |= BIT(stream);
764 aif->active_streams &= ~BIT(stream);