Lines Matching refs:substream
208 struct snd_pcm_substream *substream; member
369 if (epcm->substream == NULL) in snd_emu10k1x_pcm_interrupt()
374 epcm->substream->ops->pointer(epcm->substream), in snd_emu10k1x_pcm_interrupt()
375 snd_pcm_lib_period_bytes(epcm->substream), in snd_emu10k1x_pcm_interrupt()
376 snd_pcm_lib_buffer_bytes(epcm->substream)); in snd_emu10k1x_pcm_interrupt()
378 snd_pcm_period_elapsed(epcm->substream); in snd_emu10k1x_pcm_interrupt()
382 static int snd_emu10k1x_playback_open(struct snd_pcm_substream *substream) in snd_emu10k1x_playback_open() argument
384 struct emu10k1x *chip = snd_pcm_substream_chip(substream); in snd_emu10k1x_playback_open()
386 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_playback_open()
399 epcm->substream = substream; in snd_emu10k1x_playback_open()
410 static int snd_emu10k1x_playback_close(struct snd_pcm_substream *substream) in snd_emu10k1x_playback_close() argument
416 static int snd_emu10k1x_pcm_hw_params(struct snd_pcm_substream *substream, in snd_emu10k1x_pcm_hw_params() argument
419 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_hw_params()
423 epcm->voice = &epcm->emu->voices[substream->pcm->device]; in snd_emu10k1x_pcm_hw_params()
428 return snd_pcm_lib_malloc_pages(substream, in snd_emu10k1x_pcm_hw_params()
433 static int snd_emu10k1x_pcm_hw_free(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_hw_free() argument
435 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_hw_free()
449 return snd_pcm_lib_free_pages(substream); in snd_emu10k1x_pcm_hw_free()
453 static int snd_emu10k1x_pcm_prepare(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_prepare() argument
455 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_prepare()
456 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_prepare()
482 static int snd_emu10k1x_pcm_trigger(struct snd_pcm_substream *substream, in snd_emu10k1x_pcm_trigger() argument
485 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_trigger()
486 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_trigger()
520 snd_emu10k1x_pcm_pointer(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_pointer() argument
522 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_pointer()
523 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_pointer()
563 static int snd_emu10k1x_pcm_open_capture(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_open_capture() argument
565 struct emu10k1x *chip = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_open_capture()
567 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_open_capture()
580 epcm->substream = substream; in snd_emu10k1x_pcm_open_capture()
591 static int snd_emu10k1x_pcm_close_capture(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_close_capture() argument
597 static int snd_emu10k1x_pcm_hw_params_capture(struct snd_pcm_substream *substream, in snd_emu10k1x_pcm_hw_params_capture() argument
600 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_hw_params_capture()
611 return snd_pcm_lib_malloc_pages(substream, in snd_emu10k1x_pcm_hw_params_capture()
616 static int snd_emu10k1x_pcm_hw_free_capture(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_hw_free_capture() argument
618 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_hw_free_capture()
632 return snd_pcm_lib_free_pages(substream); in snd_emu10k1x_pcm_hw_free_capture()
636 static int snd_emu10k1x_pcm_prepare_capture(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_prepare_capture() argument
638 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_prepare_capture()
639 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_prepare_capture()
650 static int snd_emu10k1x_pcm_trigger_capture(struct snd_pcm_substream *substream, in snd_emu10k1x_pcm_trigger_capture() argument
653 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_trigger_capture()
654 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_trigger_capture()
680 snd_emu10k1x_pcm_pointer_capture(struct snd_pcm_substream *substream) in snd_emu10k1x_pcm_pointer_capture() argument
682 struct emu10k1x *emu = snd_pcm_substream_chip(substream); in snd_emu10k1x_pcm_pointer_capture()
683 struct snd_pcm_runtime *runtime = substream->runtime; in snd_emu10k1x_pcm_pointer_capture()
1334 static int snd_emu10k1x_midi_input_open(struct snd_rawmidi_substream *substream) in snd_emu10k1x_midi_input_open() argument
1337 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_input_open()
1345 midi->substream_input = substream; in snd_emu10k1x_midi_input_open()
1361 static int snd_emu10k1x_midi_output_open(struct snd_rawmidi_substream *substream) in snd_emu10k1x_midi_output_open() argument
1364 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_output_open()
1372 midi->substream_output = substream; in snd_emu10k1x_midi_output_open()
1388 static int snd_emu10k1x_midi_input_close(struct snd_rawmidi_substream *substream) in snd_emu10k1x_midi_input_close() argument
1391 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_input_close()
1411 static int snd_emu10k1x_midi_output_close(struct snd_rawmidi_substream *substream) in snd_emu10k1x_midi_output_close() argument
1414 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_output_close()
1434 static void snd_emu10k1x_midi_input_trigger(struct snd_rawmidi_substream *substream, int up) in snd_emu10k1x_midi_input_trigger() argument
1437 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_input_trigger()
1448 static void snd_emu10k1x_midi_output_trigger(struct snd_rawmidi_substream *substream, int up) in snd_emu10k1x_midi_output_trigger() argument
1451 struct emu10k1x_midi *midi = substream->rmidi->private_data; in snd_emu10k1x_midi_output_trigger()
1467 snd_rawmidi_transmit(substream, &byte, 1) != 1) { in snd_emu10k1x_midi_output_trigger()