Lines Matching refs:afe_priv

86 	struct mt2701_afe_private *afe_priv = afe->platform_priv;  in mt2701_dai_num_to_i2s()  local
89 if (val < 0 || val >= afe_priv->soc->i2s_num) { in mt2701_dai_num_to_i2s()
112 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_startup() local
114 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_startup()
147 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_shutdown() local
150 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_shutdown()
155 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown()
178 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_i2s_path_enable() local
202 if (afe_priv->soc->has_one_heart_mode) { in mt2701_i2s_path_enable()
235 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_prepare() local
238 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_prepare()
243 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_prepare()
269 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_afe_i2s_set_sysclk() local
271 bool mode = afe_priv->soc->has_one_heart_mode; in mt2701_afe_i2s_set_sysclk()
282 afe_priv->i2s_path[mode ? 1 : i2s_num].mclk_rate = freq; in mt2701_afe_i2s_set_sysclk()
291 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_btmrg_startup() local
298 afe_priv->mrg_enable[substream->stream] = 1; in mt2701_btmrg_startup()
349 struct mt2701_afe_private *afe_priv = afe->platform_priv; in mt2701_btmrg_shutdown() local
352 if (!afe_priv->mrg_enable[!substream->stream]) { in mt2701_btmrg_shutdown()
362 afe_priv->mrg_enable[substream->stream] = 0; in mt2701_btmrg_shutdown()
1317 struct mt2701_afe_private *afe_priv; in mt2701_afe_pcm_dev_probe() local
1325 afe->platform_priv = devm_kzalloc(&pdev->dev, sizeof(*afe_priv), in mt2701_afe_pcm_dev_probe()
1330 afe_priv = afe->platform_priv; in mt2701_afe_pcm_dev_probe()
1331 afe_priv->soc = of_device_get_match_data(&pdev->dev); in mt2701_afe_pcm_dev_probe()
1335 afe_priv->i2s_path = devm_kcalloc(dev, in mt2701_afe_pcm_dev_probe()
1336 afe_priv->soc->i2s_num, in mt2701_afe_pcm_dev_probe()
1339 if (!afe_priv->i2s_path) in mt2701_afe_pcm_dev_probe()
1384 for (i = 0; i < afe_priv->soc->i2s_num; i++) { in mt2701_afe_pcm_dev_probe()
1385 afe_priv->i2s_path[i].i2s_data[SNDRV_PCM_STREAM_PLAYBACK] = in mt2701_afe_pcm_dev_probe()
1387 afe_priv->i2s_path[i].i2s_data[SNDRV_PCM_STREAM_CAPTURE] = in mt2701_afe_pcm_dev_probe()