Home
last modified time | relevance | path

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

12345678910>>...17

/sound/core/
Dcompress_offload.c52 struct snd_compr_stream stream; member
114 INIT_DELAYED_WORK(&data->stream.error_work, error_delayed_work); in snd_compr_open()
116 data->stream.ops = compr->ops; in snd_compr_open()
117 data->stream.direction = dirn; in snd_compr_open()
118 data->stream.private_data = compr->private_data; in snd_compr_open()
119 data->stream.device = compr; in snd_compr_open()
128 data->stream.runtime = runtime; in snd_compr_open()
131 ret = compr->ops->open(&data->stream); in snd_compr_open()
144 struct snd_compr_runtime *runtime = data->stream.runtime; in snd_compr_free()
146 cancel_delayed_work_sync(&data->stream.error_work); in snd_compr_free()
[all …]
Dpcm_trace.h19 __field( unsigned int, stream )
31 __entry->stream = (substream)->stream;
40 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
57 __field( unsigned int, stream )
67 __entry->stream = (substream)->stream;
75 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
90 __field( unsigned int, stream )
97 __entry->stream = (substream)->stream;
102 __entry->stream == SNDRV_PCM_STREAM_PLAYBACK ? "p" : "c",
113 __field( unsigned int, stream )
[all …]
/sound/soc/au1x/
Ddma.c42 struct audio_stream stream[2]; /* playback & capture */ member
45 static void au1000_release_dma_link(struct audio_stream *stream) in au1000_release_dma_link() argument
50 stream->period_size = 0; in au1000_release_dma_link()
51 stream->periods = 0; in au1000_release_dma_link()
52 pointer = stream->buffer; in au1000_release_dma_link()
59 } while (pointer != stream->buffer); in au1000_release_dma_link()
60 stream->buffer = NULL; in au1000_release_dma_link()
63 static int au1000_setup_dma_link(struct audio_stream *stream, in au1000_setup_dma_link() argument
67 struct snd_pcm_substream *substream = stream->substream; in au1000_setup_dma_link()
75 if (stream->period_size == period_bytes && in au1000_setup_dma_link()
[all …]
/sound/hda/ext/
Dhdac_ext_stream.c30 struct hdac_ext_stream *stream, in snd_hdac_ext_stream_init() argument
34 stream->pphc_addr = bus->ppcap + AZX_PPHC_BASE + in snd_hdac_ext_stream_init()
37 stream->pplc_addr = bus->ppcap + AZX_PPLC_BASE + in snd_hdac_ext_stream_init()
43 stream->spib_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
47 stream->fifo_addr = bus->spbcap + AZX_SPB_BASE + in snd_hdac_ext_stream_init()
53 stream->dpibr_addr = bus->drsmcap + AZX_DRSM_BASE + in snd_hdac_ext_stream_init()
56 stream->decoupled = false; in snd_hdac_ext_stream_init()
57 snd_hdac_stream_init(bus, &stream->hstream, idx, direction, tag); in snd_hdac_ext_stream_init()
76 struct hdac_ext_stream *stream = in snd_hdac_ext_stream_init_all() local
77 kzalloc(sizeof(*stream), GFP_KERNEL); in snd_hdac_ext_stream_init_all()
[all …]
/sound/soc/
Dsoc-pcm.c31 int stream) in snd_soc_dpcm_stream_lock_irq() argument
33 snd_pcm_stream_lock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_lock_irq()
36 #define snd_soc_dpcm_stream_lock_irqsave_nested(rtd, stream, flags) \ argument
37 snd_pcm_stream_lock_irqsave_nested(snd_soc_dpcm_get_substream(rtd, stream), flags)
40 int stream) in snd_soc_dpcm_stream_unlock_irq() argument
42 snd_pcm_stream_unlock_irq(snd_soc_dpcm_get_substream(rtd, stream)); in snd_soc_dpcm_stream_unlock_irq()
45 #define snd_soc_dpcm_stream_unlock_irqrestore(rtd, stream, flags) \ argument
46 snd_pcm_stream_unlock_irqrestore(snd_soc_dpcm_get_substream(rtd, stream), flags)
89 int stream, char *buf, size_t size) in dpcm_show_state() argument
91 struct snd_pcm_hw_params *params = &fe->dpcm[stream].hw_params; in dpcm_show_state()
[all …]
Dsoc-compress.c30 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_clean() local
35 snd_soc_runtime_deactivate(rtd, stream); in soc_compr_clean()
37 snd_soc_dai_digital_mute(codec_dai, 1, stream); in soc_compr_clean()
52 snd_soc_dapm_stream_stop(rtd, stream); in soc_compr_clean()
70 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_open() local
91 snd_soc_runtime_activate(rtd, stream); in soc_compr_open()
109 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_open_fe() local
113 fe->dpcm[stream].runtime = fe_substream->runtime; in soc_compr_open_fe()
115 ret = dpcm_path_get(fe, stream, &list); in soc_compr_open_fe()
122 dpcm_process_paths(fe, stream, &list, 1); in soc_compr_open_fe()
[all …]
/sound/soc/intel/atom/
Dsst-mfld-platform-compress.c47 struct sst_runtime_stream *stream; in sst_platform_compr_open() local
49 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sst_platform_compr_open()
50 if (!stream) in sst_platform_compr_open()
53 spin_lock_init(&stream->status_lock); in sst_platform_compr_open()
61 stream->compr_ops = sst->compr_ops; in sst_platform_compr_open()
62 stream->id = 0; in sst_platform_compr_open()
67 sst_set_stream_status(stream, SST_PLATFORM_INIT); in sst_platform_compr_open()
68 runtime->private_data = stream; in sst_platform_compr_open()
71 kfree(stream); in sst_platform_compr_open()
78 struct sst_runtime_stream *stream; in sst_platform_compr_free() local
[all …]
Dsst-mfld-platform-pcm.c96 static int sst_media_digital_mute(struct snd_soc_dai *dai, int mute, int stream) in sst_media_digital_mute() argument
99 return sst_send_pipe_gains(dai, stream, mute); in sst_media_digital_mute()
103 void sst_set_stream_status(struct sst_runtime_stream *stream, in sst_set_stream_status() argument
107 spin_lock_irqsave(&stream->status_lock, flags); in sst_set_stream_status()
108 stream->stream_status = state; in sst_set_stream_status()
109 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_set_stream_status()
112 static inline int sst_get_stream_status(struct sst_runtime_stream *stream) in sst_get_stream_status() argument
117 spin_lock_irqsave(&stream->status_lock, flags); in sst_get_stream_status()
118 state = stream->stream_status; in sst_get_stream_status()
119 spin_unlock_irqrestore(&stream->status_lock, flags); in sst_get_stream_status()
[all …]
/sound/soc/sprd/
Dsprd-pcm-compress.c107 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_drain_notify() local
109 memset(stream->info_area, 0, sizeof(struct sprd_compr_playinfo)); in sprd_platform_compr_drain_notify()
118 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_complete() local
119 struct sprd_compr_dma *dma = &stream->dma[1]; in sprd_platform_compr_dma_complete()
122 stream->copied_total += dma->trans_len; in sprd_platform_compr_dma_complete()
123 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()
135 struct sprd_compr_stream *stream = runtime->private_data; in sprd_platform_compr_dma_config() local
140 struct sprd_compr_dma *dma = &stream->dma[channel]; in sprd_platform_compr_dma_config()
174 src_addr = stream->iram_buffer.addr; in sprd_platform_compr_dma_config()
[all …]
/sound/xen/
Dxen_snd_front_alsa.c217 static void stream_clear(struct xen_snd_front_pcm_stream_info *stream) in stream_clear() argument
219 stream->is_open = false; in stream_clear()
220 stream->be_cur_frame = 0; in stream_clear()
221 stream->out_frames = 0; in stream_clear()
222 atomic_set(&stream->hw_ptr, 0); in stream_clear()
223 xen_snd_front_evtchnl_pair_clear(stream->evt_pair); in stream_clear()
224 memset(&stream->shbuf, 0, sizeof(stream->shbuf)); in stream_clear()
225 stream->buffer = NULL; in stream_clear()
226 stream->buffer_sz = 0; in stream_clear()
227 stream->pages = NULL; in stream_clear()
[all …]
/sound/soc/sof/
Dpcm.c31 int stream = substream->stream; in create_page_table() local
38 spcm->stream[stream].page_table.area, size); in create_page_table()
94 schedule_work(&spcm->stream[substream->stream].period_elapsed_work); in snd_sof_pcm_period_elapsed()
102 struct sof_ipc_stream stream; in sof_pcm_dsp_pcm_free() local
106 stream.hdr.size = sizeof(stream); in sof_pcm_dsp_pcm_free()
107 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE; in sof_pcm_dsp_pcm_free()
108 stream.comp_id = spcm->stream[substream->stream].comp_id; in sof_pcm_dsp_pcm_free()
111 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in sof_pcm_dsp_pcm_free()
112 sizeof(stream), &reply, sizeof(reply)); in sof_pcm_dsp_pcm_free()
114 spcm->prepared[substream->stream] = false; in sof_pcm_dsp_pcm_free()
[all …]
/sound/usb/caiaq/
Daudio.c30 #define MAKE_CHECKBYTE(cdev,stream,i) \ argument
31 (stream << 1) | (~(i / (cdev->n_streams * BYTES_PER_SAMPLE_USB)) & 1)
56 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in activate_substream()
71 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in deactivate_substream()
195 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in snd_usb_caiaq_pcm_prepare()
308 if (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_usb_caiaq_pcm_pointer()
333 int stream, pb, *cnt; in check_for_elapsed_periods() local
336 for (stream = 0; stream < cdev->n_streams; stream++) { in check_for_elapsed_periods()
337 sub = subs[stream]; in check_for_elapsed_periods()
342 cnt = (sub->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in check_for_elapsed_periods()
[all …]
/sound/soc/intel/atom/sst/
Dsst_drv_interface.c42 struct stream_info *stream; in free_stream_context() local
45 stream = get_stream_info(ctx, str_id); in free_stream_context()
46 if (stream) { in free_stream_context()
193 struct stream_info *stream; in sst_cdev_open() local
205 stream = &ctx->streams[str_id]; in sst_cdev_open()
206 stream->compr_cb = cb->compr_cb; in sst_cdev_open()
207 stream->compr_cb_param = cb->param; in sst_cdev_open()
208 stream->drain_notify = cb->drain_notify; in sst_cdev_open()
209 stream->drain_cb_param = cb->drain_cb_param; in sst_cdev_open()
221 struct stream_info *stream; in sst_cdev_close() local
[all …]
/sound/firewire/oxfw/
Doxfw-scs1x.c44 static void midi_input_escaped_byte(struct snd_rawmidi_substream *stream, in midi_input_escaped_byte() argument
51 snd_rawmidi_receive(stream, nibbles, 2); in midi_input_escaped_byte()
55 struct snd_rawmidi_substream *stream, u8 byte) in midi_input_byte() argument
60 midi_input_escaped_byte(stream, byte); in midi_input_byte()
63 snd_rawmidi_receive(stream, &eox, sizeof(eox)); in midi_input_byte()
65 snd_rawmidi_receive(stream, sysex_escape_prefix, 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()
71 snd_rawmidi_receive(stream, &byte, 1); in midi_input_byte()
76 struct snd_rawmidi_substream *stream, in midi_input_packet() argument
[all …]
/sound/soc/intel/catpt/
Dpcm.c86 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template()
90 if (substream->stream == SNDRV_PCM_STREAM_CAPTURE) in catpt_get_stream_template()
118 struct catpt_stream_runtime *stream) in catpt_stream_read_position() argument
122 memcpy_fromio(&pos, cdev->lpe_ba + stream->info.read_pos_regaddr, in catpt_stream_read_position()
128 struct catpt_stream_runtime *stream, u32 channel) in catpt_stream_volume() argument
135 offset = stream->info.volume_regaddr[channel]; in catpt_stream_volume()
264 struct catpt_stream_runtime *stream; in catpt_dai_startup() local
270 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in catpt_dai_startup()
271 if (!stream) in catpt_dai_startup()
275 &stream->pgtbl); in catpt_dai_startup()
[all …]
/sound/soc/sof/intel/
Dhda-compress.c26 struct hdac_ext_stream *stream; in hda_probe_compr_assign() local
28 stream = hda_dsp_stream_get(sdev, cstream->direction, 0); in hda_probe_compr_assign()
29 if (!stream) in hda_probe_compr_assign()
32 hdac_stream(stream)->curr_pos = 0; in hda_probe_compr_assign()
33 hdac_stream(stream)->cstream = cstream; in hda_probe_compr_assign()
34 cstream->runtime->private_data = stream; in hda_probe_compr_assign()
36 return hdac_stream(stream)->stream_tag; in hda_probe_compr_assign()
43 struct hdac_ext_stream *stream = hda_compr_get_stream(cstream); in hda_probe_compr_free() local
47 hdac_stream(stream)->stream_tag); in hda_probe_compr_free()
53 hdac_stream(stream)->cstream = NULL; in hda_probe_compr_free()
[all …]
Dintel-ipc.c35 struct intel_stream *stream = substream->runtime->private_data; in intel_ipc_msg_data() local
38 if (stream) in intel_ipc_msg_data()
39 sof_mailbox_read(sdev, stream->posn_offset, p, sz); in intel_ipc_msg_data()
48 struct intel_stream *stream = substream->runtime->private_data; in intel_ipc_pcm_params() local
56 stream->posn_offset = sdev->stream_box.offset + posn_offset; in intel_ipc_pcm_params()
59 substream->stream, stream->posn_offset); in intel_ipc_pcm_params()
68 struct intel_stream *stream = kmalloc(sizeof(*stream), GFP_KERNEL); in intel_pcm_open() local
70 if (!stream) in intel_pcm_open()
74 substream->runtime->private_data = stream; in intel_pcm_open()
90 struct intel_stream *stream = substream->runtime->private_data; in intel_pcm_close() local
[all …]
Dhda-stream.c33 struct hdac_stream *stream, in hda_setup_bdle() argument
44 if (stream->frags >= HDA_DSP_MAX_BDL_ENTRIES) { in hda_setup_bdle()
67 stream->frags++; in hda_setup_bdle()
71 stream->frags, chunk); in hda_setup_bdle()
84 struct hdac_stream *stream) in hda_dsp_stream_setup_bdl() argument
91 period_bytes = stream->period_bytes; in hda_dsp_stream_setup_bdl()
94 period_bytes = stream->bufsize; in hda_dsp_stream_setup_bdl()
96 periods = stream->bufsize / period_bytes; in hda_dsp_stream_setup_bdl()
100 remain = stream->bufsize % period_bytes; in hda_dsp_stream_setup_bdl()
105 bdl = (struct sof_intel_dsp_bdl *)stream->bdl.area; in hda_dsp_stream_setup_bdl()
[all …]
Dhda-dai.c28 int stream; member
62 struct hdac_stream *stream = NULL; in hda_link_stream_assign() local
64 int stream_dir = substream->stream; in hda_link_stream_assign()
72 list_for_each_entry(stream, &bus->stream_list, list) { in hda_link_stream_assign()
74 stream_to_hdac_ext_stream(stream); in hda_link_stream_assign()
75 if (stream->direction != substream->stream) in hda_link_stream_assign()
82 if (stream->opened) { in hda_link_stream_assign()
88 stream->stream_tag)) { in hda_link_stream_assign()
121 static int hda_link_dma_params(struct hdac_ext_stream *stream, in hda_link_dma_params() argument
124 struct hdac_stream *hstream = &stream->hstream; in hda_link_dma_params()
[all …]
/sound/soc/intel/skylake/
Dskl-pcm.c64 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); in get_bus_ctx() local
65 struct hdac_stream *hstream = hdac_stream(stream); in get_bus_ctx()
74 struct hdac_ext_stream *stream = get_hdac_ext_stream(substream); in skl_substream_alloc_pages() local
76 hdac_stream(stream)->bufsize = 0; in skl_substream_alloc_pages()
77 hdac_stream(stream)->period_bytes = 0; in skl_substream_alloc_pages()
78 hdac_stream(stream)->format_val = 0; in skl_substream_alloc_pages()
115 w = snd_soc_dai_get_widget(dai, substream->stream); in skl_set_suspend_active()
129 struct hdac_ext_stream *stream; in skl_pcm_host_dma_prepare() local
132 hstream = snd_hdac_get_stream(bus, params->stream, in skl_pcm_host_dma_prepare()
137 stream = stream_to_hdac_ext_stream(hstream); in skl_pcm_host_dma_prepare()
[all …]
/sound/pci/pcxhr/
Dpcxhr.c491 struct pcxhr_stream *stream) in pcxhr_set_stream_state() argument
497 if (stream->status == PCXHR_STREAM_STATUS_SCHEDULE_RUN) in pcxhr_set_stream_state()
500 if (stream->status != PCXHR_STREAM_STATUS_SCHEDULE_STOP) { in pcxhr_set_stream_state()
507 if (!stream->substream) in pcxhr_set_stream_state()
510 stream->timer_abs_periods = 0; in pcxhr_set_stream_state()
511 stream->timer_period_frag = 0; /* reset theoretical stream pos */ in pcxhr_set_stream_state()
512 stream->timer_buf_periods = 0; 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()
519 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_set_stream_state()
[all …]
/sound/pci/mixart/
Dmixart.c380 static int mixart_set_stream_state(struct mixart_stream *stream, int start) in mixart_set_stream_state() argument
386 if(!stream->substream) in mixart_set_stream_state()
391 stream_state_req.stream_info.stream_desc.uid_pipe = stream->pipe->group_uid; in mixart_set_stream_state()
392 stream_state_req.stream_info.stream_desc.stream_idx = stream->substream->number; in mixart_set_stream_state()
394 if (stream->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mixart_set_stream_state()
403 stream->abs_period_elapsed = 0; /* reset stream pos */ 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()
407 chip = snd_pcm_substream_chip(stream->substream); in mixart_set_stream_state()
418 struct mixart_stream *stream = subs->runtime->private_data; in snd_mixart_trigger() local
[all …]
/sound/soc/codecs/
Dsdw-mockup.c46 struct sdw_stream_data *stream; in sdw_mockup_set_sdw_stream() local
51 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in sdw_mockup_set_sdw_stream()
52 if (!stream) in sdw_mockup_set_sdw_stream()
55 stream->sdw_stream = sdw_stream; in sdw_mockup_set_sdw_stream()
59 dai->playback_dma_data = stream; in sdw_mockup_set_sdw_stream()
61 dai->capture_dma_data = stream; in sdw_mockup_set_sdw_stream()
69 struct sdw_stream_data *stream; in sdw_mockup_shutdown() local
71 stream = snd_soc_dai_get_dma_data(dai, substream); in sdw_mockup_shutdown()
73 kfree(stream); in sdw_mockup_shutdown()
85 struct sdw_stream_data *stream; in sdw_mockup_pcm_hw_params() local
[all …]
/sound/usb/misc/
Dua101.c210 static bool copy_playback_data(struct ua101_stream *stream, struct urb *urb, in copy_playback_data() argument
217 runtime = stream->substream->runtime; in copy_playback_data()
218 frame_bytes = stream->frame_bytes; in copy_playback_data()
219 source = runtime->dma_area + stream->buffer_pos * frame_bytes; in copy_playback_data()
220 if (stream->buffer_pos + frames <= runtime->buffer_size) { in copy_playback_data()
224 frames1 = runtime->buffer_size - stream->buffer_pos; in copy_playback_data()
230 stream->buffer_pos += frames; in copy_playback_data()
231 if (stream->buffer_pos >= runtime->buffer_size) in copy_playback_data()
232 stream->buffer_pos -= runtime->buffer_size; in copy_playback_data()
233 stream->period_pos += frames; in copy_playback_data()
[all …]
/sound/pci/au88x0/
Dau88x0_pcm.c170 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK && in snd_vortex_pcm_open()
194 stream_t *stream = (stream_t *) substream->runtime->private_data; in snd_vortex_pcm_close() local
197 if (stream != NULL) { in snd_vortex_pcm_close()
198 stream->substream = NULL; in snd_vortex_pcm_close()
199 stream->nr_ch = 0; in snd_vortex_pcm_close()
211 stream_t *stream = (stream_t *) (substream->runtime->private_data); in snd_vortex_pcm_hw_params() local
222 if (stream != NULL) in snd_vortex_pcm_hw_params()
223 vortex_adb_allocroute(chip, stream->dma, in snd_vortex_pcm_hw_params()
224 stream->nr_ch, stream->dir, in snd_vortex_pcm_hw_params()
225 stream->type, in snd_vortex_pcm_hw_params()
[all …]

12345678910>>...17