Lines Matching refs:i2s_path

121 				       struct mt2701_i2s_path *i2s_path,  in mt2701_afe_i2s_path_disable()  argument
124 const struct mt2701_i2s_data *i2s_data = i2s_path->i2s_data[stream_dir]; in mt2701_afe_i2s_path_disable()
126 if (--i2s_path->on[stream_dir] < 0) in mt2701_afe_i2s_path_disable()
127 i2s_path->on[stream_dir] = 0; in mt2701_afe_i2s_path_disable()
129 if (i2s_path->on[stream_dir]) in mt2701_afe_i2s_path_disable()
136 mt2701_afe_disable_i2s(afe, i2s_path, stream_dir); in mt2701_afe_i2s_path_disable()
147 struct mt2701_i2s_path *i2s_path; in mt2701_afe_i2s_shutdown() local
153 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown()
155 if (i2s_path->occupied[substream->stream]) in mt2701_afe_i2s_shutdown()
156 i2s_path->occupied[substream->stream] = 0; in mt2701_afe_i2s_shutdown()
160 mt2701_afe_i2s_path_disable(afe, i2s_path, substream->stream); in mt2701_afe_i2s_shutdown()
164 mt2701_afe_i2s_path_disable(afe, i2s_path, !substream->stream); in mt2701_afe_i2s_shutdown()
172 struct mt2701_i2s_path *i2s_path, in mt2701_i2s_path_enable() argument
175 const struct mt2701_i2s_data *i2s_data = i2s_path->i2s_data[stream_dir]; in mt2701_i2s_path_enable()
181 if (++i2s_path->on[stream_dir] != 1) in mt2701_i2s_path_enable()
215 mt2701_afe_enable_i2s(afe, i2s_path, stream_dir); in mt2701_i2s_path_enable()
235 struct mt2701_i2s_path *i2s_path; in mt2701_afe_i2s_prepare() local
241 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_prepare()
243 if (i2s_path->occupied[substream->stream]) in mt2701_afe_i2s_prepare()
250 i2s_path->occupied[substream->stream] = 1; in mt2701_afe_i2s_prepare()
254 mt2701_i2s_path_enable(afe, i2s_path, !substream->stream, in mt2701_afe_i2s_prepare()
257 mt2701_i2s_path_enable(afe, i2s_path, substream->stream, in mt2701_afe_i2s_prepare()
280 afe_priv->i2s_path[mode ? 1 : i2s_num].mclk_rate = freq; in mt2701_afe_i2s_set_sysclk()
1333 afe_priv->i2s_path = devm_kcalloc(dev, in mt2701_afe_pcm_dev_probe()
1337 if (!afe_priv->i2s_path) in mt2701_afe_pcm_dev_probe()
1383 afe_priv->i2s_path[i].i2s_data[SNDRV_PCM_STREAM_PLAYBACK] = in mt2701_afe_pcm_dev_probe()
1385 afe_priv->i2s_path[i].i2s_data[SNDRV_PCM_STREAM_CAPTURE] = in mt2701_afe_pcm_dev_probe()