Home
last modified time | relevance | path

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

/Linux-v6.6/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.c426 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in ux500_msp_dai_shutdown() local
438 is_playback ? MSP_DIR_TX : MSP_DIR_RX)) { in ux500_msp_dai_shutdown()
/Linux-v6.6/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()
/Linux-v6.6/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()
/Linux-v6.6/drivers/usb/gadget/function/
Df_uac1.c444 unsigned int is_playback = 0; in in_rq_cur() local
447 is_playback = 1; in in_rq_cur()
452 u_audio_get_mute(audio, is_playback, &mute); in in_rq_cur()
460 u_audio_get_volume(audio, is_playback, &volume); in in_rq_cur()
495 unsigned int is_playback = 0; in in_rq_min() local
498 is_playback = 1; in in_rq_min()
504 if (is_playback) in in_rq_min()
542 unsigned int is_playback = 0; in in_rq_max() local
545 is_playback = 1; in in_rq_max()
551 if (is_playback) in in_rq_max()
[all …]
Df_uac2.c685 u8 bint, unsigned int factor, bool is_playback) in get_max_bw_for_bint() argument
690 if (is_playback) { in get_max_bw_for_bint()
700 if (is_playback || (uac2_opts->c_sync == USB_ENDPOINT_SYNC_ASYNC)) { in get_max_bw_for_bint()
717 enum usb_device_speed speed, bool is_playback) in set_ep_max_packet_size_bint() argument
728 max_size_bw = get_max_bw_for_bint(uac2_opts, bint, 1000, is_playback); in set_ep_max_packet_size_bint()
734 if (is_playback) in set_ep_max_packet_size_bint()
742 max_size_bw = get_max_bw_for_bint(uac2_opts, bint, 8000, is_playback); in set_ep_max_packet_size_bint()
747 uac2_opts, bint, 8000, is_playback); in set_ep_max_packet_size_bint()
758 if (is_playback) in set_ep_max_packet_size_bint()
1553 unsigned int is_playback = 0; in in_rq_cur() local
[all …]
/Linux-v6.6/sound/soc/meson/
Dmeson-card.h49 bool is_playback);
Dmeson-card-utils.c178 bool is_playback) in meson_card_set_fe_link() argument
188 if (is_playback) in meson_card_set_fe_link()
/Linux-v6.6/sound/soc/
Dsoc-generic-dmaengine-pcm.c300 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in dmaengine_copy() local
304 if (is_playback) in dmaengine_copy()
314 if (!is_playback) in dmaengine_copy()
/Linux-v6.6/sound/usb/
Dpcm.c319 bool is_playback; in snd_usb_audioformat_set_sync_ep() local
341 is_playback = !(get_endpoint(alts, 0)->bEndpointAddress & USB_DIR_IN); in snd_usb_audioformat_set_sync_ep()
343 if ((is_playback && (attr == USB_ENDPOINT_SYNC_SYNC || in snd_usb_audioformat_set_sync_ep()
345 (!is_playback && attr != USB_ENDPOINT_SYNC_ADAPTIVE)) in snd_usb_audioformat_set_sync_ep()
369 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in snd_usb_audioformat_set_sync_ep()
376 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || in snd_usb_audioformat_set_sync_ep()
377 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { in snd_usb_audioformat_set_sync_ep()
381 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress); in snd_usb_audioformat_set_sync_ep()
382 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in snd_usb_audioformat_set_sync_ep()
Dendpoint.c682 bool is_playback; in snd_usb_add_endpoint() local
702 is_playback = ((ep_num & USB_ENDPOINT_DIR_MASK) == USB_DIR_OUT); in snd_usb_add_endpoint()
704 if (is_playback) in snd_usb_add_endpoint()
1551 bool is_playback = usb_pipeout(ep->pipe); in snd_usb_endpoint_start() local
1602 if (is_playback) in snd_usb_endpoint_start()
1642 if (is_playback) { in snd_usb_endpoint_start()
/Linux-v6.6/sound/core/
Dpcm_lib.c1889 int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wait_for_avail() local
1946 if (is_playback) in wait_for_avail()
1962 is_playback ? "playback write" : "capture read"); in wait_for_avail()
2218 bool is_playback; in __snd_pcm_lib_xfer() local
2225 is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in __snd_pcm_lib_xfer()
2238 if (is_playback) in __snd_pcm_lib_xfer()
2246 transfer = is_playback ? in __snd_pcm_lib_xfer()
2268 if (!is_playback && in __snd_pcm_lib_xfer()
2282 if (!is_playback && in __snd_pcm_lib_xfer()
2314 if (!is_playback) in __snd_pcm_lib_xfer()
[all …]
/Linux-v6.6/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()
/Linux-v6.6/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()
/Linux-v6.6/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()
/Linux-v6.6/sound/soc/bcm/
Dcygnus-pcm.c207 bool is_playback, in ringbuf_set_initial() argument
220 if (is_playback) { in ringbuf_set_initial()
/Linux-v6.6/sound/soc/sh/
Drz-ssi.c742 bool is_playback; in rz_ssi_dai_trigger() local
744 is_playback = rz_ssi_stream_is_play(ssi, substream); in rz_ssi_dai_trigger()
746 is_playback); in rz_ssi_dai_trigger()
/Linux-v6.6/sound/pci/
Drme32.c596 snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback) in snd_rme32_setframelog() argument
606 if (is_playback) { in snd_rme32_setframelog()
Drme96.c880 int is_playback) in snd_rme96_setframelog() argument
890 if (is_playback) { in snd_rme96_setframelog()