Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/sound/core/
A Dcompress_offload.c171 data->stream.ops->free(&data->stream); in snd_compr_free()
184 stream->ops->pointer(stream, tstamp); in snd_compr_update_tstamp()
291 stream->ops->ack(stream, count); in snd_compr_write_data()
306 stream = &data->stream; in snd_compr_write()
357 stream = &data->stream; in snd_compr_read()
383 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
416 stream = &data->stream; in snd_compr_poll()
479 retval = stream->ops->get_caps(stream, &caps); in snd_compr_get_caps()
1154 stream->ops->task_stop(stream, task); in snd_compr_task_stop_one()
1165 stream->ops->task_free(stream, task); in snd_compr_task_free_one()
[all …]
/sound/soc/au1x/
A Ddma.c119 set_dma_addr0(stream->dma, stream->buffer->start); in au1000_dma_start()
120 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
122 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
125 set_dma_addr1(stream->dma, stream->buffer->start); in au1000_dma_start()
126 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_start()
128 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_start()
141 stream->buffer = stream->buffer->next; in au1000_dma_interrupt()
144 set_dma_count0(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
148 stream->buffer = stream->buffer->next; in au1000_dma_interrupt()
151 set_dma_count1(stream->dma, stream->period_size >> 1); in au1000_dma_interrupt()
[all …]
/sound/soc/
A Dsoc-pcm.c545 int stream = substream->stream; in soc_pcm_apply_msb() local
1740 int stream = substream->stream; in dpcm_runtime_setup_fe() local
1775 int stream = substream->stream; in dpcm_runtime_setup_be_format() local
1811 int stream = substream->stream; in dpcm_runtime_setup_be_chan() local
1859 int stream = substream->stream; in dpcm_runtime_setup_be_rate() local
1978 int stream = substream->stream; in dpcm_fe_dai_shutdown() local
2044 int stream = substream->stream; in dpcm_fe_dai_hw_free() local
2381 int stream = substream->stream; in dpcm_fe_dai_do_trigger() local
2445 int stream = substream->stream; in dpcm_fe_dai_trigger() local
2727 int stream = fe_substream->stream; in dpcm_fe_dai_cleanup() local
[all …]
A Dsoc-compress.c84 snd_soc_dapm_stream_stop(rtd, stream); in soc_compr_clean()
123 snd_soc_runtime_activate(rtd, stream); in soc_compr_open()
151 dpcm_add_paths(fe, stream, &list); in soc_compr_open_fe()
158 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_open_fe()
161 dpcm_be_disconnect(fe, stream); in soc_compr_open_fe()
177 dpcm_clear_pending_state(fe, stream); in soc_compr_open_fe()
183 snd_soc_runtime_activate(fe, stream); in soc_compr_open_fe()
217 dpcm_be_dai_hw_free(fe, stream); in soc_compr_free_fe()
219 dpcm_be_dai_shutdown(fe, stream); in soc_compr_free_fe()
222 for_each_dpcm_be(fe, stream, dpcm) in soc_compr_free_fe()
[all …]
/sound/soc/intel/atom/
A Dsst-mfld-platform-compress.c49 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
50 if (!stream) in sst_platform_compr_open()
62 stream->id = 0; in sst_platform_compr_open()
71 kfree(stream); in sst_platform_compr_open()
90 kfree(stream); in sst_platform_compr_free()
177 return stream->compr_ops->stream_start(sst->dev, stream->id); in sst_platform_compr_trigger()
181 return stream->compr_ops->stream_drop(sst->dev, stream->id); in sst_platform_compr_trigger()
185 return stream->compr_ops->stream_drain(sst->dev, stream->id); in sst_platform_compr_trigger()
193 return stream->compr_ops->stream_pause(sst->dev, stream->id); in sst_platform_compr_trigger()
210 stream->compr_ops->tstamp(sst->dev, stream->id, tstamp); in sst_platform_compr_pointer()
[all …]
A Dsst-mfld-platform-pcm.c108 stream->stream_status = state; in sst_set_stream_status()
118 state = stream->stream_status; in sst_get_stream_status()
264 if (!stream) in sst_period_elapsed()
285 ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); in sst_platform_init_stream()
309 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_media_open()
310 if (!stream) in sst_media_open()
322 stream->ops = sst->ops; in sst_media_open()
325 stream->stream_info.str_id = 0; in sst_media_open()
355 kfree(stream); in sst_media_open()
366 power_down_sst(stream); in sst_media_close()
[all …]
/sound/soc/sprd/
A Dsprd-pcm-compress.c123 if (stream->copied_total > stream->received_total) in sprd_platform_compr_dma_complete()
124 stream->copied_total = stream->received_total; in sprd_platform_compr_dma_complete()
330 stream = devm_kzalloc(dev, sizeof(*stream), GFP_KERNEL); in sprd_platform_compr_open()
331 if (!stream) in sprd_platform_compr_open()
348 stream->dma[0].virt = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE; in sprd_platform_compr_open()
352 stream->info_phys = stream->iram_buffer.addr + SPRD_COMPR_IRAM_SIZE + in sprd_platform_compr_open()
354 stream->info_area = stream->iram_buffer.area + SPRD_COMPR_IRAM_SIZE + in sprd_platform_compr_open()
503 ret = stream->compr_ops->drain(stream->received_total); in sprd_platform_compr_trigger()
546 dst = stream->iram_buffer.area + stream->received_stage0; in sprd_platform_compr_copy()
580 dst = stream->compr_buffer.area + stream->stage1_pointer; in sprd_platform_compr_copy()
[all …]
/sound/xen/
A Dxen_snd_front_alsa.c219 memset(&stream->shbuf, 0, sizeof(stream->shbuf)); in stream_clear()
222 stream->pages = NULL; in stream_clear()
230 if (stream->buffer) in stream_free()
231 free_pages_exact(stream->buffer, stream->buffer_sz); in stream_free()
248 return stream; in stream_get()
373 stream->evt_pair = &front_info->evt_pairs[stream->index]; in alsa_open()
444 stream->num_pages = DIV_ROUND_UP(stream->buffer_sz, PAGE_SIZE); in shbuf_setup_backstore()
445 stream->pages = kcalloc(stream->num_pages, sizeof(struct page *), in shbuf_setup_backstore()
447 if (!stream->pages) in shbuf_setup_backstore()
451 stream->pages[i] = virt_to_page(stream->buffer + i * PAGE_SIZE); in shbuf_setup_backstore()
[all …]
/sound/soc/sof/amd/
A Dacp-pcm.c48 index = stream->stream_tag - 1; in acp_pcm_hw_params()
59 struct acp_dsp_stream *stream; in acp_pcm_open() local
61 stream = acp_dsp_stream_get(sdev, 0); in acp_pcm_open()
62 if (!stream) in acp_pcm_open()
66 stream->substream = substream; in acp_pcm_open()
74 struct acp_dsp_stream *stream; in acp_pcm_close() local
77 if (!stream) { in acp_pcm_close()
82 stream->substream = NULL; in acp_pcm_close()
94 struct snd_sof_pcm_stream *stream; in acp_pcm_pointer() local
107 stream = &spcm->stream[substream->stream]; in acp_pcm_pointer()
[all …]
A Dacp-stream.c31 int stream_tag = stream->stream_tag; in acp_dsp_stream_config()
41 stream->reg_offset = PTE_GRP1_OFFSET; in acp_dsp_stream_config()
47 stream->reg_offset = PTE_GRP2_OFFSET; in acp_dsp_stream_config()
134 if (stream->active) in acp_dsp_stream_get()
139 stream->active = 1; in acp_dsp_stream_get()
140 return stream; in acp_dsp_stream_get()
144 if (stream->stream_tag == tag) { in acp_dsp_stream_get()
145 stream->active = 1; in acp_dsp_stream_get()
146 return stream; in acp_dsp_stream_get()
164 if (stream == acp_stream) { in acp_dsp_stream_put()
[all …]
A Dacp-probes.c28 struct acp_dsp_stream *stream; in acp_probes_compr_startup() local
32 stream = acp_dsp_stream_get(sdev, 0); in acp_probes_compr_startup()
33 if (!stream) in acp_probes_compr_startup()
36 stream->cstream = cstream; in acp_probes_compr_startup()
37 cstream->runtime->private_data = stream; in acp_probes_compr_startup()
39 adata->probe_stream = stream; in acp_probes_compr_startup()
40 *stream_id = stream->stream_tag; in acp_probes_compr_startup()
54 ret = acp_dsp_stream_put(sdev, stream); in acp_probes_compr_shutdown()
61 stream->cstream = NULL; in acp_probes_compr_shutdown()
85 acp_dsp_stream_put(sdev, stream); in acp_probes_compr_set_params()
[all …]
A Dacp-trace.c20 struct acp_dsp_stream *stream; in acp_sof_trace_release() local
25 stream = adata->dtrace_stream; in acp_sof_trace_release()
26 ret = acp_dsp_stream_put(sdev, stream); in acp_sof_trace_release()
40 struct acp_dsp_stream *stream; in acp_sof_trace_init() local
46 if (!stream) in acp_sof_trace_init()
49 stream->dmab = dmab; in acp_sof_trace_init()
50 stream->num_pages = NUM_PAGES; in acp_sof_trace_init()
52 ret = acp_dsp_stream_config(sdev, stream); in acp_sof_trace_init()
54 acp_dsp_stream_put(sdev, stream); in acp_sof_trace_init()
58 adata->dtrace_stream = stream; in acp_sof_trace_init()
[all …]
/sound/soc/sof/
A Dpcm.c144 if (!spcm->stream[substream->stream].list) { in sof_pcm_hw_params()
156 spcm->stream[substream->stream].page_table.area, in sof_pcm_hw_params()
358 if (spcm->stream[substream->stream].suspend_ignored) { in sof_pcm_trigger()
378 spcm->stream[substream->stream].d0i3_compatible) { in sof_pcm_trigger()
379 spcm->stream[substream->stream].suspend_ignored = true; in sof_pcm_trigger()
468 spcm->stream[substream->stream].posn.host_posn); in sof_pcm_pointer()
470 spcm->stream[substream->stream].posn.dai_posn); in sof_pcm_pointer()
519 spcm->stream[substream->stream].posn.host_posn = 0; in sof_pcm_open()
520 spcm->stream[substream->stream].posn.dai_posn = 0; in sof_pcm_open()
521 spcm->stream[substream->stream].substream = substream; in sof_pcm_open()
[all …]
A Dcompress.c116 if (spcm->stream[dir].cstream) { in sof_compr_open()
121 spcm->stream[dir].cstream = cstream; in sof_compr_open()
123 spcm->stream[dir].posn.dai_posn = 0; in sof_compr_open()
137 struct sof_ipc_stream stream; in sof_compr_free() local
145 stream.hdr.size = sizeof(stream); in sof_compr_free()
147 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_free()
150 ret = sof_ipc_tx_message_no_reply(sdev->ipc, &stream, sizeof(stream)); in sof_compr_free()
273 struct sof_ipc_stream stream; in sof_compr_trigger() local
280 stream.hdr.size = sizeof(stream); in sof_compr_trigger()
282 stream.comp_id = spcm->stream[cstream->direction].comp_id; in sof_compr_trigger()
[all …]
A Dstream-ipc.c39 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_ipc_msg_data() local
42 if (!stream) in sof_ipc_msg_data()
45 posn_offset = stream->posn_offset; in sof_ipc_msg_data()
79 struct sof_stream *stream = sps->substream->runtime->private_data; in sof_set_stream_data_offset() local
81 stream->posn_offset = posn_offset; in sof_set_stream_data_offset()
83 sps->substream->stream, posn_offset); in sof_set_stream_data_offset()
102 struct sof_stream *stream = kmalloc(sizeof(*stream), GFP_KERNEL); in sof_stream_pcm_open() local
104 if (!stream) in sof_stream_pcm_open()
108 substream->runtime->private_data = stream; in sof_stream_pcm_open()
124 struct sof_stream *stream = substream->runtime->private_data; in sof_stream_pcm_close() local
[all …]
/sound/usb/caiaq/
A Daudio.c325 for (stream = 0; stream < cdev->n_streams; stream++) { in check_for_elapsed_periods()
348 int stream, i; in read_in_urb_mode0() local
354 for (stream = 0; stream < cdev->n_streams; stream++, i++) { in read_in_urb_mode0()
377 int stream, i; in read_in_urb_mode2() local
398 for (stream = 0; stream < cdev->n_streams; stream++, i++) { in read_in_urb_mode2()
423 int stream, i; in read_in_urb_mode3() local
430 for (stream = 0; stream < cdev->n_streams; stream++) { in read_in_urb_mode3()
460 ((stream << 1) | c), usb_buf[i], c, stream, i); in read_in_urb_mode3()
514 for (stream = 0; stream < cdev->n_streams; stream++, i++) { in fill_out_urb_mode_0()
534 for (stream = 0; stream < cdev->n_streams; stream++, i++) in fill_out_urb_mode_0()
[all …]
/sound/soc/amd/acp/
A Dacp-platform.c144 switch (stream->dai_id) { in config_acp_dma()
172 val = stream->pte_offset; in config_acp_dma()
196 struct acp_stream *stream; in acp_dma_open() local
199 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in acp_dma_open()
200 if (!stream) in acp_dma_open()
226 kfree(stream); in acp_dma_open()
233 kfree(stream); in acp_dma_open()
240 kfree(stream); in acp_dma_open()
282 bytescount = acp_get_byte_count(chip, stream->dai_id, substream->stream); in acp_dma_pointer()
311 list_del(&stream->list); in acp_dma_close()
[all …]
A Dacp-i2s.c98 struct acp_stream *stream; in acp_i2s_set_tdm_slot() local
164 chip->tdm_tx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
167 chip->tdm_rx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
175 chip->tdm_tx_fmt[stream->dai_id - 1] = in acp_i2s_set_tdm_slot()
400 stream->bytescount = acp_get_byte_count(chip, stream->dai_id, substream->stream); in acp_i2s_trigger()
524 unsigned int dir = substream->stream; in acp_i2s_prepare()
637 unsigned int dir = substream->stream; in acp_i2s_startup()
680 stream->id = dai->driver->id + dir; in acp_i2s_startup()
681 stream->dai_id = dai->driver->id; in acp_i2s_startup()
682 stream->irq_bit = irq_bit; in acp_i2s_startup()
[all …]
/sound/soc/codecs/
A Dhda.c51 stream->channels_min = pcm->stream[dir].channels_min; in hda_codec_create_dais()
52 stream->channels_max = pcm->stream[dir].channels_max; in hda_codec_create_dais()
53 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais()
54 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais()
55 stream->subformats = pcm->stream[dir].subformats; in hda_codec_create_dais()
56 stream->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais()
71 stream->channels_min = pcm->stream[dir].channels_min; in hda_codec_create_dais()
73 stream->rates = pcm->stream[dir].rates; in hda_codec_create_dais()
74 stream->formats = pcm->stream[dir].formats; in hda_codec_create_dais()
75 stream->subformats = pcm->stream[dir].subformats; in hda_codec_create_dais()
[all …]
/sound/firewire/oxfw/
A Doxfw-scs1x.c60 midi_input_escaped_byte(stream, byte); in midi_input_byte()
67 midi_input_escaped_byte(stream, 0x00); in midi_input_byte()
68 midi_input_escaped_byte(stream, 0xf9); in midi_input_byte()
100 struct snd_rawmidi_substream *stream; in handle_hss() local
114 stream = READ_ONCE(scs->input); in handle_hss()
115 if (stream) in handle_hss()
177 struct snd_rawmidi_substream *stream; in scs_output_work() local
185 stream = READ_ONCE(scs->output); in scs_output_work()
186 if (!stream || scs->error) { in scs_output_work()
293 WRITE_ONCE(scs->input, stream); in midi_capture_trigger()
[all …]
/sound/soc/intel/catpt/
A Dpcm.c270 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in catpt_dai_startup()
271 if (!stream) in catpt_dai_startup()
275 &stream->pgtbl); in catpt_dai_startup()
302 kfree(stream); in catpt_dai_startup()
323 kfree(stream); in catpt_dai_shutdown()
386 if (stream->allocated) in catpt_dai_hw_params()
452 if (stream->prepared) in catpt_dai_prepare()
532 if (!stream->prepared) in catpt_stream_update_position()
912 if (!stream) { in catpt_stream_volume_get()
944 if (!stream) { in catpt_stream_volume_put()
[all …]
/sound/soc/intel/atom/sst/
A Dsst_drv_interface.c42 struct stream_info *stream; in free_stream_context() local
46 if (stream) { in free_stream_context()
209 if (!stream) { in sst_cdev_close()
235 if (!stream) in sst_cdev_ack()
342 if (!stream) in sst_cdev_tstamp()
435 if (!stream) { in sst_close_pcm_stream()
498 if (!stream) in sst_read_timestamp()
587 if (!stream) in sst_stream_init()
594 stream->prev = stream->status; in sst_stream_init()
598 stream->pcm_substream, stream->period_elapsed, in sst_stream_init()
[all …]
/sound/soc/amd/ps/
A Dps-sdw-dma.c214 addr = stream->dma_addr; in acp63_config_dma()
321 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in acp63_sdw_dma_open()
322 if (!stream) in acp63_sdw_dma_open()
333 kfree(stream); in acp63_sdw_dma_open()
359 if (!stream) in acp63_sdw_dma_hw_params()
364 switch (stream->instance) { in acp63_sdw_dma_hw_params()
387 switch (stream->instance) { in acp63_sdw_dma_hw_params()
441 switch (stream->instance) { in acp63_sdw_get_byte_count()
457 switch (stream->instance) { in acp63_sdw_get_byte_count()
518 if (!stream) in acp63_sdw_dma_close()
[all …]
/sound/pci/pcxhr/
A Dpcxhr.c507 if (!stream->substream) in pcxhr_set_stream_state()
513 stream->timer_is_synced = 0; in pcxhr_set_stream_state()
516 stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_set_stream_state()
528 stream->status = in pcxhr_set_stream_state()
550 switch (stream->format) { in pcxhr_set_format()
584 if (stream->channels == 1) in pcxhr_set_format()
685 *pipe = stream->pipe; in pcxhr_stream_scheduled_get_pipe()
825 struct pcxhr_stream *stream; in pcxhr_trigger() local
837 stream->status = in pcxhr_trigger()
1052 stream->substream = subs; in pcxhr_open()
[all …]
/sound/pci/mixart/
A Dmixart.c386 if(!stream->substream) in mixart_set_stream_state()
394 if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mixart_set_stream_state()
404 stream->buf_periods = 0; in mixart_set_stream_state()
405 stream->buf_period_frag = 0; in mixart_set_stream_state()
758 stream->pipe = pipe; in snd_mixart_playback_open()
761 stream->substream = subs; in snd_mixart_playback_open()
839 stream->pipe = pipe; in snd_mixart_capture_open()
889 stream->pipe = NULL; in snd_mixart_close()
891 stream->substream = NULL; in snd_mixart_close()
932 int stream; in preallocate_buffers()
[all …]

Completed in 97 milliseconds

12345678910>>...21