Lines Matching refs:i2s_path

123 				       struct mt2701_i2s_path *i2s_path,  in mt2701_afe_i2s_path_disable()  argument
126 const struct mt2701_i2s_data *i2s_data = i2s_path->i2s_data[stream_dir]; in mt2701_afe_i2s_path_disable()
128 if (--i2s_path->on[stream_dir] < 0) in mt2701_afe_i2s_path_disable()
129 i2s_path->on[stream_dir] = 0; in mt2701_afe_i2s_path_disable()
131 if (i2s_path->on[stream_dir]) in mt2701_afe_i2s_path_disable()
138 mt2701_afe_disable_i2s(afe, i2s_path, stream_dir); in mt2701_afe_i2s_path_disable()
149 struct mt2701_i2s_path *i2s_path; in mt2701_afe_i2s_shutdown() local
155 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_shutdown()
157 if (i2s_path->occupied[substream->stream]) in mt2701_afe_i2s_shutdown()
158 i2s_path->occupied[substream->stream] = 0; in mt2701_afe_i2s_shutdown()
162 mt2701_afe_i2s_path_disable(afe, i2s_path, substream->stream); in mt2701_afe_i2s_shutdown()
166 mt2701_afe_i2s_path_disable(afe, i2s_path, !substream->stream); in mt2701_afe_i2s_shutdown()
174 struct mt2701_i2s_path *i2s_path, in mt2701_i2s_path_enable() argument
177 const struct mt2701_i2s_data *i2s_data = i2s_path->i2s_data[stream_dir]; in mt2701_i2s_path_enable()
183 if (++i2s_path->on[stream_dir] != 1) in mt2701_i2s_path_enable()
217 mt2701_afe_enable_i2s(afe, i2s_path, stream_dir); in mt2701_i2s_path_enable()
237 struct mt2701_i2s_path *i2s_path; in mt2701_afe_i2s_prepare() local
243 i2s_path = &afe_priv->i2s_path[i2s_num]; in mt2701_afe_i2s_prepare()
245 if (i2s_path->occupied[substream->stream]) in mt2701_afe_i2s_prepare()
252 i2s_path->occupied[substream->stream] = 1; in mt2701_afe_i2s_prepare()
256 mt2701_i2s_path_enable(afe, i2s_path, !substream->stream, in mt2701_afe_i2s_prepare()
259 mt2701_i2s_path_enable(afe, i2s_path, substream->stream, in mt2701_afe_i2s_prepare()
282 afe_priv->i2s_path[mode ? 1 : i2s_num].mclk_rate = freq; in mt2701_afe_i2s_set_sysclk()
1335 afe_priv->i2s_path = devm_kcalloc(dev, in mt2701_afe_pcm_dev_probe()
1339 if (!afe_priv->i2s_path) 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()