Lines Matching defs:substream

395 /* the size of a substream (1 mono data stream) */
1368 static void snd_hdsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
1375 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1412 static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
1417 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1435 static int snd_hdsp_midi_input_open(struct snd_rawmidi_substream *substream)
1439 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1442 hmidi->input = substream;
1448 static int snd_hdsp_midi_output_open(struct snd_rawmidi_substream *substream)
1452 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1454 hmidi->output = substream;
1460 static int snd_hdsp_midi_input_close(struct snd_rawmidi_substream *substream)
1464 snd_hdsp_midi_input_trigger (substream, 0);
1466 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1474 static int snd_hdsp_midi_output_close(struct snd_rawmidi_substream *substream)
1478 snd_hdsp_midi_output_trigger (substream, 0);
1480 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
3903 snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
3906 snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
3936 static snd_pcm_uframes_t snd_hdsp_hw_pointer(struct snd_pcm_substream *substream)
3938 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3962 static int snd_hdsp_playback_copy(struct snd_pcm_substream *substream,
3966 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3972 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
3980 static int snd_hdsp_capture_copy(struct snd_pcm_substream *substream,
3984 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3990 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
3998 static int snd_hdsp_hw_silence(struct snd_pcm_substream *substream,
4002 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4005 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
4012 static int snd_hdsp_reset(struct snd_pcm_substream *substream)
4014 struct snd_pcm_runtime *runtime = substream->runtime;
4015 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4017 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
4028 snd_pcm_group_for_each_entry(s, substream) {
4038 static int snd_hdsp_hw_params(struct snd_pcm_substream *substream,
4041 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4054 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
4115 static int snd_hdsp_channel_info(struct snd_pcm_substream *substream,
4118 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4134 static int snd_hdsp_ioctl(struct snd_pcm_substream *substream,
4139 return snd_hdsp_reset(substream);
4141 return snd_hdsp_channel_info(substream, arg);
4146 return snd_pcm_lib_ioctl(substream, cmd, arg);
4149 static int snd_hdsp_trigger(struct snd_pcm_substream *substream, int cmd)
4151 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4165 running |= 1 << substream->stream;
4168 running &= ~(1 << substream->stream);
4175 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
4182 snd_pcm_group_for_each_entry(s, substream) {
4184 snd_pcm_trigger_done(s, substream);
4194 substream->stream == SNDRV_PCM_STREAM_CAPTURE)
4198 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
4202 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
4206 snd_pcm_trigger_done(substream, substream);
4217 static int snd_hdsp_prepare(struct snd_pcm_substream *substream)
4219 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4471 static int snd_hdsp_playback_open(struct snd_pcm_substream *substream)
4473 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4474 struct snd_pcm_runtime *runtime = substream->runtime;
4484 snd_pcm_set_sync(substream);
4487 snd_pcm_set_runtime_buffer(substream, &hdsp->playback_dma_buf);
4490 hdsp->playback_substream = substream;
4527 static int snd_hdsp_playback_release(struct snd_pcm_substream *substream)
4529 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4547 static int snd_hdsp_capture_open(struct snd_pcm_substream *substream)
4549 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4550 struct snd_pcm_runtime *runtime = substream->runtime;
4560 snd_pcm_set_sync(substream);
4563 snd_pcm_set_runtime_buffer(substream, &hdsp->capture_dma_buf);
4566 hdsp->capture_substream = substream;
4591 static int snd_hdsp_capture_release(struct snd_pcm_substream *substream)
4593 struct hdsp *hdsp = snd_pcm_substream_chip(substream);