/linux/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 222 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()
|
H A D | ux500_msp_dai.c | 426 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/sound/soc/atmel/ |
H A D | atmel-i2s.c | 275 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()
|
H A D | mchp-i2s-mcc.c | 547 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_params() local 614 if (is_playback) in mchp_i2s_mcc_hw_params() 643 if (is_playback) in mchp_i2s_mcc_hw_params() 662 if (is_playback) in mchp_i2s_mcc_hw_params() 764 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_free() local 767 if (is_playback) { in mchp_i2s_mcc_hw_free() 820 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_trigger() local 830 if (is_playback) in mchp_i2s_mcc_trigger() 839 if (is_playback && (sr & MCHP_I2SMCC_SR_TXEN)) { in mchp_i2s_mcc_trigger() 850 } else if (!is_playback && (sr & MCHP_I2SMCC_SR_RXEN)) { in mchp_i2s_mcc_trigger()
|
/linux/drivers/usb/gadget/function/ |
H A D | f_uac2.c | 672 u8 bint, unsigned int factor, bool is_playback) in get_max_bw_for_bint() argument 677 if (is_playback) { in get_max_bw_for_bint() 687 if (is_playback || (uac2_opts->c_sync == USB_ENDPOINT_SYNC_ASYNC)) { in get_max_bw_for_bint() 704 enum usb_device_speed speed, bool is_playback) in set_ep_max_packet_size_bint() argument 715 max_size_bw = get_max_bw_for_bint(uac2_opts, bint, 1000, is_playback); in set_ep_max_packet_size_bint() 721 if (is_playback) in set_ep_max_packet_size_bint() 729 max_size_bw = get_max_bw_for_bint(uac2_opts, bint, 8000, is_playback); in set_ep_max_packet_size_bint() 734 uac2_opts, bint, 8000, is_playback); in set_ep_max_packet_size_bint() 745 if (is_playback) in set_ep_max_packet_size_bint() 1562 unsigned int is_playback = 0; in in_rq_cur() local [all …]
|
H A D | f_uac1.c | 501 unsigned int is_playback = 0; in in_rq_cur() local 504 is_playback = 1; in in_rq_cur() 509 u_audio_get_mute(audio, is_playback, &mute); in in_rq_cur() 517 u_audio_get_volume(audio, is_playback, &volume); in in_rq_cur() 552 unsigned int is_playback = 0; in in_rq_min() local 555 is_playback = 1; in in_rq_min() 561 if (is_playback) in in_rq_min() 599 unsigned int is_playback = 0; in in_rq_max() local 602 is_playback = 1; in in_rq_max() 608 if (is_playback) in in_rq_max() [all …]
|
/linux/sound/soc/meson/ |
H A D | meson-card.h | 49 bool is_playback);
|
H A D | meson-card-utils.c | 178 bool is_playback) in meson_card_set_fe_link() argument 188 if (is_playback) in meson_card_set_fe_link()
|
/linux/sound/soc/ |
H A D | soc-generic-dmaengine-pcm.c | 300 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/sound/core/ |
H A D | pcm_lib.c | 1953 int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wait_for_avail() local 2010 if (is_playback) in wait_for_avail() 2026 is_playback ? "playback write" : "capture read"); in wait_for_avail() 2282 bool is_playback; in __snd_pcm_lib_xfer() local 2289 is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in __snd_pcm_lib_xfer() 2302 if (is_playback) in __snd_pcm_lib_xfer() 2310 transfer = is_playback ? in __snd_pcm_lib_xfer() 2332 if (!is_playback && in __snd_pcm_lib_xfer() 2346 if (!is_playback && in __snd_pcm_lib_xfer() 2378 if (!is_playback) in __snd_pcm_lib_xfer() [all …]
|
/linux/sound/usb/ |
H A D | pcm.c | 319 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()
|
H A D | endpoint.c | 682 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() 1554 bool is_playback = usb_pipeout(ep->pipe); in snd_usb_endpoint_start() local 1605 if (is_playback) in snd_usb_endpoint_start() 1645 if (is_playback) { in snd_usb_endpoint_start()
|
/linux/sound/soc/codecs/ |
H A D | ad193x.c | 319 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in ad193x_hw_params() local 356 if (is_playback) { in ad193x_hw_params()
|
/linux/sound/usb/usx2y/ |
H A D | usbusx2yaudio.c | 426 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_urbs_allocate() local 430 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_urbs_allocate() 436 if (is_playback && !subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate() 453 if (!is_playback && !(*purb)->transfer_buffer) { in usx2y_urbs_allocate()
|
H A D | usx2yhwdeppcm.c | 319 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_usbpcm_urbs_allocate() local 323 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_usbpcm_urbs_allocate() 341 (*purb)->transfer_buffer = is_playback ? in usx2y_usbpcm_urbs_allocate()
|
/linux/sound/soc/sprd/ |
H A D | sprd-pcm-dma.c | 198 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/sound/soc/bcm/ |
H A D | cygnus-pcm.c | 207 bool is_playback, in ringbuf_set_initial() argument 220 if (is_playback) { in ringbuf_set_initial()
|
/linux/sound/soc/sh/ |
H A D | rz-ssi.c | 809 bool is_playback; in rz_ssi_dai_trigger() local 811 is_playback = rz_ssi_stream_is_play(ssi, substream); in rz_ssi_dai_trigger() 813 is_playback); in rz_ssi_dai_trigger()
|
/linux/sound/pci/ |
H A D | rme32.c | 596 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()
|
H A D | rme96.c | 878 int is_playback) in snd_rme96_setframelog() argument 888 if (is_playback) { in snd_rme96_setframelog()
|