| /Linux-v4.19/sound/soc/qcom/ |
| D | sdm845.c | 45 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in sdm845_tdm_snd_hw_params() 115 DEFAULT_MCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_startup() 118 DEFAULT_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_startup() 128 DEFAULT_BCLK_RATE, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_startup() 152 0, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_shutdown() 155 0, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_shutdown() 164 0, SNDRV_PCM_STREAM_PLAYBACK); in sdm845_snd_shutdown()
|
| /Linux-v4.19/sound/soc/cirrus/ |
| D | ep93xx-i2s.c | 88 [SNDRV_PCM_STREAM_PLAYBACK] = { 128 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_enable() 136 stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_enable() 148 stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_disable() 152 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_disable() 206 &ep93xx_i2s_dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in ep93xx_i2s_dai_probe() 325 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in ep93xx_i2s_hw_params() 379 ep93xx_i2s_disable(info, SNDRV_PCM_STREAM_PLAYBACK); in ep93xx_i2s_suspend() 392 ep93xx_i2s_enable(info, SNDRV_PCM_STREAM_PLAYBACK); in ep93xx_i2s_resume()
|
| /Linux-v4.19/sound/soc/davinci/ |
| D | davinci-vcif.c | 66 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_vcif_start() 84 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_vcif_stop() 178 dai->playback_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_vcif_dai_probe() 218 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].filter_data = in davinci_vcif_probe() 220 davinci_vcif_dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK].addr = in davinci_vcif_probe()
|
| D | davinci-i2s.c | 195 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_mcbsp_start() 565 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_i2s_hw_params() 580 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_prepare() 590 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_trigger() 613 int playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in davinci_i2s_shutdown() 633 dai->playback_dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_dai_probe() 691 dma_data = &dev->dma_data[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_probe() 696 dma = &dev->dma_request[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_i2s_probe()
|
| D | davinci-mcasp.c | 238 mcasp->irq_request[SNDRV_PCM_STREAM_PLAYBACK]); in mcasp_start_tx() 245 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_start() 280 mcasp->irq_request[SNDRV_PCM_STREAM_PLAYBACK]); in mcasp_stop_tx() 303 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in davinci_mcasp_stop() 313 u32 irq_mask = mcasp->irq_request[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_mcasp_tx_irq_handler() 322 substream = mcasp->substreams[SNDRV_PCM_STREAM_PLAYBACK]; in davinci_mcasp_tx_irq_handler() 376 if (mcasp->substreams[SNDRV_PCM_STREAM_PLAYBACK]) in davinci_mcasp_common_irq_handler() 645 ret = davinci_mcasp_ch_constraint(mcasp, SNDRV_PCM_STREAM_PLAYBACK, in davinci_mcasp_set_ch_constraints() 683 mcasp->tdm_mask[SNDRV_PCM_STREAM_PLAYBACK] = tx_mask; in davinci_mcasp_set_tdm_slot() 763 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in mcasp_common_hw_param() [all …]
|
| /Linux-v4.19/sound/soc/fsl/ |
| D | imx-pcm-fiq.c | 61 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_hrtimer_callback() 100 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_prepare() 121 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger() 133 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_imx_pcm_trigger() 268 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in imx_pcm_new() 270 SNDRV_PCM_STREAM_PLAYBACK); in imx_pcm_new() 297 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in imx_pcm_fiq_new()
|
| D | fsl_dma.c | 173 if (dma_private->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_dma_update_pointers() 301 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in fsl_dma_new() 304 &pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new() 317 snd_dma_free_pages(&pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream->dma_buffer); in fsl_dma_new() 416 channel = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0 : 1; in fsl_dma_open() 429 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in fsl_dma_open() 508 mr |= (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? in fsl_dma_open() 669 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_dma_hw_params() 720 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in fsl_dma_pointer()
|
| /Linux-v4.19/sound/soc/sh/ |
| D | dma-sh7760.c | 122 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_open() 155 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pcm_close() 176 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_hw_params() 208 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in camelot_prepare() 251 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_trigger() 278 int recv = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? 0:1; in camelot_pos()
|
| /Linux-v4.19/sound/soc/bcm/ |
| D | cygnus-pcm.c | 265 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in configure_ringbuf_regs() 312 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_ringbuf() 330 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in enable_intr() 367 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in disable_intr() 416 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in cygnus_pcm_period_elapsed() 608 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in cygnus_pcm_open() 625 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in cygnus_pcm_close() 691 is_play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ? 1 : 0; in cygnus_pcm_prepare() 712 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in cygnus_pcm_pointer() 772 substream = pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream; in cygnus_dma_free_dma_buffers() [all …]
|
| /Linux-v4.19/sound/soc/dwc/ |
| D | dwc-i2s.c | 43 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_disable_channels() 56 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_clear_irqs() 70 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_disable_irqs() 88 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in i2s_enable_irqs() 111 i2s_clear_irqs(dev, SNDRV_PCM_STREAM_PLAYBACK); in i2s_irq_handler() 160 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in i2s_start() 173 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in i2s_stop() 197 (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)) in dw_i2s_startup() 200 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in dw_i2s_startup() 219 if (stream == SNDRV_PCM_STREAM_PLAYBACK) { in dw_i2s_config() [all …]
|
| /Linux-v4.19/sound/soc/omap/ |
| D | omap-mcbsp.c | 86 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_set_threshold() 141 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_dai_startup() 160 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcbsp_dai_shutdown() 161 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcbsp_dai_shutdown() 162 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcbsp_dai_shutdown() 183 int tx = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcbsp_dai_prepare() 184 int stream1 = tx ? SNDRV_PCM_STREAM_PLAYBACK : SNDRV_PCM_STREAM_CAPTURE; in omap_mcbsp_dai_prepare() 185 int stream2 = tx ? SNDRV_PCM_STREAM_CAPTURE : SNDRV_PCM_STREAM_PLAYBACK; in omap_mcbsp_dai_prepare() 204 int err = 0, play = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in omap_mcbsp_dai_trigger() 237 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in omap_mcbsp_dai_delay() [all …]
|
| /Linux-v4.19/sound/soc/kirkwood/ |
| D | kirkwood-dma.c | 150 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_open() 174 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_close() 215 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in kirkwood_dma_prepare() 235 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in kirkwood_dma_pointer() 284 if (pcm->streams[SNDRV_PCM_STREAM_PLAYBACK].substream) { in kirkwood_dma_new() 286 SNDRV_PCM_STREAM_PLAYBACK); in kirkwood_dma_new()
|
| /Linux-v4.19/sound/soc/sti/ |
| D | sti_uniperif.c | 34 .stream = SNDRV_PCM_STREAM_PLAYBACK, 42 .stream = SNDRV_PCM_STREAM_PLAYBACK, 50 .stream = SNDRV_PCM_STREAM_PLAYBACK, 58 .stream = SNDRV_PCM_STREAM_PLAYBACK, 339 if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) { in sti_uniperiph_dai_resume() 360 if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) in sti_uniperiph_dai_probe() 447 if (priv->dai_data.stream == SNDRV_PCM_STREAM_PLAYBACK) { in sti_uniperiph_cpu_dai_of()
|
| /Linux-v4.19/sound/soc/au1x/ |
| D | psc-ac97.c | 44 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_AC97PCR_TS : PSC_AC97PCR_RS) 46 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_AC97PCR_TP : PSC_AC97PCR_RP) 48 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_AC97PCR_TC : PSC_AC97PCR_RC) 51 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_AC97STAT_TB : PSC_AC97STAT_RB) 237 if (stype == SNDRV_PCM_STREAM_PLAYBACK) { in au1xpsc_ac97_hw_params() 389 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_ac97_drvprobe()
|
| D | psc-i2s.c | 45 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SSTAT_TB : PSC_I2SSTAT_RB) 47 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TS : PSC_I2SPCR_RS) 49 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TP : PSC_I2SPCR_RP) 51 ((stype) == SNDRV_PCM_STREAM_PLAYBACK ? PSC_I2SPCR_TC : PSC_I2SPCR_RC) 314 wd->dmaids[SNDRV_PCM_STREAM_PLAYBACK] = dmares->start; in au1xpsc_i2s_drvprobe()
|
| /Linux-v4.19/sound/usb/line6/ |
| D | pcm.c | 144 return (direction == SNDRV_PCM_STREAM_PLAYBACK) ? in get_stream() 155 (direction == SNDRV_PCM_STREAM_PLAYBACK) ? in line6_buffer_acquire() 198 if (direction == SNDRV_PCM_STREAM_PLAYBACK) in line6_stream_start() 250 err = line6_stream_start(line6pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_line6_trigger() 266 line6_stream_stop(line6pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_line6_trigger() 274 if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) in snd_line6_trigger() 280 if (s->stream != SNDRV_PCM_STREAM_PLAYBACK) in snd_line6_trigger() 503 snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, in snd_line6_new_pcm()
|
| /Linux-v4.19/sound/soc/codecs/ |
| D | adau17x1.c | 203 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_put() 232 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in adau17x1_dsp_mux_enum_get() 266 SNDRV_PCM_STREAM_PLAYBACK, adau17x1_dac_mux_text); 686 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 0; in adau17x1_set_dai_tdm_slot() 690 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 1; in adau17x1_set_dai_tdm_slot() 694 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 2; in adau17x1_set_dai_tdm_slot() 698 adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] = 3; in adau17x1_set_dai_tdm_slot() 716 if (adau->dsp_bypass[SNDRV_PCM_STREAM_PLAYBACK]) { in adau17x1_set_dai_tdm_slot() 718 (adau->tdm_slot[SNDRV_PCM_STREAM_PLAYBACK] * 2) + 1); in adau17x1_set_dai_tdm_slot()
|
| /Linux-v4.19/sound/pci/hda/ |
| D | patch_si3054.c | 159 val &= 0xff << (8 * (substream->stream != SNDRV_PCM_STREAM_PLAYBACK)); in si3054_pcm_prepare() 160 val |= ((stream_tag & 0xf) << 4) << (8 * (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)); in si3054_pcm_prepare() 206 info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; in si3054_build_pcms() 208 info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = codec->core.mfg; in si3054_build_pcms()
|
| /Linux-v4.19/sound/soc/pxa/ |
| D | pxa2xx-i2s.c | 172 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params() 188 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_hw_params() 227 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_i2s_trigger() 249 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in pxa2xx_i2s_shutdown()
|
| D | mmp-sspa.c | 274 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_hw_params() 305 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { in mmp_sspa_hw_params() 314 dma_params->addr = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in mmp_sspa_hw_params() 341 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_trigger() 352 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in mmp_sspa_trigger()
|
| D | pxa2xx-ac97.c | 111 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_hifi_startup() 126 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_aux_startup() 139 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in pxa2xx_ac97_mic_startup()
|
| /Linux-v4.19/sound/soc/txx9/ |
| D | txx9aclc.c | 135 dmadata->substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_submit() 156 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_tasklet() 216 u32 ctlbit = substream->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_pcm_trigger() 303 dev->dmadata[0].stream = SNDRV_PCM_STREAM_PLAYBACK; in txx9aclc_pcm_new() 354 if (dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK) { in txx9aclc_dma_init() 369 dmadata->stream == SNDRV_PCM_STREAM_PLAYBACK ? in txx9aclc_dma_init()
|
| /Linux-v4.19/sound/drivers/ |
| D | aloop.c | 154 if (dpcm->substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_setup() 200 #define CABLE_VALID_PLAYBACK (1 << SNDRV_PCM_STREAM_PLAYBACK) 212 if (stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_check_format() 216 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format() 231 runtime = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]-> in loopback_check_format() 233 setup = get_setup(cable->streams[SNDRV_PCM_STREAM_PLAYBACK]); in loopback_check_format() 234 card = cable->streams[SNDRV_PCM_STREAM_PLAYBACK]->loopback->card; in loopback_check_format() 281 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_trigger() 290 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_trigger() 299 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in loopback_trigger() [all …]
|
| /Linux-v4.19/sound/core/ |
| D | pcm_local.h | 42 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_avail() 51 if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) in snd_pcm_hw_avail()
|
| /Linux-v4.19/sound/usb/ |
| D | proc.c | 156 if (stream->substream[SNDRV_PCM_STREAM_PLAYBACK].num_formats) { in proc_pcm_format_read() 158 proc_dump_substream_status(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); in proc_pcm_format_read() 159 proc_dump_substream_formats(&stream->substream[SNDRV_PCM_STREAM_PLAYBACK], buffer); in proc_pcm_format_read()
|