Lines Matching defs:substream

83 	struct snd_pcm_substream *substream;
272 static int btcvsd_bytes_to_frame(struct snd_pcm_substream *substream,
276 struct snd_pcm_runtime *runtime = substream->runtime;
622 snd_pcm_period_elapsed(bt->rx->substream);
628 snd_pcm_period_elapsed(bt->tx->substream);
851 (struct mtk_btcvsd_snd *bt, struct snd_pcm_substream *substream)
853 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
872 struct snd_pcm_substream *substream)
877 dev_dbg(bt->dev, "%s(), stream %d, substream %p\n",
878 __func__, substream->stream, substream);
880 snd_soc_set_runtime_hwparams(substream, &mtk_btcvsd_hardware);
882 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
884 bt->tx->substream = substream;
887 bt->rx->substream = substream;
894 struct snd_pcm_substream *substream)
897 struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
899 dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
902 bt_stream->substream = NULL;
907 struct snd_pcm_substream *substream,
912 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK &&
920 substream->runtime->dma_bytes = params_buffer_bytes(hw_params);
925 struct snd_pcm_substream *substream)
929 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
936 struct snd_pcm_substream *substream)
939 struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
941 dev_dbg(bt->dev, "%s(), stream %d\n", __func__, substream->stream);
948 struct snd_pcm_substream *substream, int cmd)
951 struct mtk_btcvsd_snd_stream *bt_stream = get_bt_stream(bt, substream);
952 int stream = substream->stream;
956 __func__, substream->stream, cmd);
979 struct snd_pcm_substream *substream)
990 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
999 hw_packet_ptr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
1015 frame = btcvsd_bytes_to_frame(substream, byte);
1017 frame %= substream->runtime->buffer_size;
1027 struct snd_pcm_substream *substream,
1033 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)