Lines Matching full:aif

58 struct aif {  struct
64 static inline void aif_init(struct aif *aif, unsigned int id) in aif_init() argument
66 aif->id = id; in aif_init()
126 struct aif aifs[TSCS454_DAI_COUNT];
796 int aif_prepare(struct snd_soc_component *component, struct aif *aif) in aif_prepare() argument
800 ret = aif_set_provider(component, aif->id, aif->provider); in aif_prepare()
808 struct aif *aif, bool playback) in aif_free() argument
814 dev_dbg(component->dev, "%s(): aif %d\n", __func__, aif->id); in aif_free()
816 set_aif_status_inactive(&tscs454->aifs_status, aif->id, playback); in aif_free()
818 dev_dbg(component->dev, "Set aif %d inactive. Streams status is 0x%x\n", in aif_free()
819 aif->id, tscs454->aifs_status.streams); in aif_free()
821 if (!aif_active(&tscs454->aifs_status, aif->id)) { in aif_free()
823 aif_set_provider(component, aif->id, false); in aif_free()
824 dev_dbg(component->dev, "Freeing pll %d from aif %d\n", in aif_free()
825 aif->pll->id, aif->id); in aif_free()
826 free_pll(aif->pll); in aif_free()
2712 struct aif *aif, unsigned int fmt) in set_aif_provider_from_fmt() argument
2718 aif->provider = true; in set_aif_provider_from_fmt()
2721 aif->provider = false; in set_aif_provider_from_fmt()
2888 struct aif *aif = &tscs454->aifs[dai->id]; in tscs454_set_dai_fmt() local
2891 ret = set_aif_provider_from_fmt(component, aif, fmt); in tscs454_set_dai_fmt()
3154 dev_err(component->dev, "AIF ID not recognized (%d)\n", ret); in set_aif_sample_format()
3176 struct aif *aif = &tscs454->aifs[dai->id]; in tscs454_hw_params() local
3182 dev_dbg(component->dev, "%s(): aif %d fs = %u\n", __func__, in tscs454_hw_params()
3183 aif->id, fs); in tscs454_hw_params()
3185 if (!aif_active(&tscs454->aifs_status, aif->id)) { in tscs454_hw_params()
3187 aif->pll = &tscs454->pll1; in tscs454_hw_params()
3189 aif->pll = &tscs454->pll2; in tscs454_hw_params()
3191 dev_dbg(component->dev, "Reserving pll %d for aif %d\n", in tscs454_hw_params()
3192 aif->pll->id, aif->id); in tscs454_hw_params()
3194 reserve_pll(aif->pll); in tscs454_hw_params()
3197 if (!aifs_active(&tscs454->aifs_status)) { /* First active aif */ in tscs454_hw_params()
3210 ret = set_aif_fs(component, aif->id, fs); in tscs454_hw_params()
3212 dev_err(component->dev, "Failed to set aif fs (%d)\n", ret); in tscs454_hw_params()
3216 ret = set_aif_sample_format(component, params_format(params), aif->id); in tscs454_hw_params()
3219 "Failed to set aif sample format (%d)\n", ret); in tscs454_hw_params()
3223 set_aif_status_active(&tscs454->aifs_status, aif->id, in tscs454_hw_params()
3226 dev_dbg(component->dev, "Set aif %d active. Streams status is 0x%x\n", in tscs454_hw_params()
3227 aif->id, tscs454->aifs_status.streams); in tscs454_hw_params()
3241 struct aif *aif = &tscs454->aifs[dai->id]; in tscs454_hw_free() local
3243 return aif_free(component, aif, in tscs454_hw_free()
3253 struct aif *aif = &tscs454->aifs[dai->id]; in tscs454_prepare() local
3255 ret = aif_prepare(component, aif); in tscs454_prepare()