Lines Matching refs:pcm_priv
224 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[pcm_id]; in mtk_dai_pcm_hw_params() local
257 pcm_con |= pcm_priv->fmt << PCM_FMT_SFT; in mtk_dai_pcm_hw_params()
272 pcm_con |= pcm_priv->lck_invert << PCM_SYNC_OUT_INV_SFT; in mtk_dai_pcm_hw_params()
273 pcm_con |= pcm_priv->bck_invert << PCM_BCLK_OUT_INV_SFT; in mtk_dai_pcm_hw_params()
289 struct mtk_afe_pcm_priv *pcm_priv = afe_priv->dai_priv[dai->id]; in mtk_dai_pcm_set_fmt() local
294 pcm_priv->fmt = AUD_PCM_FMT_I2S; in mtk_dai_pcm_set_fmt()
297 pcm_priv->fmt = AUD_PCM_FMT_EIAJ; in mtk_dai_pcm_set_fmt()
300 pcm_priv->fmt = AUD_PCM_FMT_PCM_MODE_A; in mtk_dai_pcm_set_fmt()
303 pcm_priv->fmt = AUD_PCM_FMT_PCM_MODE_B; in mtk_dai_pcm_set_fmt()
306 pcm_priv->fmt = AUD_PCM_FMT_I2S; in mtk_dai_pcm_set_fmt()
312 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
313 pcm_priv->lck_invert = AUD_LRCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
316 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
317 pcm_priv->lck_invert = AUD_BCLK_OUT_INV_INVERSE; in mtk_dai_pcm_set_fmt()
320 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_INVERSE; in mtk_dai_pcm_set_fmt()
321 pcm_priv->lck_invert = AUD_LRCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
324 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_INVERSE; in mtk_dai_pcm_set_fmt()
325 pcm_priv->lck_invert = AUD_BCLK_OUT_INV_INVERSE; in mtk_dai_pcm_set_fmt()
328 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
329 pcm_priv->lck_invert = AUD_LRCLK_OUT_INV_NO_INVERSE; in mtk_dai_pcm_set_fmt()
377 struct mtk_afe_pcm_priv *pcm_priv; in init_pcm_priv_data() local
379 pcm_priv = devm_kzalloc(afe->dev, sizeof(struct mtk_afe_pcm_priv), in init_pcm_priv_data()
381 if (!pcm_priv) in init_pcm_priv_data()
384 pcm_priv->id = MT8186_DAI_PCM; in init_pcm_priv_data()
385 pcm_priv->fmt = AUD_PCM_FMT_I2S; in init_pcm_priv_data()
386 pcm_priv->bck_invert = AUD_BCLK_OUT_INV_NO_INVERSE; in init_pcm_priv_data()
387 pcm_priv->lck_invert = AUD_LRCLK_OUT_INV_NO_INVERSE; in init_pcm_priv_data()
389 return pcm_priv; in init_pcm_priv_data()
395 struct mtk_afe_pcm_priv *pcm_priv; in mt8186_dai_pcm_register() local
412 pcm_priv = init_pcm_priv_data(afe); in mt8186_dai_pcm_register()
413 if (!pcm_priv) in mt8186_dai_pcm_register()
416 afe_priv->dai_priv[MT8186_DAI_PCM] = pcm_priv; in mt8186_dai_pcm_register()