Lines Matching defs:aif

58 struct aif {
64 static inline void aif_init(struct aif *aif, unsigned int id)
66 aif->id = id;
126 struct aif aifs[TSCS454_DAI_COUNT];
791 int aif_prepare(struct snd_soc_component *component, struct aif *aif)
795 ret = aif_set_master(component, aif->id, aif->master);
803 struct aif *aif, bool playback)
809 dev_dbg(component->dev, "%s(): aif %d\n", __func__, aif->id);
811 set_aif_status_inactive(&tscs454->aifs_status, aif->id, playback);
813 dev_dbg(component->dev, "Set aif %d inactive. Streams status is 0x%x\n",
814 aif->id, tscs454->aifs_status.streams);
816 if (!aif_active(&tscs454->aifs_status, aif->id)) {
818 aif_set_master(component, aif->id, false);
819 dev_dbg(component->dev, "Freeing pll %d from aif %d\n",
820 aif->pll->id, aif->id);
821 free_pll(aif->pll);
2707 struct aif *aif, unsigned int fmt)
2713 aif->master = true;
2716 aif->master = false;
2883 struct aif *aif = &tscs454->aifs[dai->id];
2886 ret = set_aif_master_from_fmt(component, aif, fmt);
3171 struct aif *aif = &tscs454->aifs[dai->id];
3177 dev_dbg(component->dev, "%s(): aif %d fs = %u\n", __func__,
3178 aif->id, fs);
3180 if (!aif_active(&tscs454->aifs_status, aif->id)) {
3182 aif->pll = &tscs454->pll1;
3184 aif->pll = &tscs454->pll2;
3186 dev_dbg(component->dev, "Reserving pll %d for aif %d\n",
3187 aif->pll->id, aif->id);
3189 reserve_pll(aif->pll);
3192 if (!aifs_active(&tscs454->aifs_status)) { /* First active aif */
3205 ret = set_aif_fs(component, aif->id, fs);
3207 dev_err(component->dev, "Failed to set aif fs (%d)\n", ret);
3211 ret = set_aif_sample_format(component, params_format(params), aif->id);
3214 "Failed to set aif sample format (%d)\n", ret);
3218 set_aif_status_active(&tscs454->aifs_status, aif->id,
3221 dev_dbg(component->dev, "Set aif %d active. Streams status is 0x%x\n",
3222 aif->id, tscs454->aifs_status.streams);
3236 struct aif *aif = &tscs454->aifs[dai->id];
3238 return aif_free(component, aif,
3248 struct aif *aif = &tscs454->aifs[dai->id];
3250 ret = aif_prepare(component, aif);