Lines Matching defs:substream

618 /* the size of a substream (1 mono data stream) */
1102 struct snd_pcm_substream *substream,
1920 snd_hdspm_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
1926 hmidi = substream->rmidi->private_data;
1964 snd_hdspm_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
1969 hmidi = substream->rmidi->private_data;
1987 static int snd_hdspm_midi_input_open(struct snd_rawmidi_substream *substream)
1991 hmidi = substream->rmidi->private_data;
1994 hmidi->input = substream;
2000 static int snd_hdspm_midi_output_open(struct snd_rawmidi_substream *substream)
2004 hmidi = substream->rmidi->private_data;
2006 hmidi->output = substream;
2012 static int snd_hdspm_midi_input_close(struct snd_rawmidi_substream *substream)
2016 snd_hdspm_midi_input_trigger (substream, 0);
2018 hmidi = substream->rmidi->private_data;
2026 static int snd_hdspm_midi_output_close(struct snd_rawmidi_substream *substream)
2030 snd_hdspm_midi_output_trigger (substream, 0);
2032 hmidi = substream->rmidi->private_data;
5464 *substream)
5466 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5471 static int snd_hdspm_reset(struct snd_pcm_substream *substream)
5473 struct snd_pcm_runtime *runtime = substream->runtime;
5474 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5477 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5489 snd_pcm_group_for_each_entry(s, substream) {
5500 static int snd_hdspm_hw_params(struct snd_pcm_substream *substream,
5503 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5511 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5575 snd_pcm_lib_malloc_pages(substream, HDSPM_DMA_AREA_BYTES);
5582 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5589 hdspm_set_channel_dma_addr(hdspm, substream,
5596 (unsigned char *) substream->runtime->dma_area;
5606 hdspm_set_channel_dma_addr(hdspm, substream,
5613 (unsigned char *) substream->runtime->dma_area;
5622 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5624 snd_pcm_sgbuf_get_addr(substream, 0));
5629 substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
5665 static int snd_hdspm_hw_free(struct snd_pcm_substream *substream)
5668 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5670 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5684 snd_pcm_lib_free_pages(substream);
5690 static int snd_hdspm_channel_info(struct snd_pcm_substream *substream,
5693 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5696 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
5740 static int snd_hdspm_ioctl(struct snd_pcm_substream *substream,
5745 return snd_hdspm_reset(substream);
5750 return snd_hdspm_channel_info(substream, info);
5756 return snd_pcm_lib_ioctl(substream, cmd, arg);
5759 static int snd_hdspm_trigger(struct snd_pcm_substream *substream, int cmd)
5761 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
5769 running |= 1 << substream->stream;
5772 running &= ~(1 << substream->stream);
5779 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5786 snd_pcm_group_for_each_entry(s, substream) {
5788 snd_pcm_trigger_done(s, substream);
5798 && substream->stream ==
5803 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
5807 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
5811 snd_pcm_trigger_done(substream, substream);
5822 static int snd_hdspm_prepare(struct snd_pcm_substream *substream)
6056 static int snd_hdspm_open(struct snd_pcm_substream *substream)
6058 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
6059 struct snd_pcm_runtime *runtime = substream->runtime;
6060 bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
6063 snd_pcm_set_sync(substream);
6072 hdspm->playback_substream = substream;
6078 hdspm->capture_substream = substream;
6132 static int snd_hdspm_release(struct snd_pcm_substream *substream)
6134 struct hdspm *hdspm = snd_pcm_substream_chip(substream);
6135 bool playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK);
6422 struct snd_pcm_substream *substream,
6429 snd_pcm_sgbuf_get_addr(substream, 4096 * i));