Home
last modified time | relevance | path

Searched refs:direction (Results 1 – 25 of 219) sorted by relevance

123456789

/sound/pci/hda/
Dhda_local.h44 #define HDA_CODEC_VOLUME_IDX(xname, xcidx, nid, xindex, direction) \ argument
45 HDA_CODEC_VOLUME_MONO_IDX(xname, xcidx, nid, 3, xindex, direction, 0)
47 #define HDA_CODEC_VOLUME_MONO(xname, nid, channel, xindex, direction) \ argument
48 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, channel, xindex, direction, 0)
50 #define HDA_CODEC_VOLUME(xname, nid, xindex, direction) \ argument
51 HDA_CODEC_VOLUME_MONO(xname, nid, 3, xindex, direction)
53 #define HDA_CODEC_VOLUME_MIN_MUTE(xname, nid, xindex, direction) \ argument
54 HDA_CODEC_VOLUME_MONO_IDX(xname, 0, nid, 3, xindex, direction, \
57 #define HDA_CODEC_MUTE_MONO_IDX(xname, xcidx, nid, channel, xindex, direction) \ argument
63 .private_value = HDA_COMPOSE_AMP_VAL(nid, channel, xindex, direction) }
[all …]
/sound/soc/codecs/
Dsdw-mockup.c44 int direction) in sdw_mockup_set_sdw_stream() argument
58 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in sdw_mockup_set_sdw_stream()
84 enum sdw_data_direction direction; in sdw_mockup_pcm_hw_params() local
99 direction = SDW_DATA_DIR_RX; in sdw_mockup_pcm_hw_params()
102 direction = SDW_DATA_DIR_TX; in sdw_mockup_pcm_hw_params()
109 stream_config.direction = direction; in sdw_mockup_pcm_hw_params()
Dmax98373-sdw.c537 enum sdw_data_direction direction; in max98373_sdw_dai_hw_params() local
550 direction = SDW_DATA_DIR_RX; in max98373_sdw_dai_hw_params()
553 direction = SDW_DATA_DIR_TX; in max98373_sdw_dai_hw_params()
559 stream_config.direction = direction; in max98373_sdw_dai_hw_params()
561 if (max98373->slot && direction == SDW_DATA_DIR_RX) { in max98373_sdw_dai_hw_params()
566 if (direction == SDW_DATA_DIR_TX) in max98373_sdw_dai_hw_params()
685 void *sdw_stream, int direction) in max98373_set_sdw_stream() argument
699 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in max98373_set_sdw_stream()
Drt1316-sdw.c484 int direction) in rt1316_set_sdw_stream() argument
498 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in rt1316_set_sdw_stream()
524 enum sdw_data_direction direction; in rt1316_sdw_hw_params() local
540 direction = SDW_DATA_DIR_RX; in rt1316_sdw_hw_params()
543 direction = SDW_DATA_DIR_TX; in rt1316_sdw_hw_params()
553 stream_config.direction = direction; in rt1316_sdw_hw_params()
/sound/soc/
Dsoc-compress.c30 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_clean()
70 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_open()
105 fe->pcm->streams[cstream->direction].substream; in soc_compr_open_fe()
109 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_open_fe()
180 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_free_fe()
223 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_trigger()
254 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_trigger_fe()
301 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_set_params()
345 fe->pcm->streams[cstream->direction].substream; in soc_compr_set_params_fe()
347 int stream = cstream->direction; /* SND_COMPRESS_xxx is same as SNDRV_PCM_STREAM_xxx */ in soc_compr_set_params_fe()
[all …]
/sound/firewire/
Dcmp.c52 (c->direction == CMP_INPUT) ? 'i' : 'o', in cmp_error()
59 if (c->direction == CMP_INPUT) in mpr_address()
67 if (c->direction == CMP_INPUT) in pcr_address()
122 enum cmp_direction direction, in cmp_connection_init() argument
129 c->direction = direction; in cmp_connection_init()
315 if (c->direction == CMP_OUTPUT) in cmp_connection_establish()
361 if (c->direction == CMP_OUTPUT) in cmp_connection_update()
Dcmp.h35 enum cmp_direction direction; member
40 enum cmp_direction direction,
Dpackets-buffer.c23 enum dma_data_direction direction) in iso_packets_buffer_init() argument
45 pages, direction); in iso_packets_buffer_init()
/sound/soc/uniphier/
Daio-compress.c29 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_new()
62 struct uniphier_aio_sub *sub = &aio->sub[compr->direction]; in uniphier_aio_comprdma_free()
80 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_open()
106 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_free()
127 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_get_params()
140 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_set_params()
176 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_hw_free()
189 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_prepare()
228 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_trigger()
262 struct uniphier_aio_sub *sub = &aio->sub[cstream->direction]; in uniphier_aio_compr_pointer()
[all …]
/sound/core/
Dpcm_param_trace.h35 __field(int, direction)
46 __entry->direction = substream->stream;
56 __entry->direction ? "c" : "p",
75 __field(int, direction)
96 __entry->direction = substream->stream;
116 __entry->direction ? "c" : "p",
Dpcm_dmaengine.c74 slave_config->direction = DMA_MEM_TO_DEV; in snd_hwparams_to_dma_slave_config()
77 slave_config->direction = DMA_DEV_TO_MEM; in snd_hwparams_to_dma_slave_config()
152 enum dma_transfer_direction direction; in dmaengine_pcm_prepare_and_submit() local
155 direction = snd_pcm_substream_to_dma_direction(substream); in dmaengine_pcm_prepare_and_submit()
164 snd_pcm_lib_period_bytes(substream), direction, flags); in dmaengine_pcm_prepare_and_submit()
Dcompress_offload.c102 if (dirn != compr->direction) { in snd_compr_open()
117 data->stream.direction = dirn; in snd_compr_open()
174 if (stream->direction == SND_COMPRESS_PLAYBACK) in snd_compr_update_tstamp()
190 stream->direction == SND_COMPRESS_PLAYBACK) { in snd_compr_calc_avail()
199 if (stream->direction == SND_COMPRESS_PLAYBACK) { in snd_compr_calc_avail()
210 if (stream->direction == SND_COMPRESS_PLAYBACK) in snd_compr_calc_avail()
387 if (stream->direction == SND_COMPRESS_PLAYBACK) in snd_compr_get_poll()
758 if (stream->direction != SND_COMPRESS_CAPTURE) in snd_compr_start()
908 if (stream->direction == SND_COMPRESS_CAPTURE) in snd_compr_next_track()
942 if (stream->direction == SND_COMPRESS_CAPTURE) in snd_compr_partial_drain()
[all …]
/sound/soc/sof/intel/
Dhda-pcm.c228 int direction = substream->stream; in hda_dsp_pcm_open() local
241 if (hda_always_enable_dmi_l1 && direction == SNDRV_PCM_STREAM_CAPTURE) in hda_dsp_pcm_open()
245 direction == SNDRV_PCM_STREAM_PLAYBACK || in hda_dsp_pcm_open()
249 dsp_stream = hda_dsp_stream_get(sdev, direction, flags); in hda_dsp_pcm_open()
271 int direction = substream->stream; in hda_dsp_pcm_close() local
274 ret = hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in hda_dsp_pcm_close()
Dhda-stream.c158 hda_dsp_stream_get(struct snd_sof_dev *sdev, int direction, u32 flags) in hda_dsp_stream_get() argument
169 if (s->direction == direction && !s->opened) { in hda_dsp_stream_get()
188 direction == SNDRV_PCM_STREAM_PLAYBACK ? in hda_dsp_stream_get()
209 int hda_dsp_stream_put(struct snd_sof_dev *sdev, int direction, int stream_tag) in hda_dsp_stream_put() argument
231 if (s->direction == direction && s->stream_tag == stream_tag) { in hda_dsp_stream_put()
593 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) { in hda_dsp_stream_hw_params()
845 hstream->direction = SNDRV_PCM_STREAM_CAPTURE; in hda_dsp_stream_init()
901 hstream->direction = SNDRV_PCM_STREAM_PLAYBACK; in hda_dsp_stream_init()
Dhda-loader.c31 int direction) in cl_stream_prepare() argument
38 dsp_stream = hda_dsp_stream_get(sdev, direction, 0); in cl_stream_prepare()
58 if (direction == SNDRV_PCM_STREAM_CAPTURE) { in cl_stream_prepare()
78 hda_dsp_stream_put(sdev, direction, hstream->stream_tag); in cl_stream_prepare()
227 if (hstream->direction == SNDRV_PCM_STREAM_PLAYBACK) in cl_cleanup()
233 hda_dsp_stream_put(sdev, hstream->direction, hstream->stream_tag); in cl_cleanup()
/sound/soc/intel/boards/
Dsof_sdw.c404 .direction = {true, true},
411 .direction = {true, true},
419 .direction = {true, true},
427 .direction = {true, false},
434 .direction = {true, true},
441 .direction = {false, true},
449 .direction = {false, true},
457 .direction = {false, true},
465 .direction = {false, true},
472 .direction = {true, true},
[all …]
/sound/usb/line6/
Dpcm.c138 get_stream(struct snd_line6_pcm *line6pcm, int direction) in get_stream() argument
140 return (direction == SNDRV_PCM_STREAM_PLAYBACK) ? in get_stream()
148 struct line6_pcm_stream *pstr, int direction, int type) in line6_buffer_acquire() argument
151 (direction == SNDRV_PCM_STREAM_PLAYBACK) ? in line6_buffer_acquire()
182 static int line6_stream_start(struct snd_line6_pcm *line6pcm, int direction, in line6_stream_start() argument
186 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); in line6_stream_start()
194 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in line6_stream_start()
207 static void line6_stream_stop(struct snd_line6_pcm *line6pcm, int direction, in line6_stream_stop() argument
211 struct line6_pcm_stream *pstr = get_stream(line6pcm, direction); in line6_stream_stop()
219 if (direction == SNDRV_PCM_STREAM_CAPTURE) { in line6_stream_stop()
/sound/virtio/
Dvirtio_chmap.c92 switch (info->direction) { in virtsnd_chmap_parse_cfg()
102 info->direction); in virtsnd_chmap_parse_cfg()
121 static int virtsnd_chmap_add_ctls(struct snd_pcm *pcm, int direction, in virtsnd_chmap_add_ctls() argument
131 return snd_pcm_add_chmap_ctls(pcm, direction, vs->chmaps, max_channels, in virtsnd_chmap_add_ctls()
179 if (info->direction == VIRTIO_SND_D_OUTPUT) in virtsnd_chmap_build_devs()
Dvirtio_pcm.c371 switch (info[i].direction) { in virtsnd_pcm_parse_cfg()
373 vss->direction = SNDRV_PCM_STREAM_PLAYBACK; in virtsnd_pcm_parse_cfg()
376 vss->direction = SNDRV_PCM_STREAM_CAPTURE; in virtsnd_pcm_parse_cfg()
380 vss->sid, info[i].direction); in virtsnd_pcm_parse_cfg()
385 vpcm->streams[vss->direction].nsubstreams++; in virtsnd_pcm_parse_cfg()
458 vs = &vpcm->streams[vss->direction]; in virtsnd_pcm_build_devs()
/sound/pci/ice1712/
Dice1712.h350 unsigned int direction; /* current direction bits */ member
428 ice->gpio.saved[0] = ice->gpio.direction; in snd_ice1712_save_gpio_status()
436 ice->gpio.direction = ice->gpio.saved[0]; in snd_ice1712_restore_gpio_status()
458 ice->gpio.direction |= mask; in snd_ice1712_gpio_write_bits()
459 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in snd_ice1712_gpio_write_bits()
469 ice->gpio.direction &= ~mask; in snd_ice1712_gpio_read_bits()
470 snd_ice1712_gpio_set_dir(ice, ice->gpio.direction); in snd_ice1712_gpio_read_bits()
/sound/soc/sprd/
Dsprd-pcm-compress.c204 if (cstream->direction == SND_COMPRESS_PLAYBACK) { in sprd_platform_compr_dma_config()
292 compr_params.direction = cstream->direction; in sprd_platform_compr_set_params()
300 ret = stream->compr_ops->set_params(cstream->direction, &compr_params); in sprd_platform_compr_set_params()
324 int stream_id = cstream->direction, ret; in sprd_platform_compr_open()
398 int stream_id = cstream->direction, i; in sprd_platform_compr_free()
426 int stream_id = cstream->direction; in sprd_platform_compr_trigger()
428 if (cstream->direction != SND_COMPRESS_PLAYBACK) { in sprd_platform_compr_trigger()
611 caps->direction = cstream->direction; in sprd_platform_compr_get_caps()
/sound/soc/ux500/
Dux500_msp_i2s.c200 if (config->direction & MSP_DIR_TX) in configure_protocol()
202 if (config->direction & MSP_DIR_RX) in configure_protocol()
367 if ((config->direction & MSP_DIR_RX) && in enable_msp()
373 if ((config->direction == MSP_DIR_TX) && in enable_msp()
381 if (config->direction & MSP_DIR_RX) in enable_msp()
383 if (config->direction & MSP_DIR_TX) in enable_msp()
445 tx_sel = (config->direction & MSP_DIR_TX) > 0; in ux500_msp_i2s_open()
446 rx_sel = (config->direction & MSP_DIR_RX) > 0; in ux500_msp_i2s_open()
571 int ux500_msp_i2s_trigger(struct ux500_msp *msp, int cmd, int direction) in ux500_msp_i2s_trigger() argument
585 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in ux500_msp_i2s_trigger()
[all …]
/sound/soc/amd/raven/
Dacp3x.h105 u16 direction; member
125 int direction) in acp_get_byte_count() argument
129 if (direction == SNDRV_PCM_STREAM_PLAYBACK) { in acp_get_byte_count()
/sound/soc/amd/vangogh/
Dacp5x.h101 u16 direction; member
149 int direction) in acp_get_byte_count() argument
153 if (direction == SNDRV_PCM_STREAM_PLAYBACK) { in acp_get_byte_count()
/sound/soc/sof/
Dsof-audio.h58 unsigned int direction; member
171 struct snd_sof_pcm *spcm, int direction,
202 int *direction);

123456789