| /sound/soc/fsl/ |
| A D | fsl_asrc_dma.c | 74 if (!pair->desc[!dir]) { in fsl_asrc_dma_prepare_and_submit() 87 if (!pair->desc[dir]) { in fsl_asrc_dma_prepare_and_submit() 151 u8 dir = tx ? OUT : IN; in fsl_asrc_dma_hw_params() local 193 pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir); in fsl_asrc_dma_hw_params() 194 if (!pair->dma_chan[!dir]) { in fsl_asrc_dma_hw_params() 256 pair->dma_chan[dir] = in fsl_asrc_dma_hw_params() 266 if (!pair->dma_chan[dir]) { in fsl_asrc_dma_hw_params() 327 u8 dir = tx ? OUT : IN; in fsl_asrc_dma_hw_free() local 329 if (pair->dma_chan[!dir]) in fsl_asrc_dma_hw_free() 337 pair->dma_chan[dir] = NULL; in fsl_asrc_dma_hw_free() [all …]
|
| A D | fsl_asrc_m2m.c | 18 #define DIR_STR(dir) (dir) == IN ? "in" : "out" argument 20 #define ASRC_xPUT_DMA_CALLBACK(dir) \ argument 21 (((dir) == IN) ? asrc_input_dma_callback \ 104 int dir, int width) in asrc_dmaconfig() argument 133 if (dir == IN) { in asrc_dmaconfig() 148 DIR_STR(dir), ret); in asrc_dmaconfig() 170 pair->desc[dir] = dmaengine_prep_slave_sg(chan, sg, sg_len, in asrc_dmaconfig() 174 if (!pair->desc[dir]) { in asrc_dmaconfig() 175 dev_err(dev, "failed to prepare dmaengine for %s task\n", DIR_STR(dir)); in asrc_dmaconfig() 179 pair->desc[dir]->callback = ASRC_xPUT_DMA_CALLBACK(dir); in asrc_dmaconfig() [all …]
|
| A D | fsl_asrc_common.h | 147 struct dma_chan *(*get_dma_channel)(struct fsl_asrc_pair *pair, bool dir); 150 int (*get_fifo_addr)(u8 dir, enum asrc_pair_index index); 159 int (*m2m_get_maxburst)(u8 dir, struct fsl_asrc_pair *pair);
|
| /sound/soc/qcom/ |
| A D | lpass-lpaif-reg.h | 153 ((dir == SNDRV_PCM_STREAM_PLAYBACK) ? \ 160 __LPAIF_DMA_REG(v, chan, dir, CTL, dai_id)) 164 __LPAIF_DMA_REG(v, chan, dir, BASE, dai_id)) 168 __LPAIF_DMA_REG(v, chan, dir, BUFF, dai_id)) 172 __LPAIF_DMA_REG(v, chan, dir, CURR, dai_id)) 176 __LPAIF_DMA_REG(v, chan, dir, PER, dai_id)) 250 ((dir == SNDRV_PCM_STREAM_PLAYBACK) ? \ 255 ((dir == SNDRV_PCM_STREAM_PLAYBACK) ? \ 259 #define LPAIF_INTF_REG(v, chan, dir, dai_id) \ argument 261 LPAIF_CDC_INTF_REG(v, chan, dir, dai_id) : \ [all …]
|
| /sound/soc/sof/ |
| A D | sof-audio.c | 466 pipeline_params, dir); in sof_prepare_widgets_in_path() 678 int dir) in sof_widget_list_setup() argument 694 dir, SOF_WIDGET_PREPARE); in sof_widget_list_setup() 700 dir, SOF_WIDGET_SETUP); in sof_widget_list_setup() 703 dir, SOF_WIDGET_UNPREPARE); in sof_widget_list_setup() 779 spcm->stream[dir].list = NULL; in sof_widget_list_free() 795 int dir; in snd_sof_dsp_only_d0i3_compatible_stream_active() local 798 for_each_pcm_streams(dir) { in snd_sof_dsp_only_d0i3_compatible_stream_active() 867 int dir; in snd_sof_find_spcm_comp() local 870 for_each_pcm_streams(dir) { in snd_sof_find_spcm_comp() [all …]
|
| A D | pcm.c | 85 dai->name, snd_pcm_direction_name(dir)); in sof_pcm_setup_connected_widgets() 89 spcm->stream[dir].list = list; in sof_pcm_setup_connected_widgets() 94 spcm->stream[dir].list = NULL; in sof_pcm_setup_connected_widgets() 178 struct snd_sof_pcm *spcm, int dir, in sof_pcm_stream_free() argument 216 ret = sof_widget_list_free(sdev, spcm, dir); in sof_pcm_stream_free() 232 int dir, ret; in sof_pcm_free_all_streams() local 235 for_each_pcm_streams(dir) { in sof_pcm_free_all_streams() 236 substream = spcm->stream[dir].substream; in sof_pcm_free_all_streams() 239 spcm->stream[dir].suspend_ignored) in sof_pcm_free_all_streams() 242 if (spcm->stream[dir].list) { in sof_pcm_free_all_streams() [all …]
|
| A D | compress.c | 84 int dir = cstream->direction; in create_page_table() local 92 spcm->stream[dir].page_table.area, size); in create_page_table() 102 int dir; in sof_compr_open() local 114 dir = cstream->direction; in sof_compr_open() 116 if (spcm->stream[dir].cstream) { in sof_compr_open() 121 spcm->stream[dir].cstream = cstream; in sof_compr_open() 122 spcm->stream[dir].posn.host_posn = 0; in sof_compr_open() 123 spcm->stream[dir].posn.dai_posn = 0; in sof_compr_open() 124 spcm->prepared[dir] = false; in sof_compr_open()
|
| /sound/pci/lola/ |
| A D | lola_mixer.c | 19 int dir, int nid) in lola_init_pin() argument 47 if (dir == PLAY) in lola_init_pin() 86 err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); in lola_init_pins() 90 chip->pin[dir].num_analog_pins++; in lola_init_pins() 327 pin = chip->pin[dir].pins; in lola_setup_all_analog_gains() 328 max_idx = chip->pin[dir].num_pins; in lola_setup_all_analog_gains() 351 pin = &chip->pin[dir].pins[idx]; in set_analog_volume() 360 dir, idx, val); in set_analog_volume() 511 pin = &chip->pin[dir].pins[0]; in lola_analog_vol_tlv() 542 if (!chip->pin[dir].num_pins) in create_analog_mixer() [all …]
|
| /sound/soc/codecs/ |
| A D | hda.c | 32 int dir; in hda_codec_create_dais() local 39 dir = SNDRV_PCM_STREAM_PLAYBACK; in hda_codec_create_dais() 41 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 48 snd_pcm_direction_name(dir)); 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() 56 stream->sig_bits = pcm->stream[dir].maxbps; in hda_codec_create_dais() 59 dir = SNDRV_PCM_STREAM_CAPTURE; in hda_codec_create_dais() 61 if (!pcm->stream[dir].substreams) { in hda_codec_create_dais() 68 snd_pcm_direction_name(dir)); in hda_codec_create_dais() [all …]
|
| /sound/firewire/oxfw/ |
| A D | oxfw-stream.c | 62 enum avc_general_plug_dir dir; in set_stream_format() local 68 dir = AVC_GENERAL_PLUG_DIR_OUT; in set_stream_format() 71 dir = AVC_GENERAL_PLUG_DIR_IN; in set_stream_format() 203 enum avc_general_plug_dir dir; in keep_resources() local 211 dir = AVC_GENERAL_PLUG_DIR_IN; in keep_resources() 215 dir = AVC_GENERAL_PLUG_DIR_OUT; in keep_resources() 260 enum avc_general_plug_dir dir; in snd_oxfw_stream_reserve_duplex() local 275 dir = AVC_GENERAL_PLUG_DIR_OUT; in snd_oxfw_stream_reserve_duplex() 277 dir = AVC_GENERAL_PLUG_DIR_IN; in snd_oxfw_stream_reserve_duplex() 488 enum avc_general_plug_dir dir, in snd_oxfw_stream_get_current_formation() argument [all …]
|
| A D | oxfw.h | 99 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, 102 enum avc_general_plug_dir dir, unsigned int pid, 106 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_single() argument 109 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single() 113 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_list() argument 117 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list() 125 enum avc_general_plug_dir dir, 147 enum avc_general_plug_dir dir,
|
| A D | oxfw-command.c | 10 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, in avc_stream_set_format() argument 24 buf[4] = dir; /* Plug Direction */ in avc_stream_set_format() 53 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format() argument 68 buf[4] = dir; /* Plug Direction */ in avc_stream_get_format() 112 enum avc_general_plug_dir dir, in avc_general_inquiry_sig_fmt() argument 132 if (dir == AVC_GENERAL_PLUG_DIR_IN) in avc_general_inquiry_sig_fmt()
|
| /sound/soc/uniphier/ |
| A D | aio-ld11.c | 18 .dir = PORT_DIR_INPUT, 31 .dir = PORT_DIR_INPUT, 45 .dir = PORT_DIR_INPUT, 59 .dir = PORT_DIR_INPUT, 72 .dir = PORT_DIR_OUTPUT, 86 .dir = PORT_DIR_OUTPUT, 100 .dir = PORT_DIR_OUTPUT, 113 .dir = PORT_DIR_OUTPUT, 126 .dir = PORT_DIR_OUTPUT, 141 .dir = PORT_DIR_OUTPUT, [all …]
|
| A D | aio-pxs2.c | 18 .dir = PORT_DIR_INPUT, 32 .dir = PORT_DIR_INPUT, 46 .dir = PORT_DIR_OUTPUT, 60 .dir = PORT_DIR_OUTPUT, 74 .dir = PORT_DIR_OUTPUT, 87 .dir = PORT_DIR_OUTPUT, 100 .dir = PORT_DIR_OUTPUT, 113 .dir = PORT_DIR_OUTPUT, 126 .dir = PORT_DIR_OUTPUT,
|
| A D | aio-core.c | 214 if (sub->swm->dir == PORT_DIR_INPUT) { in aio_init() 254 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_reset() 336 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_rate() 455 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_fmt() 531 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_clk() 748 if (sub->swm->dir == PORT_DIR_INPUT) in aio_port_set_volume() 907 if (sub->swm->dir != PORT_DIR_OUTPUT) in aio_src_reset() 932 if (sub->swm->dir != PORT_DIR_OUTPUT) in aio_src_set_param() 1040 if (sub->swm->dir == PORT_DIR_OUTPUT) in aiodma_ch_set_param() 1250 if (sub->swm->dir == PORT_DIR_OUTPUT) in aiodma_rb_is_irq() [all …]
|
| /sound/usb/line6/ |
| A D | pcm.c | 304 int ret = 0, dir; in line6_pcm_acquire() local 308 for (dir = 0; dir < 2; dir++) { in line6_pcm_acquire() 309 pstr = get_stream(line6pcm, dir); in line6_pcm_acquire() 310 ret = line6_buffer_acquire(line6pcm, pstr, dir, type); in line6_pcm_acquire() 317 for (dir = 0; dir < 2; dir++) { in line6_pcm_acquire() 318 ret = line6_stream_start(line6pcm, dir, type); in line6_pcm_acquire() 335 int dir; in line6_pcm_release() local 338 for (dir = 0; dir < 2; dir++) in line6_pcm_release() 339 line6_stream_stop(line6pcm, dir, type); in line6_pcm_release() 340 for (dir = 0; dir < 2; dir++) { in line6_pcm_release() [all …]
|
| /sound/soc/atmel/ |
| A D | atmel_ssc_dai.c | 294 dir = 0; in atmel_ssc_startup() 297 dir = 1; in atmel_ssc_startup() 341 dir = 0; in atmel_ssc_shutdown() 343 dir = 1; in atmel_ssc_shutdown() 480 dir = 0; in atmel_ssc_hw_params() 482 dir = 1; in atmel_ssc_hw_params() 718 int dir; in atmel_ssc_prepare() local 721 dir = 0; in atmel_ssc_prepare() 723 dir = 1; in atmel_ssc_prepare() 742 int dir; in atmel_ssc_trigger() local [all …]
|
| /sound/hda/common/ |
| A D | hda_local.h | 28 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 31 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 32 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) 87 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) 119 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument 122 int ch, int dir, int idx, int mask, int val); 128 int dir, int idx, int mask, int val); 554 int dir, unsigned int bits); 556 #define nid_has_mute(codec, nid, dir) \ argument 558 #define nid_has_volume(codec, nid, dir) \ argument [all …]
|
| /sound/core/ |
| A D | ump.c | 258 int dir = substream->stream; in snd_ump_rawmidi_open() local 261 if (ump->substreams[dir]) in snd_ump_rawmidi_open() 273 int dir = substream->stream; in snd_ump_rawmidi_close() local 275 ump->substreams[dir] = NULL; in snd_ump_rawmidi_close() 276 ump->ops->close(ump, dir); in snd_ump_rawmidi_close() 284 int dir = substream->stream; in snd_ump_rawmidi_trigger() local 484 switch (dir) { in ump_direction_string() 498 switch (dir) { in ump_ui_hint_string() 1149 int dir = substream->stream; in snd_ump_legacy_open() local 1178 int dir = substream->stream; in snd_ump_legacy_close() local [all …]
|
| A D | memalloc.c | 75 dmab->dev.dir = dir; in snd_dma_alloc_dir_pages() 584 dmab->dev.dir); in snd_dma_noncontig_free() 598 if (dmab->dev.dir == DMA_TO_DEVICE) in snd_dma_noncontig_sync() 602 dmab->dev.dir); in snd_dma_noncontig_sync() 604 if (dmab->dev.dir == DMA_FROM_DEVICE) in snd_dma_noncontig_sync() 608 dmab->dev.dir); in snd_dma_noncontig_sync() 839 dmab->dev.dir, DEFAULT_GFP); in snd_dma_noncoherent_alloc() 848 dmab->addr, dmab->dev.dir); in snd_dma_noncoherent_free() 864 if (dmab->dev.dir != DMA_TO_DEVICE) in snd_dma_noncoherent_sync() 866 dmab->bytes, dmab->dev.dir); in snd_dma_noncoherent_sync() [all …]
|
| /sound/soc/amd/acp/ |
| A D | acp-i2s.c | 163 if (tx_mask && stream->dir == SNDRV_PCM_STREAM_PLAYBACK) in acp_i2s_set_tdm_slot() 524 unsigned int dir = substream->stream; in acp_i2s_prepare() local 529 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 556 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 583 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_prepare() 637 unsigned int dir = substream->stream; in acp_i2s_startup() local 642 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 653 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 664 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in acp_i2s_startup() 680 stream->id = dai->driver->id + dir; in acp_i2s_startup() [all …]
|
| /sound/usb/ |
| A D | midi2.c | 336 ump_to_endpoint(struct snd_ump_endpoint *ump, int dir) in ump_to_endpoint() argument 340 return rmidi->eps[dir]; in ump_to_endpoint() 437 int endpoint, dir; in create_midi2_endpoint() local 451 dir = (endpoint & USB_DIR_IN) ? STR_IN : STR_OUT; in create_midi2_endpoint() 454 ep->direction = dir; in create_midi2_endpoint() 460 if (dir == STR_IN) { in create_midi2_endpoint() 892 int i, blk, err, dir; in create_blocks_from_gtb() local 903 for (dir = 0; dir < 2; dir++) { in create_blocks_from_gtb() 904 if (!rmidi->eps[dir]) in create_blocks_from_gtb() 907 blk = rmidi->eps[dir]->ms_ep->baAssoGrpTrmBlkID[i]; in create_blocks_from_gtb() [all …]
|
| /sound/soc/renesas/rcar/ |
| A D | debugfs.c | 71 struct dentry *dir; in rsnd_debugfs_probe() local 87 dir = debugfs_create_dir(name, component->debugfs_root); in rsnd_debugfs_probe() 89 debugfs_create_file("playback", 0444, dir, &rdai->playback, &rsnd_debugfs_fops); in rsnd_debugfs_probe() 90 debugfs_create_file("capture", 0444, dir, &rdai->capture, &rsnd_debugfs_fops); in rsnd_debugfs_probe()
|
| /sound/firewire/dice/ |
| A D | dice-stream.c | 135 static void stop_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, in stop_streams() argument 143 if (dir == AMDTP_IN_STREAM) { in stop_streams() 198 enum amdtp_stream_direction dir, in keep_dual_resources() argument 217 if (dir == AMDTP_IN_STREAM) { in keep_dual_resources() 338 if (dir == AMDTP_IN_STREAM) { in start_streams() 347 if (dir == AMDTP_IN_STREAM) { in start_streams() 359 if (dir == AMDTP_IN_STREAM) { in start_streams() 495 if (dir == AMDTP_IN_STREAM) { in init_stream() 508 err = amdtp_am824_init(stream, dice->unit, dir, CIP_BLOCKING); in init_stream() 522 enum amdtp_stream_direction dir, in destroy_stream() argument [all …]
|
| /sound/soc/ |
| A D | soc-dapm.c | 49 for ((dir) = SND_SOC_DAPM_DIR_IN; (dir) <= SND_SOC_DAPM_DIR_OUT; \ 50 (dir)++) 201 if (w->endpoints[dir] == -1) in dapm_widget_invalidate_paths() 205 w->endpoints[dir] = -1; in dapm_widget_invalidate_paths() 213 node->endpoints[dir] = -1; in dapm_widget_invalidate_paths() 639 list_add(&path->list_node[dir], &path->node[dir]->edges[dir]); in snd_soc_dapm_add_path() 1224 dir = SND_SOC_DAPM_DIR_OUT; in dapm_new_mux() 1228 dir = SND_SOC_DAPM_DIR_IN; in dapm_new_mux() 1365 widget->endpoints[dir] = -1; in invalidate_paths_ep() 1376 invalidate_paths_ep(path->node[dir], dir); in invalidate_paths_ep() [all …]
|