Home
last modified time | relevance | path

Searched refs:substream (Results 1 – 25 of 30) sorted by relevance

12

/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c114 struct snd_pcm_substream *substream; in cobalt_alsa_announce_pcm_data() local
126 substream = cobsc->capture_pcm_substream; in cobalt_alsa_announce_pcm_data()
127 if (substream == NULL) { in cobalt_alsa_announce_pcm_data()
132 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
175 snd_pcm_stream_lock_irqsave(substream, flags); in cobalt_alsa_announce_pcm_data()
191 snd_pcm_stream_unlock_irqrestore(substream, flags); in cobalt_alsa_announce_pcm_data()
194 snd_pcm_period_elapsed(substream); in cobalt_alsa_announce_pcm_data()
219 static int snd_cobalt_pcm_capture_open(struct snd_pcm_substream *substream) in snd_cobalt_pcm_capture_open() argument
221 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cobalt_pcm_capture_open()
222 struct snd_cobalt_card *cobsc = snd_pcm_substream_chip(substream); in snd_cobalt_pcm_capture_open()
[all …]
/drivers/staging/vc04_services/bcm2835-audio/
Dbcm2835-pcm.c70 alsa_stream ? alsa_stream->substream : 0); in bcm2835_playback_fifo()
88 (int) (alsa_stream->period_size * alsa_stream->substream->runtime->periods), in bcm2835_playback_fifo()
89 frames_to_bytes(alsa_stream->substream->runtime, alsa_stream->substream->runtime->status->hw_ptr), in bcm2835_playback_fifo()
96 if (alsa_stream->substream) { in bcm2835_playback_fifo()
98 snd_pcm_period_elapsed(alsa_stream->substream); in bcm2835_playback_fifo()
106 struct snd_pcm_substream *substream, int spdif) in snd_bcm2835_playback_open_generic() argument
108 struct bcm2835_chip *chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_open_generic()
109 struct snd_pcm_runtime *runtime = substream->runtime; in snd_bcm2835_playback_open_generic()
119 audio_info("Alsa open (%d)\n", substream->number); in snd_bcm2835_playback_open_generic()
120 idx = substream->number; in snd_bcm2835_playback_open_generic()
[all …]
Dbcm2835.h122 struct snd_pcm_substream *substream; member
/drivers/media/usb/go7007/
Dsnd-go7007.c47 struct snd_pcm_substream *substream; member
76 struct snd_pcm_runtime *runtime = gosnd->substream->runtime; in parse_audio_stream_data()
103 snd_pcm_period_elapsed(gosnd->substream); in parse_audio_stream_data()
106 static int go7007_snd_hw_params(struct snd_pcm_substream *substream, in go7007_snd_hw_params() argument
109 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_params()
113 if (substream->runtime->dma_bytes > 0) in go7007_snd_hw_params()
114 vfree(substream->runtime->dma_area); in go7007_snd_hw_params()
115 substream->runtime->dma_bytes = 0; in go7007_snd_hw_params()
116 substream->runtime->dma_area = vmalloc(bytes); in go7007_snd_hw_params()
117 if (substream->runtime->dma_area == NULL) in go7007_snd_hw_params()
[all …]
/drivers/media/usb/tm6000/
Dtm6000-alsa.c103 static void dsp_buffer_free(struct snd_pcm_substream *substream) in dsp_buffer_free() argument
105 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in dsp_buffer_free()
109 vfree(substream->runtime->dma_area); in dsp_buffer_free()
110 substream->runtime->dma_area = NULL; in dsp_buffer_free()
111 substream->runtime->dma_bytes = 0; in dsp_buffer_free()
114 static int dsp_buffer_alloc(struct snd_pcm_substream *substream, int size) in dsp_buffer_alloc() argument
116 struct snd_tm6000_card *chip = snd_pcm_substream_chip(substream); in dsp_buffer_alloc()
120 if (substream->runtime->dma_area) { in dsp_buffer_alloc()
121 if (substream->runtime->dma_bytes > size) in dsp_buffer_alloc()
124 dsp_buffer_free(substream); in dsp_buffer_alloc()
[all …]
/drivers/media/pci/cx18/
Dcx18-alsa-pcm.c71 struct snd_pcm_substream *substream; in cx18_alsa_announce_pcm_data() local
81 substream = cxsc->capture_pcm_substream; in cx18_alsa_announce_pcm_data()
82 if (substream == NULL) { in cx18_alsa_announce_pcm_data()
87 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
122 snd_pcm_stream_lock(substream); in cx18_alsa_announce_pcm_data()
138 snd_pcm_stream_unlock(substream); in cx18_alsa_announce_pcm_data()
141 snd_pcm_period_elapsed(substream); in cx18_alsa_announce_pcm_data()
144 static int snd_cx18_pcm_capture_open(struct snd_pcm_substream *substream) in snd_cx18_pcm_capture_open() argument
146 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_open()
147 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx18_pcm_capture_open()
[all …]
/drivers/media/pci/ivtv/
Divtv-alsa-pcm.c69 struct snd_pcm_substream *substream; in ivtv_alsa_announce_pcm_data() local
79 substream = itvsc->capture_pcm_substream; in ivtv_alsa_announce_pcm_data()
80 if (substream == NULL) { in ivtv_alsa_announce_pcm_data()
85 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data()
120 snd_pcm_stream_lock(substream); in ivtv_alsa_announce_pcm_data()
136 snd_pcm_stream_unlock(substream); in ivtv_alsa_announce_pcm_data()
139 snd_pcm_period_elapsed(substream); in ivtv_alsa_announce_pcm_data()
142 static int snd_ivtv_pcm_capture_open(struct snd_pcm_substream *substream) in snd_ivtv_pcm_capture_open() argument
144 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_open()
145 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ivtv_pcm_capture_open()
[all …]
/drivers/gpu/drm/bridge/synopsys/
Ddw-hdmi-ahb-audio.c128 struct snd_pcm_substream *substream; member
279 struct snd_pcm_substream *substream; in snd_dw_hdmi_irq() local
288 substream = dw->substream; in snd_dw_hdmi_irq()
289 if (stat & HDMI_IH_AHBDMAAUD_STAT0_DONE && substream) { in snd_dw_hdmi_irq()
290 snd_pcm_period_elapsed(substream); in snd_dw_hdmi_irq()
293 if (dw->substream) in snd_dw_hdmi_irq()
325 static int dw_hdmi_open(struct snd_pcm_substream *substream) in dw_hdmi_open() argument
327 struct snd_pcm_runtime *runtime = substream->runtime; in dw_hdmi_open()
328 struct snd_dw_hdmi *dw = substream->private_data; in dw_hdmi_open()
350 0, substream->dma_buffer.bytes); in dw_hdmi_open()
[all …]
/drivers/media/usb/usbtv/
Dusbtv-audio.c65 static int snd_usbtv_pcm_open(struct snd_pcm_substream *substream) in snd_usbtv_pcm_open() argument
67 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_open()
68 struct snd_pcm_runtime *runtime = substream->runtime; in snd_usbtv_pcm_open()
70 chip->snd_substream = substream; in snd_usbtv_pcm_open()
76 static int snd_usbtv_pcm_close(struct snd_pcm_substream *substream) in snd_usbtv_pcm_close() argument
78 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_close()
88 static int snd_usbtv_hw_params(struct snd_pcm_substream *substream, in snd_usbtv_hw_params() argument
92 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_hw_params()
94 rv = snd_pcm_lib_malloc_pages(substream, in snd_usbtv_hw_params()
106 static int snd_usbtv_hw_free(struct snd_pcm_substream *substream) in snd_usbtv_hw_free() argument
[all …]
/drivers/media/pci/cx23885/
Dcx23885-alsa.c261 snd_pcm_period_elapsed(chip->substream); in cx23885_audio_irq()
320 static int snd_cx23885_pcm_open(struct snd_pcm_substream *substream) in snd_cx23885_pcm_open() argument
322 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_pcm_open()
323 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pcm_open()
336 chip->substream = substream; in snd_cx23885_pcm_open()
358 static int snd_cx23885_close(struct snd_pcm_substream *substream) in snd_cx23885_close() argument
367 static int snd_cx23885_hw_params(struct snd_pcm_substream *substream, in snd_cx23885_hw_params() argument
370 struct cx23885_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx23885_hw_params()
374 if (substream->runtime->dma_area) { in snd_cx23885_hw_params()
376 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params()
[all …]
/drivers/usb/gadget/function/
Du_audio.c95 struct snd_pcm_substream *substream; in u_audio_iso_complete() local
112 substream = prm->ss; in u_audio_iso_complete()
115 if (!substream) in u_audio_iso_complete()
118 snd_pcm_stream_lock_irqsave(substream, flags2); in u_audio_iso_complete()
120 runtime = substream->runtime; in u_audio_iso_complete()
121 if (!runtime || !snd_pcm_running(substream)) { in u_audio_iso_complete()
122 snd_pcm_stream_unlock_irqrestore(substream, flags2); in u_audio_iso_complete()
128 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in u_audio_iso_complete()
159 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in u_audio_iso_complete()
184 snd_pcm_stream_unlock_irqrestore(substream, flags2); in u_audio_iso_complete()
[all …]
Du_uac1_legacy.c97 struct snd_pcm_substream *substream = snd->substream; in playback_default_hw_params() local
126 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL); in playback_default_hw_params()
127 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, params); in playback_default_hw_params()
129 result = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL); in playback_default_hw_params()
158 struct snd_pcm_substream *substream = snd->substream; in u_audio_playback() local
159 struct snd_pcm_runtime *runtime = substream->runtime; in u_audio_playback()
166 result = snd_pcm_kernel_ioctl(substream, in u_audio_playback()
176 result = snd_pcm_kernel_write(snd->substream, buf, frames); in u_audio_playback()
235 snd->substream = pcm_file->substream; in gaudio_open_snd_dev()
244 snd->substream = NULL; in gaudio_open_snd_dev()
[all …]
Df_midi.c73 struct snd_rawmidi_substream *substream; member
244 struct snd_rawmidi_substream *substream = midi->out_substream[cable]; in f_midi_read_data() local
246 if (!substream) in f_midi_read_data()
253 snd_rawmidi_receive(substream, data, length); in f_midi_read_data()
330 struct snd_rawmidi_substream *substream = port->substream; in f_midi_drop_out_substreams() local
332 if (port->active && substream) in f_midi_drop_out_substreams()
333 snd_rawmidi_drop_output(substream); in f_midi_drop_out_substreams()
634 struct snd_rawmidi_substream *substream = port->substream; in f_midi_do_transmit() local
636 if (!port->active || !substream) in f_midi_do_transmit()
642 if (snd_rawmidi_transmit(substream, &b, 1) != 1) { in f_midi_do_transmit()
[all …]
Df_audio_source.c251 struct snd_pcm_substream *substream; member
374 if (!audio->substream) in audio_send()
380 runtime = audio->substream->runtime; in audio_send()
461 snd_pcm_period_elapsed(audio->substream); in audio_data_complete()
703 audio->substream = NULL; in audio_unbind()
735 static int audio_pcm_open(struct snd_pcm_substream *substream) in audio_pcm_open() argument
737 struct snd_pcm_runtime *runtime = substream->runtime; in audio_pcm_open()
738 struct audio_dev *audio = substream->private_data; in audio_pcm_open()
745 audio->substream = substream; in audio_pcm_open()
753 static int audio_pcm_close(struct snd_pcm_substream *substream) in audio_pcm_close() argument
[all …]
Du_uac1_legacy.h40 struct snd_pcm_substream *substream; member
/drivers/media/usb/cx231xx/
Dcx231xx-audio.c100 struct snd_pcm_substream *substream; in cx231xx_audio_isocirq() local
124 substream = dev->adev.capture_pcm_substream; in cx231xx_audio_isocirq()
125 runtime = substream->runtime; in cx231xx_audio_isocirq()
151 snd_pcm_stream_lock(substream); in cx231xx_audio_isocirq()
166 snd_pcm_stream_unlock(substream); in cx231xx_audio_isocirq()
169 snd_pcm_period_elapsed(substream); in cx231xx_audio_isocirq()
190 struct snd_pcm_substream *substream; in cx231xx_audio_bulkirq() local
214 substream = dev->adev.capture_pcm_substream; in cx231xx_audio_bulkirq()
215 runtime = substream->runtime; in cx231xx_audio_bulkirq()
237 snd_pcm_stream_lock(substream); in cx231xx_audio_bulkirq()
[all …]
/drivers/media/usb/em28xx/
Dem28xx-audio.c87 struct snd_pcm_substream *substream; in em28xx_audio_isocirq() local
114 substream = dev->adev.capture_pcm_substream; in em28xx_audio_isocirq()
115 runtime = substream->runtime; in em28xx_audio_isocirq()
140 snd_pcm_stream_lock(substream); in em28xx_audio_isocirq()
156 snd_pcm_stream_unlock(substream); in em28xx_audio_isocirq()
159 snd_pcm_period_elapsed(substream); in em28xx_audio_isocirq()
251 static int snd_em28xx_capture_open(struct snd_pcm_substream *substream) in snd_em28xx_capture_open() argument
253 struct em28xx *dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_open()
254 struct snd_pcm_runtime *runtime = substream->runtime; in snd_em28xx_capture_open()
267 nonblock = !!(substream->f_flags & O_NONBLOCK); in snd_em28xx_capture_open()
[all …]
/drivers/media/pci/cx25821/
Dcx25821-alsa.c91 struct snd_pcm_substream *substream; member
352 snd_pcm_period_elapsed(chip->substream); in cx25821_aud_irq()
454 static int snd_cx25821_pcm_open(struct snd_pcm_substream *substream) in snd_cx25821_pcm_open() argument
456 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_pcm_open()
457 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx25821_pcm_open()
471 chip->substream = substream; in snd_cx25821_pcm_open()
497 static int snd_cx25821_close(struct snd_pcm_substream *substream) in snd_cx25821_close() argument
505 static int snd_cx25821_hw_params(struct snd_pcm_substream *substream, in snd_cx25821_hw_params() argument
508 struct cx25821_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx25821_hw_params()
512 if (substream->runtime->dma_area) { in snd_cx25821_hw_params()
[all …]
/drivers/staging/most/aim-sound/
Dsound.c48 struct snd_pcm_substream *substream; member
185 struct snd_pcm_runtime *const runtime = channel->substream->runtime; in copy_data()
254 snd_pcm_period_elapsed(channel->substream); in playback_thread()
269 static int pcm_open(struct snd_pcm_substream *substream) in pcm_open() argument
271 struct channel *channel = substream->private_data; in pcm_open()
272 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_open()
275 channel->substream = substream; in pcm_open()
307 static int pcm_close(struct snd_pcm_substream *substream) in pcm_close() argument
309 struct channel *channel = substream->private_data; in pcm_close()
330 static int pcm_hw_params(struct snd_pcm_substream *substream, in pcm_hw_params() argument
[all …]
/drivers/media/pci/saa7134/
Dsaa7134-alsa.c83 struct snd_pcm_substream *substream; member
164 snd_pcm_stop_xrun(dev->dmasound.substream); in saa7134_irq_alsa_done()
182 if (dev->dmasound.read_count >= snd_pcm_lib_period_bytes(dev->dmasound.substream)) { in saa7134_irq_alsa_done()
184 snd_pcm_period_elapsed(dev->dmasound.substream); in saa7134_irq_alsa_done()
241 static int snd_card_saa7134_capture_trigger(struct snd_pcm_substream * substream, in snd_card_saa7134_capture_trigger() argument
244 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_trigger()
506 static int snd_card_saa7134_capture_prepare(struct snd_pcm_substream * substream) in snd_card_saa7134_capture_prepare() argument
508 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_prepare()
511 snd_card_saa7134_t *saa7134 = snd_pcm_substream_chip(substream); in snd_card_saa7134_capture_prepare()
515 pcm->dev->dmasound.substream = substream; in snd_card_saa7134_capture_prepare()
[all …]
/drivers/media/pci/cx88/
Dcx88-alsa.c83 struct snd_pcm_substream *substream; member
243 snd_pcm_period_elapsed(chip->substream); in cx8801_aud_irq()
412 static int snd_cx88_pcm_open(struct snd_pcm_substream *substream) in snd_cx88_pcm_open() argument
414 struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx88_pcm_open()
415 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open()
428 chip->substream = substream; in snd_cx88_pcm_open()
449 static int snd_cx88_close(struct snd_pcm_substream *substream) in snd_cx88_close() argument
457 static int snd_cx88_hw_params(struct snd_pcm_substream *substream, in snd_cx88_hw_params() argument
460 struct cx88_audio_dev *chip = snd_pcm_substream_chip(substream); in snd_cx88_hw_params()
465 if (substream->runtime->dma_area) { in snd_cx88_hw_params()
[all …]
/drivers/gpu/drm/vc4/
Dvc4_hdmi.c75 struct snd_pcm_substream *substream; member
768 static int vc4_hdmi_audio_startup(struct snd_pcm_substream *substream, in vc4_hdmi_audio_startup() argument
776 if (hdmi->audio.substream && hdmi->audio.substream != substream) in vc4_hdmi_audio_startup()
779 hdmi->audio.substream = substream; in vc4_hdmi_audio_startup()
789 ret = snd_pcm_hw_constraint_eld(substream->runtime, in vc4_hdmi_audio_startup()
819 static void vc4_hdmi_audio_shutdown(struct snd_pcm_substream *substream, in vc4_hdmi_audio_shutdown() argument
824 if (substream != hdmi->audio.substream) in vc4_hdmi_audio_shutdown()
829 hdmi->audio.substream = NULL; in vc4_hdmi_audio_shutdown()
833 static int vc4_hdmi_audio_hw_params(struct snd_pcm_substream *substream, in vc4_hdmi_audio_hw_params() argument
845 if (substream != hdmi->audio.substream) in vc4_hdmi_audio_hw_params()
[all …]
/drivers/staging/greybus/
Daudio_codec.c360 static int gbcodec_startup(struct snd_pcm_substream *substream, in gbcodec_startup() argument
374 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_startup()
388 static void gbcodec_shutdown(struct snd_pcm_substream *substream, in gbcodec_shutdown() argument
399 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_shutdown()
410 static int gbcodec_hw_params(struct snd_pcm_substream *substream, in gbcodec_hw_params() argument
472 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_hw_params()
499 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in gbcodec_hw_params()
514 static int gbcodec_prepare(struct snd_pcm_substream *substream, in gbcodec_prepare() argument
544 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_prepare()
558 switch (substream->stream) { in gbcodec_prepare()
/drivers/hid/
Dhid-prodikeys.c576 static int pcmidi_in_open(struct snd_rawmidi_substream *substream) in pcmidi_in_open() argument
578 struct pcmidi_snd *pm = substream->rmidi->private_data; in pcmidi_in_open()
581 pm->in_substream = substream; in pcmidi_in_open()
585 static int pcmidi_in_close(struct snd_rawmidi_substream *substream) in pcmidi_in_close() argument
591 static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up) in pcmidi_in_trigger() argument
593 struct pcmidi_snd *pm = substream->rmidi->private_data; in pcmidi_in_trigger()
/drivers/media/pci/solo6x10/
Dsolo6x10-g723.c92 for (ss = pstr->substream; ss != NULL; ss = ss->next) { in solo_g723_isr()
350 for (i = 0, ss = pcm->streams[SNDRV_PCM_STREAM_CAPTURE].substream; in solo_snd_pcm_init()

12