Searched refs:alsa_sub (Results 1 – 3 of 3) sorted by relevance
64 static int usb6fire_midi_out_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_open() argument69 static int usb6fire_midi_out_close(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_close() argument75 struct snd_rawmidi_substream *alsa_sub, int up) in usb6fire_midi_out_trigger() argument77 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_trigger()89 ret = snd_rawmidi_transmit(alsa_sub, rt->out_buffer + 4, in usb6fire_midi_out_trigger()102 rt->out = alsa_sub; in usb6fire_midi_out_trigger()104 } else if (rt->out == alsa_sub) in usb6fire_midi_out_trigger()109 static void usb6fire_midi_out_drain(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_drain() argument111 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_drain()118 static int usb6fire_midi_in_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_in_open() argument[all …]
122 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_get_substream() argument124 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_get_substream()126 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in usb6fire_pcm_get_substream()128 else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) in usb6fire_pcm_get_substream()390 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_open() argument392 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_open()394 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_open()402 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) { in usb6fire_pcm_open()407 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) { in usb6fire_pcm_open()420 sub->instance = alsa_sub; in usb6fire_pcm_open()[all …]
176 *alsa_sub) in hiface_pcm_get_substream()178 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream()181 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()355 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub) in hiface_pcm_open() argument357 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_open()359 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open()368 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_open()383 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0, in hiface_pcm_open()392 sub->instance = alsa_sub; in hiface_pcm_open()398 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub) in hiface_pcm_close() argument[all …]