Lines Matching refs:substream

291 	struct snd_pcm_substream *substream;  member
565 #define DBRI_STREAMNO(substream) \ argument
566 (substream->stream == \
570 #define DBRI_STREAM(dbri, substream) \ argument
571 &dbri->stream_info[DBRI_STREAMNO(substream)]
1796 snd_pcm_period_elapsed(info->substream); in transmission_complete_intr()
1825 snd_pcm_period_elapsed(info->substream); in reception_complete_intr()
2032 static int snd_dbri_open(struct snd_pcm_substream *substream) in snd_dbri_open() argument
2034 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_open()
2035 struct snd_pcm_runtime *runtime = substream->runtime; in snd_dbri_open()
2036 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_open()
2043 info->substream = substream; in snd_dbri_open()
2062 static int snd_dbri_close(struct snd_pcm_substream *substream) in snd_dbri_close() argument
2064 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_close()
2065 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_close()
2068 info->substream = NULL; in snd_dbri_close()
2074 static int snd_dbri_hw_params(struct snd_pcm_substream *substream, in snd_dbri_hw_params() argument
2077 struct snd_pcm_runtime *runtime = substream->runtime; in snd_dbri_hw_params()
2078 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_hw_params()
2079 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_hw_params()
2090 if ((ret = snd_pcm_lib_malloc_pages(substream, in snd_dbri_hw_params()
2099 if (DBRI_STREAMNO(substream) == DBRI_PLAY) in snd_dbri_hw_params()
2117 static int snd_dbri_hw_free(struct snd_pcm_substream *substream) in snd_dbri_hw_free() argument
2119 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_hw_free()
2120 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_hw_free()
2128 if (DBRI_STREAMNO(substream) == DBRI_PLAY) in snd_dbri_hw_free()
2134 substream->runtime->buffer_size, direction); in snd_dbri_hw_free()
2142 return snd_pcm_lib_free_pages(substream); in snd_dbri_hw_free()
2145 static int snd_dbri_prepare(struct snd_pcm_substream *substream) in snd_dbri_prepare() argument
2147 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_prepare()
2148 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_prepare()
2151 info->size = snd_pcm_lib_buffer_bytes(substream); in snd_dbri_prepare()
2152 if (DBRI_STREAMNO(substream) == DBRI_PLAY) in snd_dbri_prepare()
2163 ret = setup_descs(dbri, DBRI_STREAMNO(substream), in snd_dbri_prepare()
2164 snd_pcm_lib_period_bytes(substream)); in snd_dbri_prepare()
2172 static int snd_dbri_trigger(struct snd_pcm_substream *substream, int cmd) in snd_dbri_trigger() argument
2174 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_trigger()
2175 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_trigger()
2181 (int)snd_pcm_lib_period_bytes(substream)); in snd_dbri_trigger()
2196 static snd_pcm_uframes_t snd_dbri_pointer(struct snd_pcm_substream *substream) in snd_dbri_pointer() argument
2198 struct snd_dbri *dbri = snd_pcm_substream_chip(substream); in snd_dbri_pointer()
2199 struct dbri_streaminfo *info = DBRI_STREAM(dbri, substream); in snd_dbri_pointer()
2202 ret = bytes_to_frames(substream->runtime, info->offset) in snd_dbri_pointer()
2203 % substream->runtime->buffer_size; in snd_dbri_pointer()
2205 ret, substream->runtime->buffer_size); in snd_dbri_pointer()