Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 55) sorted by relevance

123

/sound/drivers/vx/
Dvx_pcm.c46 struct vx_pipe *pipe) in vx_pcm_read_per_bytes() argument
48 int offset = pipe->hw_ptr; in vx_pcm_read_per_bytes()
51 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
56 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
61 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes()
64 pipe->hw_ptr = offset; in vx_pcm_read_per_bytes()
90 struct vx_pipe *pipe) in vx_set_differed_time() argument
93 if (! (pipe->differed_type & DC_DIFFERED_DELAY)) in vx_set_differed_time()
100 vx_set_pcx_time(chip, &pipe->pcx_time, &rmh->Cmd[1]); in vx_set_differed_time()
103 if (pipe->differed_type & DC_NOTIFY_DELAY) in vx_set_differed_time()
[all …]
/sound/pci/lx6464es/
Dlx_core.h105 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture,
107 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture);
108 int lx_pipe_sample_count(struct lx6464es *chip, u32 pipe, int is_capture,
110 int lx_pipe_state(struct lx6464es *chip, u32 pipe, int is_capture, u16 *rstate);
111 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture);
112 int lx_pipe_start(struct lx6464es *chip, u32 pipe, int is_capture);
113 int lx_pipe_pause(struct lx6464es *chip, u32 pipe, int is_capture);
115 int lx_pipe_wait_for_start(struct lx6464es *chip, u32 pipe, int is_capture);
116 int lx_pipe_wait_for_idle(struct lx6464es *chip, u32 pipe, int is_capture);
120 u32 pipe, int is_capture);
[all …]
Dlx_core.c414 #define PIPE_INFO_TO_CMD(capture, pipe) \ argument
415 ((u32)((u32)(pipe) | ((capture) ? ID_IS_CAPTURE : 0L)) << ID_OFFSET)
420 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture, in lx_pipe_allocate() argument
424 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_allocate()
441 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_release() argument
444 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_release()
457 int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture, in lx_buffer_ask() argument
461 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_buffer_ask()
509 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_stop() argument
512 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_stop()
[all …]
/sound/sparc/
Ddbri.c295 int pipe; /* Data pipe used */ member
811 static inline int pipe_active(struct snd_dbri *dbri, int pipe) in pipe_active() argument
813 return ((pipe >= 0) && (dbri->pipes[pipe].desc != -1)); in pipe_active()
821 static void reset_pipe(struct snd_dbri *dbri, int pipe) in reset_pipe() argument
827 if (pipe < 0 || pipe > DBRI_MAX_PIPE) { in reset_pipe()
833 sdp = dbri->pipes[pipe].sdp; in reset_pipe()
846 desc = dbri->pipes[pipe].first_desc; in reset_pipe()
852 } while (desc != -1 && desc != dbri->pipes[pipe].first_desc); in reset_pipe()
854 dbri->pipes[pipe].desc = -1; in reset_pipe()
855 dbri->pipes[pipe].first_desc = -1; in reset_pipe()
[all …]
/sound/pci/pcxhr/
Dpcxhr_hwdep.c154 struct pcxhr_pipe *pipe, in pcxhr_dsp_allocate_pipe() argument
173 pipe->is_capture = is_capture; in pcxhr_dsp_allocate_pipe()
174 pipe->first_audio = pin; in pcxhr_dsp_allocate_pipe()
190 pipe->status = PCXHR_PIPE_DEFINED; in pcxhr_dsp_allocate_pipe()
199 static int pcxhr_dsp_free_pipe( struct pcxhr_mgr *mgr, struct pcxhr_pipe *pipe)
206 if (pipe->is_capture)
207 capture_mask = (1 << pipe->first_audio);
209 playback_mask = (1 << pipe->first_audio);
217 pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio,
223 pipe->status = PCXHR_PIPE_UNDEFINED;
[all …]
Dpcxhr.c516 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()
520 stream->pipe->first_audio, 0, stream_mask); in pcxhr_set_stream_state()
587 is_capture = stream->pipe->is_capture; in pcxhr_set_format()
592 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_set_format()
639 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_update_r_buffer()
669 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0,
670 1<<stream->pipe->first_audio);
682 struct pcxhr_pipe **pipe) in pcxhr_stream_scheduled_get_pipe() argument
685 *pipe = stream->pipe; in pcxhr_stream_scheduled_get_pipe()
[all …]
/sound/soc/intel/skylake/
Dskl-topology.c348 struct skl_pipe_params *params = m_cfg->pipe->p_params; in skl_tplg_update_module_params()
349 int p_conn_type = m_cfg->pipe->conn_type; in skl_tplg_update_module_params()
453 static int skl_tplg_module_prepare(struct skl_dev *skl, struct skl_pipe *pipe, in skl_tplg_module_prepare() argument
458 return skl_pcm_host_dma_prepare(skl->dev, pipe->p_params); in skl_tplg_module_prepare()
461 return skl_pcm_link_dma_prepare(skl->dev, pipe->p_params); in skl_tplg_module_prepare()
473 skl_tplg_init_pipe_modules(struct skl_dev *skl, struct skl_pipe *pipe) in skl_tplg_init_pipe_modules() argument
481 list_for_each_entry(w_module, &pipe->w_list, node) { in skl_tplg_init_pipe_modules()
494 cfg_idx = mconfig->pipe->cur_config_idx; in skl_tplg_init_pipe_modules()
506 ret = skl_tplg_module_prepare(skl, pipe, w, mconfig); in skl_tplg_init_pipe_modules()
550 struct skl_pipe *pipe) in skl_tplg_unload_pipe_modules() argument
[all …]
Dskl-debug.c110 "Pages %#x\n", mconfig->pipe->ppl_id, in module_read()
111 mconfig->pipe->pipe_priority, mconfig->pipe->conn_type, in module_read()
112 mconfig->pipe->memory_pages); in module_read()
116 mconfig->pipe->p_params->host_dma_id, in module_read()
117 mconfig->pipe->p_params->link_dma_id); in module_read()
121 mconfig->pipe->p_params->ch, in module_read()
122 mconfig->pipe->p_params->s_freq, in module_read()
123 mconfig->pipe->p_params->s_fmt); in module_read()
127 mconfig->pipe->p_params->linktype, in module_read()
128 mconfig->pipe->p_params->stream); in module_read()
[all …]
Dskl-messages.c572 struct skl_pipe_params *params = mconfig->pipe->p_params; in skl_get_node_id()
1037 if (mconfig->pipe->state != SKL_PIPE_CREATED) { in skl_init_module()
1039 mconfig->pipe->state, mconfig->pipe->ppl_id); in skl_init_module()
1052 msg.ppl_instance_id = mconfig->pipe->ppl_id; in skl_init_module()
1232 static int skl_set_pipe_state(struct skl_dev *skl, struct skl_pipe *pipe, in skl_set_pipe_state() argument
1237 return skl_ipc_set_pipeline_state(&skl->ipc, pipe->ppl_id, state); in skl_set_pipe_state()
1246 int skl_create_pipeline(struct skl_dev *skl, struct skl_pipe *pipe) in skl_create_pipeline() argument
1250 dev_dbg(skl->dev, "%s: pipe_id = %d\n", __func__, pipe->ppl_id); in skl_create_pipeline()
1252 ret = skl_ipc_create_pipeline(&skl->ipc, pipe->memory_pages, in skl_create_pipeline()
1253 pipe->pipe_priority, pipe->ppl_id, in skl_create_pipeline()
[all …]
Dskl-topology.h421 struct skl_pipe *pipe; member
435 struct skl_pipe *pipe; member
483 int skl_create_pipeline(struct skl_dev *skl, struct skl_pipe *pipe);
485 int skl_run_pipe(struct skl_dev *skl, struct skl_pipe *pipe);
487 int skl_pause_pipe(struct skl_dev *skl, struct skl_pipe *pipe);
489 int skl_delete_pipe(struct skl_dev *skl, struct skl_pipe *pipe);
491 int skl_stop_pipe(struct skl_dev *skl, struct skl_pipe *pipe);
493 int skl_reset_pipe(struct skl_dev *skl, struct skl_pipe *pipe);
/sound/pci/mixart/
Dmixart.c59 struct mixart_pipe *pipe, int start) in mixart_set_pipe_state() argument
67 switch(pipe->status) { in mixart_set_pipe_state()
101 group_state.pipe_uid[0] = pipe->group_uid; in mixart_set_pipe_state()
108 request.uid = pipe->group_uid; /*(struct mixart_uid){0,0};*/ in mixart_set_pipe_state()
148 pipe->status = PIPE_RUNNING; in mixart_set_pipe_state()
151 pipe->status = PIPE_STOPPED; in mixart_set_pipe_state()
158 struct mixart_pipe *pipe, unsigned int rate) in mixart_set_clock() argument
165 switch(pipe->status) { in mixart_set_clock()
188 clock_properties.uid_caller[0] = pipe->group_uid; in mixart_set_clock()
205 if(rate) pipe->status = PIPE_CLOCK_SET; in mixart_set_clock()
[all …]
Dmixart_hwdep.c164 struct mixart_pipe *pipe; in mixart_enum_connectors() local
167 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors()
169 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors()
172 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
174 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
208 struct mixart_pipe *pipe; in mixart_enum_connectors() local
211 pipe = &mgr->chip[k/2]->pipe_in_ana; in mixart_enum_connectors()
213 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_in_dig; in mixart_enum_connectors()
216 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
218 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
Dmixart_mixer.c717 struct mixart_pipe *pipe; in mixart_update_playback_stream_level() local
724 pipe = &chip->pipe_out_dig; /* AES playback */ in mixart_update_playback_stream_level()
727 pipe = &chip->pipe_out_ana; /* analog playback */ in mixart_update_playback_stream_level()
731 if(pipe->status == PIPE_UNDEFINED) in mixart_update_playback_stream_level()
734 set_level.stream_level.desc.uid_pipe = pipe->group_uid; in mixart_update_playback_stream_level()
765 struct mixart_pipe *pipe; in mixart_update_capture_stream_level() local
772 pipe = &chip->pipe_in_dig; in mixart_update_capture_stream_level()
775 pipe = &chip->pipe_in_ana; in mixart_update_capture_stream_level()
779 if(pipe->status == PIPE_UNDEFINED) in mixart_update_capture_stream_level()
784 set_level.level[0].connector = pipe->uid_left_connector; in mixart_update_capture_stream_level()
[all …]
/sound/pci/echoaudio/
Dechoaudio.c97 struct audiopipe *pipe = runtime->private_data; in audiopipe_free() local
99 if (pipe->sgpage.area) in audiopipe_free()
100 snd_dma_free_pages(&pipe->sgpage); in audiopipe_free()
101 kfree(pipe); in audiopipe_free()
270 struct audiopipe *pipe; in pcm_open() local
279 pipe = kzalloc(sizeof(struct audiopipe), GFP_KERNEL); in pcm_open()
280 if (!pipe) in pcm_open()
282 pipe->index = -1; /* Not configured yet */ in pcm_open()
285 memcpy(&pipe->hw, &pcm_hardware_skel, sizeof(struct snd_pcm_hardware)); in pcm_open()
287 pipe->constr.list = channels_list; in pcm_open()
[all …]
Dindigoio_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
106 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
111 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
118 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
119 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
123 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dechoaudio_dsp.c1054 static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, in allocate_pipes() argument
1078 pipe->index = pipe_index; in allocate_pipes()
1079 pipe->interleave = interleave; in allocate_pipes()
1080 pipe->state = PIPE_STATE_STOPPED; in allocate_pipes()
1085 pipe->dma_counter = (__le32 *)&chip->comm_page->position[pipe_index]; in allocate_pipes()
1086 *pipe->dma_counter = 0; in allocate_pipes()
1092 static int free_pipes(struct echoaudio *chip, struct audiopipe *pipe) in free_pipes() argument
1097 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index))) in free_pipes()
1099 if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED)) in free_pipes()
1102 for (channel_mask = i = 0; i < pipe->interleave; i++) in free_pipes()
[all …]
Dindigodj_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
136 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
141 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
148 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
149 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
153 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_dsp.c32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
136 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
141 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
148 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
149 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
153 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dindigo_express_dsp.c77 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
82 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
89 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
90 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
94 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
Dmia_dsp.c35 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe,
170 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument
175 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain()
182 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain()
183 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain()
187 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
/sound/pcmcia/vx/
Dvxp_ops.c354 struct vx_pipe *pipe, int count) in vxp_dma_write() argument
357 int offset = pipe->hw_ptr; in vxp_dma_write()
361 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write()
362 int length = pipe->buffer_bytes - offset; in vxp_dma_write()
371 pipe->hw_ptr = 0; in vxp_dma_write()
373 pipe->hw_ptr += count; in vxp_dma_write()
393 struct vx_pipe *pipe, int count) in vxp_dma_read() argument
397 int offset = pipe->hw_ptr; in vxp_dma_read()
403 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read()
404 int length = pipe->buffer_bytes - offset; in vxp_dma_read()
[all …]
/sound/x86/
Dintel_hdmi_audio.c36 #define for_each_pipe(card_ctx, pipe) \ argument
37 for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++)
192 static u32 had_config_offset(int pipe) in had_config_offset() argument
194 switch (pipe) { in had_config_offset()
207 int pipe, u32 reg) in had_read_register_raw() argument
209 return ioread32(card_ctx->mmio_start + had_config_offset(pipe) + reg); in had_read_register_raw()
213 int pipe, u32 reg, u32 val) in had_write_register_raw() argument
215 iowrite32(val, card_ctx->mmio_start + had_config_offset(pipe) + reg); in had_write_register_raw()
223 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg); in had_read_register()
229 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val); in had_write_register()
[all …]
/sound/usb/
Dhelper.c70 int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, in snd_usb_ctl_msg() argument
78 if (usb_pipe_type_check(dev, pipe)) in snd_usb_ctl_msg()
92 err = usb_control_msg(dev, pipe, request, requesttype, in snd_usb_ctl_msg()
100 snd_usb_ctl_msg_quirk(dev, pipe, request, requesttype, in snd_usb_ctl_msg()
/sound/hda/
Dhdac_component.c126 int port, pipe; in snd_hdac_sync_audio_rate() local
136 pipe = dev_id; in snd_hdac_sync_audio_rate()
137 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate()
167 int port, pipe; in snd_hdac_acomp_get_eld() local
178 pipe = dev_id; in snd_hdac_acomp_get_eld()
179 return acomp->ops->get_eld(acomp->dev, port, pipe, audio_enabled, in snd_hdac_acomp_get_eld()
/sound/pci/vx222/
Dvx222_ops.c246 struct vx_pipe *pipe, int count) in vx2_dma_write() argument
249 int offset = pipe->hw_ptr; in vx2_dma_write()
259 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write()
260 int length = pipe->buffer_bytes - offset; in vx2_dma_write()
269 pipe->hw_ptr = 0; in vx2_dma_write()
271 pipe->hw_ptr += count; in vx2_dma_write()
285 struct vx_pipe *pipe, int count) in vx2_dma_read() argument
287 int offset = pipe->hw_ptr; in vx2_dma_read()
297 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read()
298 int length = pipe->buffer_bytes - offset; in vx2_dma_read()
[all …]

123