Home
last modified time | relevance | path

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

/linux-3.4.99/sound/usb/6fire/
Dmidi.c63 static int usb6fire_midi_out_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_open() argument
68 static int usb6fire_midi_out_close(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_close() argument
74 struct snd_rawmidi_substream *alsa_sub, int up) in usb6fire_midi_out_trigger() argument
76 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_trigger()
88 ret = snd_rawmidi_transmit(alsa_sub, rt->out_buffer + 4, in usb6fire_midi_out_trigger()
100 rt->out = alsa_sub; in usb6fire_midi_out_trigger()
102 } else if (rt->out == alsa_sub) in usb6fire_midi_out_trigger()
107 static void usb6fire_midi_out_drain(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_out_drain() argument
109 struct midi_runtime *rt = alsa_sub->rmidi->private_data; in usb6fire_midi_out_drain()
116 static int usb6fire_midi_in_open(struct snd_rawmidi_substream *alsa_sub) in usb6fire_midi_in_open() argument
[all …]
Dpcm.c119 struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_get_substream() argument
121 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_get_substream()
123 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in usb6fire_pcm_get_substream()
125 else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) in usb6fire_pcm_get_substream()
384 static int usb6fire_pcm_open(struct snd_pcm_substream *alsa_sub) in usb6fire_pcm_open() argument
386 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in usb6fire_pcm_open()
388 struct snd_pcm_runtime *alsa_rt = alsa_sub->runtime; in usb6fire_pcm_open()
396 if (alsa_sub->stream == SNDRV_PCM_STREAM_PLAYBACK) { in usb6fire_pcm_open()
401 } else if (alsa_sub->stream == SNDRV_PCM_STREAM_CAPTURE) { in usb6fire_pcm_open()
414 sub->instance = alsa_sub; in usb6fire_pcm_open()
[all …]