Home
last modified time | relevance | path

Searched refs:alsa_sub (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/sound/usb/6fire/
Dmidi.c60 static int usb6fire_midi_out_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_open() argument
65 static int usb6fire_midi_out_close(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_close() argument
71 struct snd_rawmidi_substream *alsa_sub, int up) in usb6fire_midi_out_trigger() argument
73 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_trigger()
85 ret = snd_rawmidi_transmit(alsa_sub, rt->out_buffer + 4, in usb6fire_midi_out_trigger()
98 rt->out = alsa_sub; in usb6fire_midi_out_trigger()
100 } else if (rt->out == alsa_sub) in usb6fire_midi_out_trigger()
105 static void usb6fire_midi_out_drain(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_drain() argument
107 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_drain()
114 static int usb6fire_midi_in_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_in_open() argument
[all …]
Dpcm.c118 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_get_substream() argument
120 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_get_substream()
122 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in usb6fire_pcm_get_substream()
124 else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) in usb6fire_pcm_get_substream()
386 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_open() argument
388 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_open()
390 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_open()
398 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) { in usb6fire_pcm_open()
403 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) { in usb6fire_pcm_open()
416 sub->instance = alsa_sub; in usb6fire_pcm_open()
[all …]
/linux-6.1.9/sound/usb/hiface/
Dpcm.c170 *alsa_sub) in hiface_pcm_get_substream()
172 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream()
175 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_get_substream()
349 static int hiface_pcm_open(struct snd_pcm_substream *alsa_sub) in hiface_pcm_open() argument
351 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_open()
353 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in hiface_pcm_open()
362 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in hiface_pcm_open()
377 ret = snd_pcm_hw_constraint_list(alsa_sub->runtime, 0, in hiface_pcm_open()
386 sub->instance = alsa_sub; in hiface_pcm_open()
392 static int hiface_pcm_close(struct snd_pcm_substream *alsa_sub) in hiface_pcm_close() argument
[all …]