Lines Matching defs:substream

617 /* the size of a substream (1 mono data stream) */
1101 struct snd_pcm_substream *substream,
1919 snd_hdspm_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
1925 hmidi = substream->rmidi->private_data;
1963 snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
1968 hmidi = substream->rmidi->private_data;
1986 static int snd_hdspm_midi_input_open(struct snd_rawmidi_substream *substream)
1990 hmidi = substream->rmidi->private_data;
1993 hmidi->input = substream;
1999 static int snd_hdspm_midi_output_open(struct snd_rawmidi_substream *substream)
2003 hmidi = substream->rmidi->private_data;
2005 hmidi->output = substream;
2011 static int snd_hdspm_midi_input_close(struct snd_rawmidi_substream *substream)
2015 snd_hdspm_midi_input_trigger (substream, 0);
2017 hmidi = substream->rmidi->private_data;
2025 static int snd_hdspm_midi_output_close(struct snd_rawmidi_substream *substream)
2029 snd_hdspm_midi_output_trigger (substream, 0);
2031 hmidi = substream->rmidi->private_data;
5455 *substream)
5457 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5462 static int snd_hdspm_reset(struct snd_pcm_substream *substream)
5464 struct snd_pcm_runtime *runtime = substream->runtime;
5465 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5468 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5480 snd_pcm_group_for_each_entry(s, substream) {
5491 static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5494 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5502 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5566 snd_pcm_lib_malloc_pages(substream, HDSPM_DMA_AREA_BYTES);
5573 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5580 hdspm_set_channel_dma_addr(hdspm, substream,
5587 (unsigned char *) substream->runtime->dma_area;
5597 hdspm_set_channel_dma_addr(hdspm, substream,
5604 (unsigned char *) substream->runtime->dma_area;
5613 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5615 snd_pcm_sgbuf_get_addr(substream, 0));
5620 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5656 static int snd_hdspm_hw_free(struct snd_pcm_substream *substream)
5659 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5661 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5675 snd_pcm_lib_free_pages(substream);
5681 static int snd_hdspm_channel_info(struct snd_pcm_substream *substream,
5684 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5687 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5731 static int snd_hdspm_ioctl(struct snd_pcm_substream *substream,
5736 return snd_hdspm_reset(substream);
5741 return snd_hdspm_channel_info(substream, info);
5747 return snd_pcm_lib_ioctl(substream, cmd, arg);
5750 static int snd_hdspm_trigger(struct snd_pcm_substream *substream, int cmd)
5752 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5760 running |= 1 << substream->stream;
5763 running &= ~(1 << substream->stream);
5770 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5777 snd_pcm_group_for_each_entry(s, substream) {
5779 snd_pcm_trigger_done(s, substream);
5789 && substream->stream ==
5794 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5798 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
5802 snd_pcm_trigger_done(substream, substream);
5813 static int snd_hdspm_prepare(struct snd_pcm_substream *substream)
6047 static int snd_hdspm_open(struct snd_pcm_substream *substream)
6049 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
6050 struct snd_pcm_runtime *runtime = substream->runtime;
6051 bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
6054 snd_pcm_set_sync(substream);
6063 hdspm->playback_substream = substream;
6069 hdspm->capture_substream = substream;
6123 static int snd_hdspm_release(struct snd_pcm_substream *substream)
6125 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
6126 bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
6408 struct snd_pcm_substream *substream,
6415 snd_pcm_sgbuf_get_addr(substream, 4096 * i));