Lines Matching defs:substream
398 /* the size of a substream (1 mono data stream) */
1370 static void snd_hdsp_midi_input_trigger(struct snd_rawmidi_substream *substream, int up)
1377 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1414 static void snd_hdsp_midi_output_trigger(struct snd_rawmidi_substream *substream, int up)
1419 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1437 static int snd_hdsp_midi_input_open(struct snd_rawmidi_substream *substream)
1441 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1444 hmidi->input = substream;
1450 static int snd_hdsp_midi_output_open(struct snd_rawmidi_substream *substream)
1454 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1456 hmidi->output = substream;
1462 static int snd_hdsp_midi_input_close(struct snd_rawmidi_substream *substream)
1466 snd_hdsp_midi_input_trigger (substream, 0);
1468 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
1476 static int snd_hdsp_midi_output_close(struct snd_rawmidi_substream *substream)
1480 snd_hdsp_midi_output_trigger (substream, 0);
1482 hmidi = (struct hdsp_midi *) substream->rmidi->private_data;
3833 snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream);
3836 snd_pcm_period_elapsed(hdsp->pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream);
3866 static snd_pcm_uframes_t snd_hdsp_hw_pointer(struct snd_pcm_substream *substream)
3868 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3891 static int snd_hdsp_playback_copy(struct snd_pcm_substream *substream,
3895 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3901 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
3909 static int snd_hdsp_playback_copy_kernel(struct snd_pcm_substream *substream,
3913 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3916 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel);
3923 static int snd_hdsp_capture_copy(struct snd_pcm_substream *substream,
3927 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3933 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
3941 static int snd_hdsp_capture_copy_kernel(struct snd_pcm_substream *substream,
3945 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3948 channel_buf = hdsp_channel_buffer_location(hdsp, substream->pstr->stream, channel);
3955 static int snd_hdsp_hw_silence(struct snd_pcm_substream *substream,
3959 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3962 channel_buf = hdsp_channel_buffer_location (hdsp, substream->pstr->stream, channel);
3969 static int snd_hdsp_reset(struct snd_pcm_substream *substream)
3971 struct snd_pcm_runtime *runtime = substream->runtime;
3972 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
3974 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
3985 snd_pcm_group_for_each_entry(s, substream) {
3995 static int snd_hdsp_hw_params(struct snd_pcm_substream *substream,
3998 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4011 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
4070 static int snd_hdsp_channel_info(struct snd_pcm_substream *substream,
4073 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4089 static int snd_hdsp_ioctl(struct snd_pcm_substream *substream,
4094 return snd_hdsp_reset(substream);
4096 return snd_hdsp_channel_info(substream, arg);
4101 return snd_pcm_lib_ioctl(substream, cmd, arg);
4104 static int snd_hdsp_trigger(struct snd_pcm_substream *substream, int cmd)
4106 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4120 running |= 1 << substream->stream;
4123 running &= ~(1 << substream->stream);
4130 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
4137 snd_pcm_group_for_each_entry(s, substream) {
4139 snd_pcm_trigger_done(s, substream);
4149 substream->stream == SNDRV_PCM_STREAM_CAPTURE)
4153 substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
4157 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE)
4161 snd_pcm_trigger_done(substream, substream);
4172 static int snd_hdsp_prepare(struct snd_pcm_substream *substream)
4174 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4426 static int snd_hdsp_playback_open(struct snd_pcm_substream *substream)
4428 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4429 struct snd_pcm_runtime *runtime = substream->runtime;
4439 snd_pcm_set_sync(substream);
4446 hdsp->playback_substream = substream;
4483 static int snd_hdsp_playback_release(struct snd_pcm_substream *substream)
4485 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4503 static int snd_hdsp_capture_open(struct snd_pcm_substream *substream)
4505 struct hdsp *hdsp = snd_pcm_substream_chip(substream);
4506 struct snd_pcm_runtime *runtime = substream->runtime;
4516 snd_pcm_set_sync(substream);
4523 hdsp->capture_substream = substream;
4548 static int snd_hdsp_capture_release(struct snd_pcm_substream *substream)
4550 struct hdsp *hdsp = snd_pcm_substream_chip(substream);