/sound/drivers/vx/ |
D | vx_pcm.c | 61 struct vx_pipe *pipe) in vx_pcm_read_per_bytes() argument 63 int offset = pipe->hw_ptr; in vx_pcm_read_per_bytes() 66 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 71 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 76 if (++offset >= pipe->buffer_bytes) { in vx_pcm_read_per_bytes() 80 pipe->hw_ptr = offset; in vx_pcm_read_per_bytes() 106 struct vx_pipe *pipe) in vx_set_differed_time() argument 109 if (! (pipe->differed_type & DC_DIFFERED_DELAY)) in vx_set_differed_time() 116 vx_set_pcx_time(chip, &pipe->pcx_time, &rmh->Cmd[1]); in vx_set_differed_time() 119 if (pipe->differed_type & DC_NOTIFY_DELAY) in vx_set_differed_time() [all …]
|
/sound/pci/lx6464es/ |
D | lx_core.h | 120 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture, 122 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture); 123 int lx_pipe_sample_count(struct lx6464es *chip, u32 pipe, int is_capture, 125 int lx_pipe_state(struct lx6464es *chip, u32 pipe, int is_capture, u16 *rstate); 126 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture); 127 int lx_pipe_start(struct lx6464es *chip, u32 pipe, int is_capture); 128 int lx_pipe_pause(struct lx6464es *chip, u32 pipe, int is_capture); 130 int lx_pipe_wait_for_start(struct lx6464es *chip, u32 pipe, int is_capture); 131 int lx_pipe_wait_for_idle(struct lx6464es *chip, u32 pipe, int is_capture); 135 u32 pipe, int is_capture); [all …]
|
D | lx_core.c | 429 #define PIPE_INFO_TO_CMD(capture, pipe) \ argument 430 ((u32)((u32)(pipe) | ((capture) ? ID_IS_CAPTURE : 0L)) << ID_OFFSET) 435 int lx_pipe_allocate(struct lx6464es *chip, u32 pipe, int is_capture, in lx_pipe_allocate() argument 439 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_allocate() 456 int lx_pipe_release(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_release() argument 459 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_release() 472 int lx_buffer_ask(struct lx6464es *chip, u32 pipe, int is_capture, in lx_buffer_ask() argument 476 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_buffer_ask() 525 int lx_pipe_stop(struct lx6464es *chip, u32 pipe, int is_capture) in lx_pipe_stop() argument 528 u32 pipe_cmd = PIPE_INFO_TO_CMD(is_capture, pipe); in lx_pipe_stop() [all …]
|
/sound/sparc/ |
D | dbri.c | 295 int pipe; /* Data pipe used */ member 807 static inline int pipe_active(struct snd_dbri *dbri, int pipe) in pipe_active() argument 809 return ((pipe >= 0) && (dbri->pipes[pipe].desc != -1)); in pipe_active() 817 static void reset_pipe(struct snd_dbri *dbri, int pipe) in reset_pipe() argument 823 if (pipe < 0 || pipe > DBRI_MAX_PIPE) { in reset_pipe() 829 sdp = dbri->pipes[pipe].sdp; in reset_pipe() 842 desc = dbri->pipes[pipe].first_desc; in reset_pipe() 848 } while (desc != -1 && desc != dbri->pipes[pipe].first_desc); in reset_pipe() 850 dbri->pipes[pipe].desc = -1; in reset_pipe() 851 dbri->pipes[pipe].first_desc = -1; in reset_pipe() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_hwdep.c | 167 struct pcxhr_pipe *pipe, in pcxhr_dsp_allocate_pipe() argument 186 pipe->is_capture = is_capture; in pcxhr_dsp_allocate_pipe() 187 pipe->first_audio = pin; in pcxhr_dsp_allocate_pipe() 203 pipe->status = PCXHR_PIPE_DEFINED; in pcxhr_dsp_allocate_pipe() 212 static int pcxhr_dsp_free_pipe( struct pcxhr_mgr *mgr, struct pcxhr_pipe *pipe) 219 if (pipe->is_capture) 220 capture_mask = (1 << pipe->first_audio); 222 playback_mask = (1 << pipe->first_audio); 230 pcxhr_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->first_audio, 236 pipe->status = PCXHR_PIPE_UNDEFINED; [all …]
|
D | pcxhr.c | 530 stream->pipe->is_capture ? 1 : 1<<stream->substream->number; in pcxhr_set_stream_state() 533 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, in pcxhr_set_stream_state() 534 stream->pipe->first_audio, 0, stream_mask); in pcxhr_set_stream_state() 601 is_capture = stream->pipe->is_capture; in pcxhr_set_format() 606 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_set_format() 653 pcxhr_set_pipe_cmd_params(&rmh, is_capture, stream->pipe->first_audio, in pcxhr_update_r_buffer() 683 pcxhr_set_pipe_cmd_params(&rmh, stream->pipe->is_capture, 0, 0, 684 1<<stream->pipe->first_audio); 696 struct pcxhr_pipe **pipe) in pcxhr_stream_scheduled_get_pipe() argument 699 *pipe = stream->pipe; in pcxhr_stream_scheduled_get_pipe() [all …]
|
/sound/pci/mixart/ |
D | mixart.c | 73 struct mixart_pipe *pipe, int start) in mixart_set_pipe_state() argument 81 switch(pipe->status) { in mixart_set_pipe_state() 115 group_state.pipe_uid[0] = pipe->group_uid; in mixart_set_pipe_state() 122 request.uid = pipe->group_uid; /*(struct mixart_uid){0,0};*/ in mixart_set_pipe_state() 162 pipe->status = PIPE_RUNNING; in mixart_set_pipe_state() 165 pipe->status = PIPE_STOPPED; in mixart_set_pipe_state() 172 struct mixart_pipe *pipe, unsigned int rate) in mixart_set_clock() argument 179 switch(pipe->status) { in mixart_set_clock() 201 clock_properties.uid_caller[0] = pipe->group_uid; in mixart_set_clock() 218 if(rate) pipe->status = PIPE_CLOCK_SET; in mixart_set_clock() [all …]
|
D | mixart_hwdep.c | 176 struct mixart_pipe *pipe; in mixart_enum_connectors() local 179 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors() 181 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors() 184 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors() 186 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors() 220 struct mixart_pipe *pipe; in mixart_enum_connectors() local 223 pipe = &mgr->chip[k/2]->pipe_in_ana; in mixart_enum_connectors() 225 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_in_dig; in mixart_enum_connectors() 228 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors() 230 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
|
D | mixart_mixer.c | 730 struct mixart_pipe *pipe; in mixart_update_playback_stream_level() local 737 pipe = &chip->pipe_out_dig; /* AES playback */ in mixart_update_playback_stream_level() 740 pipe = &chip->pipe_out_ana; /* analog playback */ in mixart_update_playback_stream_level() 744 if(pipe->status == PIPE_UNDEFINED) in mixart_update_playback_stream_level() 747 set_level.stream_level.desc.uid_pipe = pipe->group_uid; in mixart_update_playback_stream_level() 778 struct mixart_pipe *pipe; in mixart_update_capture_stream_level() local 785 pipe = &chip->pipe_in_dig; in mixart_update_capture_stream_level() 788 pipe = &chip->pipe_in_ana; in mixart_update_capture_stream_level() 792 if(pipe->status == PIPE_UNDEFINED) in mixart_update_capture_stream_level() 797 set_level.level[0].connector = pipe->uid_left_connector; in mixart_update_capture_stream_level() [all …]
|
/sound/soc/intel/skylake/ |
D | skl-topology.c | 121 if (skl->resource.mem + mconfig->pipe->memory_pages > in skl_is_pipe_mem_avail() 144 skl->resource.mem += mconfig->pipe->memory_pages; in skl_tplg_alloc_pipe_mem() 203 skl->resource.mem -= mconfig->pipe->memory_pages; in skl_tplg_free_pipe_mem() 443 struct skl_pipe_params *params = m_cfg->pipe->p_params; in skl_tplg_update_module_params() 444 int p_conn_type = m_cfg->pipe->conn_type; in skl_tplg_update_module_params() 546 static int skl_tplg_module_prepare(struct skl_sst *ctx, struct skl_pipe *pipe, in skl_tplg_module_prepare() argument 551 return skl_pcm_host_dma_prepare(ctx->dev, pipe->p_params); in skl_tplg_module_prepare() 554 return skl_pcm_link_dma_prepare(ctx->dev, pipe->p_params); in skl_tplg_module_prepare() 566 skl_tplg_init_pipe_modules(struct skl *skl, struct skl_pipe *pipe) in skl_tplg_init_pipe_modules() argument 575 list_for_each_entry(w_module, &pipe->w_list, node) { in skl_tplg_init_pipe_modules() [all …]
|
D | skl-debug.c | 116 "Pages %#x\n", mconfig->pipe->ppl_id, in module_read() 117 mconfig->pipe->pipe_priority, mconfig->pipe->conn_type, in module_read() 118 mconfig->pipe->memory_pages); in module_read() 122 mconfig->pipe->p_params->host_dma_id, in module_read() 123 mconfig->pipe->p_params->link_dma_id); in module_read() 127 mconfig->pipe->p_params->ch, in module_read() 128 mconfig->pipe->p_params->s_freq, in module_read() 129 mconfig->pipe->p_params->s_fmt); in module_read() 133 mconfig->pipe->p_params->linktype, in module_read() 134 mconfig->pipe->p_params->stream); in module_read() [all …]
|
D | skl-messages.c | 504 struct skl_pipe_params *params = mconfig->pipe->p_params; in skl_get_node_id() 985 if (mconfig->pipe->state != SKL_PIPE_CREATED) { in skl_init_module() 987 mconfig->pipe->state, mconfig->pipe->ppl_id); in skl_init_module() 1000 msg.ppl_instance_id = mconfig->pipe->ppl_id; in skl_init_module() 1193 static int skl_set_pipe_state(struct skl_sst *ctx, struct skl_pipe *pipe, in skl_set_pipe_state() argument 1198 return skl_ipc_set_pipeline_state(&ctx->ipc, pipe->ppl_id, state); in skl_set_pipe_state() 1207 int skl_create_pipeline(struct skl_sst *ctx, struct skl_pipe *pipe) in skl_create_pipeline() argument 1211 dev_dbg(ctx->dev, "%s: pipe_id = %d\n", __func__, pipe->ppl_id); in skl_create_pipeline() 1213 ret = skl_ipc_create_pipeline(&ctx->ipc, pipe->memory_pages, in skl_create_pipeline() 1214 pipe->pipe_priority, pipe->ppl_id, in skl_create_pipeline() [all …]
|
D | skl-topology.h | 412 struct skl_pipe *pipe; member 426 struct skl_pipe *pipe; member 472 int skl_create_pipeline(struct skl_sst *ctx, struct skl_pipe *pipe); 474 int skl_run_pipe(struct skl_sst *ctx, struct skl_pipe *pipe); 476 int skl_pause_pipe(struct skl_sst *ctx, struct skl_pipe *pipe); 478 int skl_delete_pipe(struct skl_sst *ctx, struct skl_pipe *pipe); 480 int skl_stop_pipe(struct skl_sst *ctx, struct skl_pipe *pipe); 482 int skl_reset_pipe(struct skl_sst *ctx, struct skl_pipe *pipe);
|
/sound/pci/echoaudio/ |
D | indigoio_dsp.c | 32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 104 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument 109 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain() 116 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain() 117 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain() 121 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
|
D | echoaudio.c | 109 struct audiopipe *pipe = runtime->private_data; in audiopipe_free() local 111 if (pipe->sgpage.area) in audiopipe_free() 112 snd_dma_free_pages(&pipe->sgpage); in audiopipe_free() 113 kfree(pipe); in audiopipe_free() 275 struct audiopipe *pipe; in pcm_open() local 284 pipe = kzalloc(sizeof(struct audiopipe), GFP_KERNEL); in pcm_open() 285 if (!pipe) in pcm_open() 287 pipe->index = -1; /* Not configured yet */ in pcm_open() 290 memcpy(&pipe->hw, &pcm_hardware_skel, sizeof(struct snd_pcm_hardware)); in pcm_open() 292 pipe->constr.list = channels_list; in pcm_open() [all …]
|
D | echoaudio_dsp.c | 1056 static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe, in allocate_pipes() argument 1083 pipe->index = pipe_index; in allocate_pipes() 1084 pipe->interleave = interleave; in allocate_pipes() 1085 pipe->state = PIPE_STATE_STOPPED; in allocate_pipes() 1090 pipe->dma_counter = &chip->comm_page->position[pipe_index]; in allocate_pipes() 1091 *pipe->dma_counter = 0; in allocate_pipes() 1097 static int free_pipes(struct echoaudio *chip, struct audiopipe *pipe) in free_pipes() argument 1102 if (snd_BUG_ON(!is_pipe_allocated(chip, pipe->index))) in free_pipes() 1104 if (snd_BUG_ON(pipe->state != PIPE_STATE_STOPPED)) in free_pipes() 1107 for (channel_mask = i = 0; i < pipe->interleave; i++) in free_pipes() [all …]
|
D | indigodj_dsp.c | 32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument 139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain() 146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain() 147 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain() 151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
|
D | indigo_dsp.c | 32 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 134 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument 139 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain() 146 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain() 147 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain() 151 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
|
D | indigo_express_dsp.c | 77 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()
|
D | mia_dsp.c | 35 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, 168 static int set_vmixer_gain(struct echoaudio *chip, u16 output, u16 pipe, in set_vmixer_gain() argument 173 if (snd_BUG_ON(pipe >= num_pipes_out(chip) || in set_vmixer_gain() 180 chip->vmixer_gain[output][pipe] = gain; in set_vmixer_gain() 181 index = output * num_pipes_out(chip) + pipe; in set_vmixer_gain() 185 "set_vmixer_gain: pipe %d, out %d = %d\n", pipe, output, gain); in set_vmixer_gain()
|
/sound/pcmcia/vx/ |
D | vxp_ops.c | 365 struct vx_pipe *pipe, int count) in vxp_dma_write() argument 368 int offset = pipe->hw_ptr; in vxp_dma_write() 372 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_write() 373 int length = pipe->buffer_bytes - offset; in vxp_dma_write() 382 pipe->hw_ptr = 0; in vxp_dma_write() 384 pipe->hw_ptr += count; in vxp_dma_write() 404 struct vx_pipe *pipe, int count) in vxp_dma_read() argument 408 int offset = pipe->hw_ptr; in vxp_dma_read() 414 if (offset + count >= pipe->buffer_bytes) { in vxp_dma_read() 415 int length = pipe->buffer_bytes - offset; in vxp_dma_read() [all …]
|
/sound/x86/ |
D | intel_hdmi_audio.c | 45 #define for_each_pipe(card_ctx, pipe) \ argument 46 for ((pipe) = 0; (pipe) < (card_ctx)->num_pipes; (pipe)++) 197 static u32 had_config_offset(int pipe) in had_config_offset() argument 199 switch (pipe) { in had_config_offset() 212 int pipe, u32 reg) in had_read_register_raw() argument 214 return ioread32(card_ctx->mmio_start + had_config_offset(pipe) + reg); in had_read_register_raw() 218 int pipe, u32 reg, u32 val) in had_write_register_raw() argument 220 iowrite32(val, card_ctx->mmio_start + had_config_offset(pipe) + reg); in had_write_register_raw() 228 *val = had_read_register_raw(ctx->card_ctx, ctx->pipe, reg); in had_read_register() 234 had_write_register_raw(ctx->card_ctx, ctx->pipe, reg, val); in had_write_register() [all …]
|
/sound/hda/ |
D | hdac_i915.c | 210 int port, pipe; in snd_hdac_sync_audio_rate() local 217 pipe = dev_id; in snd_hdac_sync_audio_rate() 218 return acomp->ops->sync_audio_rate(acomp->dev, port, pipe, rate); in snd_hdac_sync_audio_rate() 248 int port, pipe; in snd_hdac_acomp_get_eld() local 257 pipe = dev_id; in snd_hdac_acomp_get_eld() 258 return acomp->ops->get_eld(acomp->dev, port, pipe, audio_enabled, in snd_hdac_acomp_get_eld()
|
/sound/pci/vx222/ |
D | vx222_ops.c | 259 struct vx_pipe *pipe, int count) in vx2_dma_write() argument 262 int offset = pipe->hw_ptr; in vx2_dma_write() 272 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_write() 273 int length = pipe->buffer_bytes - offset; in vx2_dma_write() 282 pipe->hw_ptr = 0; in vx2_dma_write() 284 pipe->hw_ptr += count; in vx2_dma_write() 298 struct vx_pipe *pipe, int count) in vx2_dma_read() argument 300 int offset = pipe->hw_ptr; in vx2_dma_read() 310 if (offset + count >= pipe->buffer_bytes) { in vx2_dma_read() 311 int length = pipe->buffer_bytes - offset; in vx2_dma_read() [all …]
|
/sound/usb/ |
D | helper.c | 83 int snd_usb_ctl_msg(struct usb_device *dev, unsigned int pipe, __u8 request, in snd_usb_ctl_msg() argument 102 err = usb_control_msg(dev, pipe, request, requesttype, in snd_usb_ctl_msg() 110 snd_usb_ctl_msg_quirk(dev, pipe, request, requesttype, in snd_usb_ctl_msg()
|