/sound/soc/fsl/ |
D | fsl_asrc_dma.c | 58 u8 dir = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? OUT : IN; in fsl_asrc_dma_prepare_and_submit() local 69 pair->desc[!dir] = dmaengine_prep_dma_cyclic( in fsl_asrc_dma_prepare_and_submit() 70 pair->dma_chan[!dir], runtime->dma_addr, in fsl_asrc_dma_prepare_and_submit() 73 dir == OUT ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, flags); in fsl_asrc_dma_prepare_and_submit() 74 if (!pair->desc[!dir]) { in fsl_asrc_dma_prepare_and_submit() 79 pair->desc[!dir]->callback = fsl_asrc_dma_complete; in fsl_asrc_dma_prepare_and_submit() 80 pair->desc[!dir]->callback_param = substream; in fsl_asrc_dma_prepare_and_submit() 82 dmaengine_submit(pair->desc[!dir]); in fsl_asrc_dma_prepare_and_submit() 85 pair->desc[dir] = dmaengine_prep_dma_cyclic( in fsl_asrc_dma_prepare_and_submit() 86 pair->dma_chan[dir], 0xffff, 64, 64, DMA_DEV_TO_DEV, 0); in fsl_asrc_dma_prepare_and_submit() [all …]
|
D | mpc5200_psc_i2s.c | 88 int clk_id, unsigned int freq, int dir) in psc_i2s_set_sysclk() argument 92 cpu_dai, dir); in psc_i2s_set_sysclk() 93 return (dir == SND_SOC_CLOCK_IN) ? 0 : -EINVAL; in psc_i2s_set_sysclk()
|
/sound/soc/qcom/ |
D | lpass-lpaif-reg.h | 137 #define __LPAIF_DMA_REG(v, chan, dir, reg, dai_id) \ argument 138 ((dir == SNDRV_PCM_STREAM_PLAYBACK) ? \ 142 #define LPAIF_DMACTL_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, CTL, dai_id) argument 143 #define LPAIF_DMABASE_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, BASE, dai_id) argument 144 #define LPAIF_DMABUFF_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, BUFF, dai_id) argument 145 #define LPAIF_DMACURR_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, CURR, dai_id) argument 146 #define LPAIF_DMAPER_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, PER, dai_id) argument 147 #define LPAIF_DMAPERCNT_REG(v, chan, dir, dai_id) __LPAIF_DMA_REG(v, chan, dir, PERCNT, dai_id) argument
|
D | lpass-platform.c | 108 int ret, dma_ch, dir = substream->stream; in lpass_platform_pcmops_open() local 122 dma_ch = v->alloc_dma_channel(drvdata, dir, dai_id); in lpass_platform_pcmops_open() 140 LPAIF_DMACTL_REG(v, dma_ch, dir, data->i2s_port), 0); in lpass_platform_pcmops_open() 199 int id, dir = substream->stream; in lpass_platform_pcmops_hw_params() local 204 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in lpass_platform_pcmops_hw_params() 384 int ret, id, ch, dir = substream->stream; in lpass_platform_pcmops_prepare() local 389 if (dir == SNDRV_PCM_STREAM_PLAYBACK) { in lpass_platform_pcmops_prepare() 405 ret = regmap_write(map, LPAIF_DMABASE_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare() 413 ret = regmap_write(map, LPAIF_DMABUFF_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare() 421 ret = regmap_write(map, LPAIF_DMAPER_REG(v, ch, dir, dai_id), in lpass_platform_pcmops_prepare() [all …]
|
/sound/pci/lola/ |
D | lola_mixer.c | 19 int dir, int nid) in lola_init_pin() argument 33 else if (val == 0x0040000a && dir == CAPT) /* Dig=0, InAmp/ovrd */ in lola_init_pin() 35 else if (val == 0x0040000c && dir == PLAY) /* Dig=0, OutAmp/ovrd */ in lola_init_pin() 47 if (dir == PLAY) in lola_init_pin() 81 int lola_init_pins(struct lola *chip, int dir, int *nidp) in lola_init_pins() argument 85 for (i = 0; i < chip->pin[dir].num_pins; i++, nid++) { in lola_init_pins() 86 err = lola_init_pin(chip, &chip->pin[dir].pins[i], dir, nid); in lola_init_pins() 89 if (chip->pin[dir].pins[i].is_analog) in lola_init_pins() 90 chip->pin[dir].num_analog_pins++; in lola_init_pins() 316 static int set_analog_volume(struct lola *chip, int dir, [all …]
|
/sound/firewire/oxfw/ |
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() 93 err = avc_stream_set_format(oxfw->unit, dir, 0, formats[i], len); in set_stream_format() 201 enum avc_general_plug_dir dir; in keep_resources() local 209 dir = AVC_GENERAL_PLUG_DIR_IN; in keep_resources() 213 dir = AVC_GENERAL_PLUG_DIR_OUT; in keep_resources() 218 err = snd_oxfw_stream_get_current_formation(oxfw, dir, &formation); in keep_resources() 258 enum avc_general_plug_dir dir; in snd_oxfw_stream_reserve_duplex() local 273 dir = AVC_GENERAL_PLUG_DIR_OUT; in snd_oxfw_stream_reserve_duplex() [all …]
|
D | oxfw.h | 94 int avc_stream_set_format(struct fw_unit *unit, enum avc_general_plug_dir dir, 97 enum avc_general_plug_dir dir, unsigned int pid, 101 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_single() argument 104 return avc_stream_get_format(unit, dir, pid, buf, len, 0xff); in avc_stream_get_format_single() 108 enum avc_general_plug_dir dir, unsigned int pid, in avc_stream_get_format_list() argument 112 return avc_stream_get_format(unit, dir, pid, buf, len, eid); in avc_stream_get_format_list() 120 enum avc_general_plug_dir dir, 142 enum avc_general_plug_dir dir,
|
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/ |
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 …]
|
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,
|
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() 335 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_rate() 454 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_fmt() 530 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_clk() 645 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_param() 678 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_port_set_enable() 747 if (sub->swm->dir == PORT_DIR_INPUT) in aio_port_set_volume() 790 if (sub->swm->dir == PORT_DIR_OUTPUT) { in aio_if_set_param() 900 if (sub->swm->dir != PORT_DIR_OUTPUT) in aio_src_reset() [all …]
|
/sound/usb/line6/ |
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/ |
D | atmel_ssc_dai.c | 275 int dir, dir_mask; in atmel_ssc_startup() local 294 dir = 0; in atmel_ssc_startup() 297 dir = 1; in atmel_ssc_startup() 312 dma_params = &ssc_dma_params[pdev->id][dir]; in atmel_ssc_startup() 316 ssc_p->dma_params[dir] = dma_params; in atmel_ssc_startup() 338 int dir, dir_mask; in atmel_ssc_shutdown() local 341 dir = 0; in atmel_ssc_shutdown() 343 dir = 1; in atmel_ssc_shutdown() 345 dma_params = ssc_p->dma_params[dir]; in atmel_ssc_shutdown() 350 ssc_p->dma_params[dir] = NULL; in atmel_ssc_shutdown() [all …]
|
/sound/soc/sof/ |
D | sof-audio.c | 23 int dir; in snd_sof_dsp_only_d0i3_compatible_stream_active() local 26 for_each_pcm_streams(dir) { in snd_sof_dsp_only_d0i3_compatible_stream_active() 27 substream = spcm->stream[dir].substream; in snd_sof_dsp_only_d0i3_compatible_stream_active() 36 if (!spcm->stream[dir].d0i3_compatible) in snd_sof_dsp_only_d0i3_compatible_stream_active() 66 int dir; in sof_set_hw_params_upon_resume() local 74 for_each_pcm_streams(dir) { in sof_set_hw_params_upon_resume() 79 if (spcm->stream[dir].suspend_ignored) in sof_set_hw_params_upon_resume() 82 substream = spcm->stream[dir].substream; in sof_set_hw_params_upon_resume() 88 spcm->prepared[dir] = false; in sof_set_hw_params_upon_resume() 357 int dir; in snd_sof_find_spcm_comp() local [all …]
|
/sound/pci/hda/ |
D | hda_local.h | 26 #define HDA_COMPOSE_AMP_VAL_OFS(nid,chs,idx,dir,ofs) \ argument 27 ((nid) | ((chs)<<16) | ((dir)<<18) | ((idx)<<19) | ((ofs)<<23)) 29 #define HDA_COMPOSE_AMP_VAL(nid,chs,idx,dir) \ argument 30 HDA_COMPOSE_AMP_VAL_OFS(nid, chs, idx, dir, 0) 32 #define HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, channel, xindex, dir, flags) \ argument 42 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, dir) | flags } 84 #define HDA_CODEC_MUTE_BEEP_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) \ argument 85 HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, ch, xidx, dir) 117 #define snd_hda_codec_amp_read(codec, nid, ch, dir, idx) \ argument 118 snd_hdac_regmap_get_amp(&(codec)->core, nid, ch, dir, idx) [all …]
|
D | hda_codec.c | 1259 int dir, unsigned int bits) in snd_hda_check_amp_caps() argument 1263 if (get_wcaps(codec, nid) & (1 << (dir + 1))) in snd_hda_check_amp_caps() 1264 if (query_amp_caps(codec, nid, dir) & bits) in snd_hda_check_amp_caps() 1283 int snd_hda_override_amp_caps(struct hda_codec *codec, hda_nid_t nid, int dir, in snd_hda_override_amp_caps() argument 1290 parm = dir == HDA_OUTPUT ? AC_PAR_AMP_OUT_CAP : AC_PAR_AMP_IN_CAP; in snd_hda_override_amp_caps() 1296 int ch, int dir, int idx) in encode_amp() argument 1298 unsigned int cmd = snd_hdac_regmap_encode_amp(nid, ch, dir, idx); in encode_amp() 1301 if ((query_amp_caps(codec, nid, dir) & in encode_amp() 1320 int ch, int dir, int idx, int mask, int val) in snd_hda_codec_amp_update() argument 1322 unsigned int cmd = encode_amp(codec, nid, ch, dir, idx); in snd_hda_codec_amp_update() [all …]
|
/sound/soc/sh/rcar/ |
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/ |
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() 326 static int start_streams(struct snd_dice *dice, enum amdtp_stream_direction dir, in start_streams() argument 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() 488 static int init_stream(struct snd_dice *dice, enum amdtp_stream_direction dir, in init_stream() argument 495 if (dir == AMDTP_IN_STREAM) { in init_stream() [all …]
|
/sound/soc/ |
D | soc-dapm.c | 47 #define snd_soc_dapm_for_each_direction(dir) \ argument 48 for ((dir) = SND_SOC_DAPM_DIR_IN; (dir) <= SND_SOC_DAPM_DIR_OUT; \ 49 (dir)++) 207 struct snd_soc_dapm_widget *w, enum snd_soc_dapm_direction dir) in dapm_widget_invalidate_paths() argument 209 enum snd_soc_dapm_direction rdir = SND_SOC_DAPM_DIR_REVERSE(dir); in dapm_widget_invalidate_paths() 216 if (w->endpoints[dir] == -1) in dapm_widget_invalidate_paths() 220 w->endpoints[dir] = -1; in dapm_widget_invalidate_paths() 223 snd_soc_dapm_widget_for_each_path(w, dir, p) { in dapm_widget_invalidate_paths() 227 if (node->endpoints[dir] != -1) { in dapm_widget_invalidate_paths() 228 node->endpoints[dir] = -1; in dapm_widget_invalidate_paths() [all …]
|
/sound/firewire/bebob/ |
D | bebob.h | 173 enum avc_bridgeco_plug_dir dir, in avc_bridgeco_fill_unit_addr() argument 178 buf[1] = dir; in avc_bridgeco_fill_unit_addr() 186 enum avc_bridgeco_plug_dir dir, in avc_bridgeco_fill_msu_addr() argument 190 buf[1] = dir; in avc_bridgeco_fill_msu_addr()
|
/sound/soc/mediatek/mt2701/ |
D | mt2701-afe-clock-ctrl.h | 22 int dir); 25 int dir);
|
/sound/firewire/ |
D | fcp.h | 19 enum avc_general_plug_dir dir, 22 enum avc_general_plug_dir dir,
|
/sound/soc/codecs/ |
D | mc13783.c | 242 int clk_id, unsigned int freq, int dir, in mc13783_set_sysclk() argument 271 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_dac() argument 273 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_dac() 277 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_codec() argument 279 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_codec() 283 int clk_id, unsigned int freq, int dir) in mc13783_set_sysclk_sync() argument 287 ret = mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_DAC); in mc13783_set_sysclk_sync() 291 return mc13783_set_sysclk(dai, clk_id, freq, dir, MC13783_AUDIO_CODEC); in mc13783_set_sysclk_sync()
|
/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 329 phys_addr_t buf_add, int dir) in __q6asm_memory_unmap() argument 337 if (ac->port[dir].mem_map_handle == 0) { in __q6asm_memory_unmap() 354 pkt->hdr.token = ((ac->session << 8) | dir); in __q6asm_memory_unmap() 357 mem_unmap->mem_map_handle = ac->port[dir].mem_map_handle; in __q6asm_memory_unmap() 365 ac->port[dir].mem_map_handle = 0; in __q6asm_memory_unmap() 392 int q6asm_unmap_memory_regions(unsigned int dir, struct audio_client *ac) in q6asm_unmap_memory_regions() argument 398 port = &ac->port[dir]; in q6asm_unmap_memory_regions() 406 rc = __q6asm_memory_unmap(ac, port->buf[dir].phys, dir); in q6asm_unmap_memory_regions() 421 static int __q6asm_memory_map_regions(struct audio_client *ac, int dir, in __q6asm_memory_map_regions() argument 462 pkt->hdr.token = ((ac->session << 8) | dir); in __q6asm_memory_map_regions() [all …]
|
/sound/core/oss/ |
D | pcm_oss.c | 126 snd_pcm_hw_param_t var, int *dir) in snd_pcm_hw_param_value_min() argument 129 if (dir) in snd_pcm_hw_param_value_min() 130 *dir = 0; in snd_pcm_hw_param_value_min() 135 if (dir) in snd_pcm_hw_param_value_min() 136 *dir = i->openmin; in snd_pcm_hw_param_value_min() 152 snd_pcm_hw_param_t var, int *dir) in snd_pcm_hw_param_value_max() argument 155 if (dir) in snd_pcm_hw_param_value_max() 156 *dir = 0; in snd_pcm_hw_param_value_max() 161 if (dir) in snd_pcm_hw_param_value_max() 162 *dir = - (int) i->openmax; in snd_pcm_hw_param_value_max() [all …]
|