Home
last modified time | relevance | path

Searched refs:is_playback (Results 1 – 19 of 19) sorted by relevance

/sound/soc/ux500/
Dmop500_ab8500.c222 bool is_playback; in mop500_ab8500_hw_params() local
294 is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mop500_ab8500_hw_params()
298 tx_slots = (is_playback) ? TX_SLOT_MONO : 0; in mop500_ab8500_hw_params()
299 rx_slots = (is_playback) ? 0 : RX_SLOT_MONO; in mop500_ab8500_hw_params()
303 tx_slots = (is_playback) ? TX_SLOT_STEREO : 0; in mop500_ab8500_hw_params()
304 rx_slots = (is_playback) ? 0 : RX_SLOT_STEREO; in mop500_ab8500_hw_params()
308 tx_slots = (is_playback) ? TX_SLOT_8CH : 0; in mop500_ab8500_hw_params()
309 rx_slots = (is_playback) ? 0 : RX_SLOT_8CH; in mop500_ab8500_hw_params()
Dux500_msp_dai.c427 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in ux500_msp_dai_shutdown() local
439 is_playback ? MSP_DIR_TX : MSP_DIR_RX)) { in ux500_msp_dai_shutdown()
/sound/soc/atmel/
Datmel-i2s.c275 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in atmel_i2s_prepare() local
278 if (is_playback) { in atmel_i2s_prepare()
327 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in atmel_i2s_hw_params() local
333 if (is_playback) in atmel_i2s_hw_params()
370 if (is_playback) in atmel_i2s_hw_params()
480 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in atmel_i2s_trigger() local
489 cr = is_playback ? ATMEL_I2SC_CR_TXEN : ATMEL_I2SC_CR_RXEN; in atmel_i2s_trigger()
495 cr = is_playback ? ATMEL_I2SC_CR_TXDIS : ATMEL_I2SC_CR_RXDIS; in atmel_i2s_trigger()
Dmchp-i2s-mcc.c520 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_params() local
587 if (is_playback) in mchp_i2s_mcc_hw_params()
616 if (is_playback) in mchp_i2s_mcc_hw_params()
634 if (is_playback) in mchp_i2s_mcc_hw_params()
736 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_free() local
739 if (is_playback) { in mchp_i2s_mcc_hw_free()
792 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_trigger() local
802 if (is_playback) in mchp_i2s_mcc_trigger()
811 if (is_playback && (sr & MCHP_I2SMCC_SR_TXEN)) { in mchp_i2s_mcc_trigger()
822 } else if (!is_playback && (sr & MCHP_I2SMCC_SR_RXEN)) { in mchp_i2s_mcc_trigger()
/sound/soc/tegra/
Dtegra210_i2s.c86 bool is_playback) in tegra210_i2s_sw_reset() argument
96 if (is_playback) { in tegra210_i2s_sw_reset()
119 is_playback ? "playback" : "capture"); in tegra210_i2s_sw_reset()
138 bool is_playback; in tegra210_i2s_init() local
143 is_playback = true; in tegra210_i2s_init()
147 is_playback = false; in tegra210_i2s_init()
160 is_playback ? "playback" : "capture"); in tegra210_i2s_init()
164 return tegra210_i2s_sw_reset(compnt, is_playback); in tegra210_i2s_init()
/sound/soc/meson/
Dmeson-card.h50 bool is_playback);
Dmeson-card-utils.c184 bool is_playback) in meson_card_set_fe_link() argument
202 if (is_playback) in meson_card_set_fe_link()
/sound/core/
Dpcm_lib.c1864 int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wait_for_avail() local
1922 if (is_playback) in wait_for_avail()
1938 is_playback ? "playback" : "capture"); in wait_for_avail()
2181 bool is_playback; in __snd_pcm_lib_xfer() local
2188 is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in __snd_pcm_lib_xfer()
2201 if (is_playback) in __snd_pcm_lib_xfer()
2209 transfer = is_playback ? in __snd_pcm_lib_xfer()
2215 transfer = is_playback ? in __snd_pcm_lib_xfer()
2237 if (!is_playback && in __snd_pcm_lib_xfer()
2251 if (!is_playback && in __snd_pcm_lib_xfer()
[all …]
/sound/soc/
Dsoc-generic-dmaengine-pcm.c300 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in dmaengine_copy_user() local
304 if (is_playback) in dmaengine_copy_user()
314 if (!is_playback) in dmaengine_copy_user()
/sound/usb/
Dpcm.c321 bool is_playback; in snd_usb_audioformat_set_sync_ep() local
343 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_audioformat_set_sync_ep()
345 if ((is_playback && (attr == USB_ENDPOINT_SYNC_SYNC || in snd_usb_audioformat_set_sync_ep()
347 (!is_playback && attr != USB_ENDPOINT_SYNC_ADAPTIVE)) in snd_usb_audioformat_set_sync_ep()
371 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in snd_usb_audioformat_set_sync_ep()
378 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || in snd_usb_audioformat_set_sync_ep()
379 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { in snd_usb_audioformat_set_sync_ep()
383 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress); in snd_usb_audioformat_set_sync_ep()
384 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in snd_usb_audioformat_set_sync_ep()
Dendpoint.c672 bool is_playback; in snd_usb_add_endpoint() local
692 is_playback = ((ep_num & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in snd_usb_add_endpoint()
694 if (is_playback) in snd_usb_add_endpoint()
1558 bool is_playback = usb_pipeout(ep->pipe); in snd_usb_endpoint_start() local
1609 if (is_playback) in snd_usb_endpoint_start()
1645 if (is_playback) { in snd_usb_endpoint_start()
/sound/soc/codecs/
Dad193x.c319 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in ad193x_hw_params() local
356 if (is_playback) { in ad193x_hw_params()
/sound/usb/usx2y/
Dusbusx2yaudio.c418 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_urbs_allocate() local
422 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_urbs_allocate()
428 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate()
445 if (!is_playback && !(*purb)->transfer_buffer) { in usx2y_urbs_allocate()
Dusx2yhwdeppcm.c318 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_usbpcm_urbs_allocate() local
322 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_usbpcm_urbs_allocate()
340 (*purb)->transfer_buffer = is_playback ? in usx2y_usbpcm_urbs_allocate()
/sound/soc/sprd/
Dsprd-pcm-dma.c198 int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in sprd_pcm_hw_params() local
238 if (is_playback) { in sprd_pcm_hw_params()
/sound/soc/bcm/
Dcygnus-pcm.c207 bool is_playback, in ringbuf_set_initial() argument
220 if (is_playback) { in ringbuf_set_initial()
/sound/soc/sh/
Drz-ssi.c730 bool is_playback; in rz_ssi_dai_trigger() local
732 is_playback = rz_ssi_stream_is_play(ssi, substream); in rz_ssi_dai_trigger()
734 is_playback); in rz_ssi_dai_trigger()
/sound/pci/
Drme32.c620 snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback) in snd_rme32_setframelog() argument
630 if (is_playback) { in snd_rme32_setframelog()
Drme96.c902 int is_playback) in snd_rme96_setframelog() argument
912 if (is_playback) { in snd_rme96_setframelog()