Home
last modified time | relevance | path

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

12

/drivers/staging/vc04_services/bcm2835-audio/
A Dbcm2835-pcm.c55 struct snd_pcm_substream *substream = alsa_stream->substream; in bcm2835_playback_fifo() local
62 snd_pcm_stream_lock(substream); in bcm2835_playback_fifo()
63 snd_pcm_stop(substream, in bcm2835_playback_fifo()
67 snd_pcm_stream_unlock(substream); in bcm2835_playback_fifo()
80 snd_pcm_period_elapsed(substream); in bcm2835_playback_fifo()
94 idx = substream->number; in snd_bcm2835_playback_open_generic()
119 alsa_stream->substream = substream; in snd_bcm2835_playback_open_generic()
173 chip = snd_pcm_substream_chip(substream); in snd_bcm2835_playback_close()
175 runtime = substream->runtime; in snd_bcm2835_playback_close()
188 chip->opened &= ~(1 << substream->number); in snd_bcm2835_playback_close()
[all …]
/drivers/media/pci/cobalt/
A Dcobalt-alsa-pcm.c101 struct snd_pcm_substream *substream; in cobalt_alsa_announce_pcm_data() local
113 substream = cobsc->capture_pcm_substream; in cobalt_alsa_announce_pcm_data()
114 if (substream == NULL) { in cobalt_alsa_announce_pcm_data()
119 runtime = substream->runtime; in cobalt_alsa_announce_pcm_data()
181 snd_pcm_period_elapsed(substream); in cobalt_alsa_announce_pcm_data()
214 cobsc->capture_pcm_substream = substream; in snd_cobalt_pcm_capture_open()
301 struct snd_pcm_substream *substream; in cobalt_alsa_pb_pcm_data() local
313 if (substream == NULL) { in cobalt_alsa_pb_pcm_data()
318 runtime = substream->runtime; in cobalt_alsa_pb_pcm_data()
352 snd_pcm_period_elapsed(substream); in cobalt_alsa_pb_pcm_data()
[all …]
/drivers/gpu/drm/bridge/synopsys/
A Ddw-hdmi-ahb-audio.c122 struct snd_pcm_substream *substream; member
273 struct snd_pcm_substream *substream; in snd_dw_hdmi_irq() local
282 substream = dw->substream; in snd_dw_hdmi_irq()
284 snd_pcm_period_elapsed(substream); in snd_dw_hdmi_irq()
287 if (dw->substream) in snd_dw_hdmi_irq()
348 0, substream->dma_buffer.bytes); in dw_hdmi_open()
478 dw->buf_dst = substream->dma_buffer.area; in dw_hdmi_prepare()
479 dw->buf_addr = substream->dma_buffer.addr; in dw_hdmi_prepare()
496 dw->substream = substream; in dw_hdmi_trigger()
500 substream->runtime->delay = substream->runtime->period_size; in dw_hdmi_trigger()
[all …]
/drivers/media/usb/go7007/
A Dsnd-go7007.c38 struct snd_pcm_substream *substream; member
95 snd_pcm_period_elapsed(gosnd->substream); in parse_audio_stream_data()
101 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_params()
109 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_hw_free()
117 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_open()
123 if (gosnd->substream == NULL) { in go7007_snd_capture_open()
124 gosnd->substream = substream; in go7007_snd_capture_open()
125 substream->runtime->hw = go7007_snd_capture_hw; in go7007_snd_capture_open()
135 struct go7007 *go = snd_pcm_substream_chip(substream); in go7007_snd_capture_close()
138 gosnd->substream = NULL; in go7007_snd_capture_close()
[all …]
/drivers/media/pci/cx18/
A Dcx18-alsa-pcm.c61 struct snd_pcm_substream *substream; in cx18_alsa_announce_pcm_data() local
71 substream = cxsc->capture_pcm_substream; in cx18_alsa_announce_pcm_data()
72 if (substream == NULL) { in cx18_alsa_announce_pcm_data()
77 runtime = substream->runtime; in cx18_alsa_announce_pcm_data()
112 snd_pcm_stream_lock(substream); in cx18_alsa_announce_pcm_data()
128 snd_pcm_stream_unlock(substream); in cx18_alsa_announce_pcm_data()
131 snd_pcm_period_elapsed(substream); in cx18_alsa_announce_pcm_data()
136 struct snd_cx18_card *cxsc = snd_pcm_substream_chip(substream); in snd_cx18_pcm_capture_open()
137 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx18_pcm_capture_open()
169 cxsc->capture_pcm_substream = substream; in snd_cx18_pcm_capture_open()
[all …]
/drivers/media/pci/ivtv/
A Divtv-alsa-pcm.c58 struct snd_pcm_substream *substream; in ivtv_alsa_announce_pcm_data() local
68 substream = itvsc->capture_pcm_substream; in ivtv_alsa_announce_pcm_data()
69 if (substream == NULL) { in ivtv_alsa_announce_pcm_data()
74 runtime = substream->runtime; in ivtv_alsa_announce_pcm_data()
109 snd_pcm_stream_lock(substream); in ivtv_alsa_announce_pcm_data()
125 snd_pcm_stream_unlock(substream); in ivtv_alsa_announce_pcm_data()
128 snd_pcm_period_elapsed(substream); in ivtv_alsa_announce_pcm_data()
133 struct snd_ivtv_card *itvsc = snd_pcm_substream_chip(substream); in snd_ivtv_pcm_capture_open()
134 struct snd_pcm_runtime *runtime = substream->runtime; in snd_ivtv_pcm_capture_open()
173 itvsc->capture_pcm_substream = substream; in snd_ivtv_pcm_capture_open()
[all …]
/drivers/media/pci/cx23885/
A Dcx23885-alsa.c252 snd_pcm_period_elapsed(chip->substream); in cx23885_audio_irq()
314 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx23885_pcm_open()
327 chip->substream = substream; in snd_cx23885_pcm_open()
365 if (substream->runtime->dma_area) { in snd_cx23885_hw_params()
367 substream->runtime->dma_area = NULL; in snd_cx23885_hw_params()
403 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx23885_hw_params()
404 substream->runtime->dma_bytes = chip->dma_size; in snd_cx23885_hw_params()
405 substream->runtime->dma_addr = 0; in snd_cx23885_hw_params()
423 if (substream->runtime->dma_area) { in snd_cx23885_hw_free()
425 substream->runtime->dma_area = NULL; in snd_cx23885_hw_free()
[all …]
/drivers/media/usb/usbtv/
A Dusbtv-audio.c67 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()
78 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_pcm_close()
90 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_prepare()
102 struct snd_pcm_runtime *runtime = substream->runtime; in usbtv_audio_urb_received()
159 snd_pcm_stream_lock_irqsave(substream, flags); in usbtv_audio_urb_received()
164 snd_pcm_stream_unlock_irqrestore(substream, flags); in usbtv_audio_urb_received()
167 snd_pcm_period_elapsed(substream); in usbtv_audio_urb_received()
283 struct usbtv *chip = snd_pcm_substream_chip(substream); in snd_usbtv_card_trigger()
[all …]
/drivers/usb/gadget/function/
A Du_uac1_legacy.c94 struct snd_pcm_substream *substream = snd->substream; in playback_default_hw_params() local
123 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_DROP, NULL); in playback_default_hw_params()
124 snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_HW_PARAMS, params); in playback_default_hw_params()
126 result = snd_pcm_kernel_ioctl(substream, SNDRV_PCM_IOCTL_PREPARE, NULL); in playback_default_hw_params()
155 struct snd_pcm_substream *substream = snd->substream; in u_audio_playback() local
156 struct snd_pcm_runtime *runtime = substream->runtime; in u_audio_playback()
163 result = snd_pcm_kernel_ioctl(substream, in u_audio_playback()
173 result = snd_pcm_kernel_write(snd->substream, buf, frames); in u_audio_playback()
232 snd->substream = pcm_file->substream; in gaudio_open_snd_dev()
241 snd->substream = NULL; in gaudio_open_snd_dev()
[all …]
A Df_midi.c73 struct snd_rawmidi_substream *substream; member
247 if (!substream) in f_midi_read_data()
331 struct snd_rawmidi_substream *substream = port->substream; in f_midi_drop_out_substreams() local
333 if (port->active && substream) in f_midi_drop_out_substreams()
334 snd_rawmidi_drop_output(substream); in f_midi_drop_out_substreams()
635 struct snd_rawmidi_substream *substream = port->substream; in f_midi_do_transmit() local
637 if (!port->active || !substream) in f_midi_do_transmit()
715 if (substream->number >= midi->in_ports) in f_midi_in_open()
720 port->substream = substream; in f_midi_in_open()
750 if (substream->number >= MAX_PORTS) in f_midi_out_open()
[all …]
A Du_audio.c154 struct snd_pcm_substream *substream; in u_audio_iso_complete() local
179 substream = prm->ss; in u_audio_iso_complete()
182 if (!substream) in u_audio_iso_complete()
185 snd_pcm_stream_lock(substream); in u_audio_iso_complete()
187 runtime = substream->runtime; in u_audio_iso_complete()
188 if (!runtime || !snd_pcm_running(substream)) { in u_audio_iso_complete()
189 snd_pcm_stream_unlock(substream); in u_audio_iso_complete()
270 snd_pcm_stream_unlock(substream); in u_audio_iso_complete()
273 snd_pcm_period_elapsed(substream); in u_audio_iso_complete()
325 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in uac_pcm_trigger()
[all …]
A Du_uac1_legacy.h37 struct snd_pcm_substream *substream; member
/drivers/media/pci/cx25821/
A Dcx25821-alsa.c82 struct snd_pcm_substream *substream; member
343 snd_pcm_period_elapsed(chip->substream); in cx25821_aud_irq()
462 chip->substream = substream; in snd_cx25821_pcm_open()
503 if (substream->runtime->dma_area) { in snd_cx25821_hw_params()
505 substream->runtime->dma_area = NULL; in snd_cx25821_hw_params()
546 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx25821_hw_params()
547 substream->runtime->dma_bytes = chip->dma_size; in snd_cx25821_hw_params()
548 substream->runtime->dma_addr = 0; in snd_cx25821_hw_params()
565 if (substream->runtime->dma_area) { in snd_cx25821_hw_free()
567 substream->runtime->dma_area = NULL; in snd_cx25821_hw_free()
[all …]
/drivers/media/usb/em28xx/
A Dem28xx-audio.c75 struct snd_pcm_substream *substream; in em28xx_audio_isocirq() local
102 substream = dev->adev.capture_pcm_substream; in em28xx_audio_isocirq()
103 runtime = substream->runtime; in em28xx_audio_isocirq()
148 snd_pcm_period_elapsed(substream); in em28xx_audio_isocirq()
285 dev->adev.capture_pcm_substream = substream; in snd_em28xx_capture_open()
373 *substream) in snd_em28xx_capture_pointer()
379 dev = snd_pcm_substream_chip(substream); in snd_em28xx_capture_pointer()
422 if (substream) in em28xx_vol_put()
461 if (substream) in em28xx_vol_get()
497 if (substream) in em28xx_vol_put_mute()
[all …]
/drivers/media/usb/cx231xx/
A Dcx231xx-audio.c88 struct snd_pcm_substream *substream; in cx231xx_audio_isocirq() local
112 substream = dev->adev.capture_pcm_substream; in cx231xx_audio_isocirq()
113 runtime = substream->runtime; in cx231xx_audio_isocirq()
158 snd_pcm_period_elapsed(substream); in cx231xx_audio_isocirq()
179 struct snd_pcm_substream *substream; in cx231xx_audio_bulkirq() local
203 substream = dev->adev.capture_pcm_substream; in cx231xx_audio_bulkirq()
204 runtime = substream->runtime; in cx231xx_audio_bulkirq()
245 snd_pcm_period_elapsed(substream); in cx231xx_audio_bulkirq()
435 dev->adev.capture_pcm_substream = substream; in snd_cx231xx_capture_open()
536 *substream) in snd_cx231xx_capture_pointer()
[all …]
/drivers/media/pci/saa7134/
A Dsaa7134-alsa.c74 struct snd_pcm_substream *substream; member
155 snd_pcm_stop_xrun(dev->dmasound.substream); in saa7134_irq_alsa_done()
175 snd_pcm_period_elapsed(dev->dmasound.substream); in saa7134_irq_alsa_done()
235 struct snd_pcm_runtime *runtime = substream->runtime; in snd_card_saa7134_capture_trigger()
506 pcm->dev->dmasound.substream = substream; in snd_card_saa7134_capture_prepare()
686 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_params()
690 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_params()
730 substream->runtime->dma_addr = 0; in snd_card_saa7134_hw_params()
753 if (substream->runtime->dma_area) { in snd_card_saa7134_hw_free()
757 substream->runtime->dma_area = NULL; in snd_card_saa7134_hw_free()
[all …]
/drivers/media/pci/cx88/
A Dcx88-alsa.c74 struct snd_pcm_substream *substream; member
233 snd_pcm_period_elapsed(chip->substream); in cx8801_aud_irq()
406 struct snd_pcm_runtime *runtime = substream->runtime; in snd_cx88_pcm_open()
419 chip->substream = substream; in snd_cx88_pcm_open()
456 if (substream->runtime->dma_area) { in snd_cx88_hw_params()
458 substream->runtime->dma_area = NULL; in snd_cx88_hw_params()
493 substream->runtime->dma_area = chip->buf->vaddr; in snd_cx88_hw_params()
494 substream->runtime->dma_bytes = chip->dma_size; in snd_cx88_hw_params()
495 substream->runtime->dma_addr = 0; in snd_cx88_hw_params()
510 if (substream->runtime->dma_area) { in snd_cx88_hw_free()
[all …]
/drivers/most/
A Dmost_snd.c45 struct snd_pcm_substream *substream; member
251 snd_pcm_period_elapsed(channel->substream); in playback_thread()
267 struct channel *channel = substream->private_data; in pcm_open()
268 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_open()
272 channel->substream = substream; in pcm_open()
307 struct channel *channel = substream->private_data; in pcm_close()
326 struct channel *channel = substream->private_data; in pcm_prepare()
327 struct snd_pcm_runtime *runtime = substream->runtime; in pcm_prepare()
372 struct channel *channel = substream->private_data; in pcm_trigger()
400 struct channel *channel = substream->private_data; in pcm_pointer()
[all …]
/drivers/soundwire/
A Dintel_ace2x.c578 struct snd_pcm_substream *substream, in intel_params_stream() argument
586 params_data.substream = substream; in intel_params_stream()
599 struct snd_pcm_substream *substream, in intel_free_stream() argument
607 free_data.substream = substream; in intel_free_stream()
638 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in intel_hw_params()
662 ret = intel_params_stream(sdw, substream, dai, params, in intel_hw_params()
692 static int intel_prepare(struct snd_pcm_substream *substream, in intel_prepare() argument
709 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
723 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in intel_prepare()
763 ret = intel_free_stream(sdw, substream, dai, sdw->instance); in intel_hw_free()
[all …]
A Dintel.c678 struct snd_pcm_substream *substream, in intel_params_stream() argument
686 params_data.substream = substream; in intel_params_stream()
703 struct snd_pcm_substream *substream, in intel_free_stream() argument
710 free_data.substream = substream; in intel_free_stream()
737 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in intel_hw_params()
758 ret = intel_params_stream(sdw, substream, dai, params, in intel_hw_params()
788 static int intel_prepare(struct snd_pcm_substream *substream, in intel_prepare() argument
808 hw_params = &rtd->dpcm[substream->stream].hw_params; in intel_prepare()
822 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in intel_prepare()
832 ret = intel_params_stream(sdw, substream, dai, in intel_prepare()
[all …]
A Dstream.c1844 static int set_stream(struct snd_pcm_substream *substream, in set_stream() argument
1854 ret = snd_soc_dai_set_stream(dai, sdw_stream, substream->stream); in set_stream()
1901 struct snd_pcm_substream *substream = sdw_substream; in sdw_startup_stream() local
1907 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in sdw_startup_stream()
1908 name = kasprintf(GFP_KERNEL, "%s-Playback", substream->name); in sdw_startup_stream()
1910 name = kasprintf(GFP_KERNEL, "%s-Capture", substream->name); in sdw_startup_stream()
1922 ret = set_stream(substream, sdw_stream); in sdw_startup_stream()
1929 set_stream(substream, NULL); in sdw_startup_stream()
1945 struct snd_pcm_substream *substream = sdw_substream; in sdw_shutdown_stream() local
1953 sdw_stream = snd_soc_dai_get_stream(dai, substream->stream); in sdw_shutdown_stream()
[all …]
/drivers/gpu/drm/xlnx/
A Dzynqmp_dp_audio.c80 static int zynqmp_dp_startup(struct snd_pcm_substream *substream) in zynqmp_dp_startup() argument
82 struct snd_pcm_runtime *runtime = substream->runtime; in zynqmp_dp_startup()
100 static int dp_dai_hw_params(struct snd_pcm_substream *substream, in dp_dai_hw_params() argument
104 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in dp_dai_hw_params()
193 static int dp_dai_hw_free(struct snd_pcm_substream *substream, in dp_dai_hw_free() argument
196 struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream); in dp_dai_hw_free()
/drivers/staging/greybus/
A Daudio_codec.c342 static int gbcodec_startup(struct snd_pcm_substream *substream, in gbcodec_startup() argument
356 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_startup()
370 static void gbcodec_shutdown(struct snd_pcm_substream *substream, in gbcodec_shutdown() argument
381 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_shutdown()
392 static int gbcodec_hw_params(struct snd_pcm_substream *substream, in gbcodec_hw_params() argument
453 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_hw_params()
481 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in gbcodec_hw_params()
496 static int gbcodec_prepare(struct snd_pcm_substream *substream, in gbcodec_prepare() argument
528 params = find_dai_stream_params(codec, dai->id, substream->stream); in gbcodec_prepare()
542 switch (substream->stream) { in gbcodec_prepare()
/drivers/hid/
A Dhid-prodikeys.c561 static int pcmidi_in_open(struct snd_rawmidi_substream *substream) in pcmidi_in_open() argument
563 struct pcmidi_snd *pm = substream->rmidi->private_data; in pcmidi_in_open()
566 pm->in_substream = substream; in pcmidi_in_open()
570 static int pcmidi_in_close(struct snd_rawmidi_substream *substream) in pcmidi_in_close() argument
576 static void pcmidi_in_trigger(struct snd_rawmidi_substream *substream, int up) in pcmidi_in_trigger() argument
578 struct pcmidi_snd *pm = substream->rmidi->private_data; in pcmidi_in_trigger()
/drivers/net/ethernet/marvell/octeontx2/af/
A Drvu_struct.h364 u64 substream : 12; member
467 u64 substream : 20; member
533 u64 substream : 20; member
614 u64 substream : 20; member

Completed in 71 milliseconds

12