Home
last modified time | relevance | path

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

/Linux-v4.19/sound/soc/ux500/
Dmop500_ab8500.c227 bool is_playback; in mop500_ab8500_hw_params() local
299 is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mop500_ab8500_hw_params()
303 tx_slots = (is_playback) ? TX_SLOT_MONO : 0; in mop500_ab8500_hw_params()
304 rx_slots = (is_playback) ? 0 : RX_SLOT_MONO; in mop500_ab8500_hw_params()
308 tx_slots = (is_playback) ? TX_SLOT_STEREO : 0; in mop500_ab8500_hw_params()
309 rx_slots = (is_playback) ? 0 : RX_SLOT_STEREO; in mop500_ab8500_hw_params()
313 tx_slots = (is_playback) ? TX_SLOT_8CH : 0; in mop500_ab8500_hw_params()
314 rx_slots = (is_playback) ? 0 : RX_SLOT_8CH; in mop500_ab8500_hw_params()
Dux500_msp_dai.c432 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in ux500_msp_dai_shutdown() local
444 is_playback ? MSP_DIR_TX : MSP_DIR_RX)) { in ux500_msp_dai_shutdown()
/Linux-v4.19/sound/soc/atmel/
Datmel-i2s.c282 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in atmel_i2s_prepare() local
285 if (is_playback) { in atmel_i2s_prepare()
334 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in atmel_i2s_hw_params() local
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()
/Linux-v4.19/sound/usb/
Dpcm.c396 int is_playback = subs->direction == SNDRV_PCM_STREAM_PLAYBACK; in set_sync_endpoint() local
408 if ((is_playback && (attr != USB_ENDPOINT_SYNC_ASYNC)) || in set_sync_endpoint()
409 (!is_playback && (attr != USB_ENDPOINT_SYNC_ADAPTIVE))) { in set_sync_endpoint()
429 if ((is_playback && (attr == USB_ENDPOINT_SYNC_SYNC || in set_sync_endpoint()
431 (!is_playback && attr != USB_ENDPOINT_SYNC_ADAPTIVE)) in set_sync_endpoint()
453 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in set_sync_endpoint()
459 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || in set_sync_endpoint()
460 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { in set_sync_endpoint()
464 is_playback, ep, get_endpoint(alts, 0)->bSynchAddress); in set_sync_endpoint()
465 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in set_sync_endpoint()
[all …]
Dendpoint.c451 int is_playback = direction == SNDRV_PCM_STREAM_PLAYBACK; in snd_usb_add_endpoint() local
470 is_playback ? "playback" : "capture", in snd_usb_add_endpoint()
487 if (is_playback) in snd_usb_add_endpoint()
/Linux-v4.19/sound/soc/
Dsoc-generic-dmaengine-pcm.c347 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in dmaengine_copy_user() local
352 if (is_playback) in dmaengine_copy_user()
362 if (!is_playback) in dmaengine_copy_user()
/Linux-v4.19/sound/core/
Dpcm_lib.c1829 int is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in wait_for_avail() local
1887 if (is_playback) in wait_for_avail()
1903 is_playback ? "playback" : "capture"); in wait_for_avail()
2127 bool is_playback; in __snd_pcm_lib_xfer() local
2134 is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in __snd_pcm_lib_xfer()
2147 if (is_playback) in __snd_pcm_lib_xfer()
2155 transfer = is_playback ? in __snd_pcm_lib_xfer()
2161 transfer = is_playback ? in __snd_pcm_lib_xfer()
2175 if (!is_playback && in __snd_pcm_lib_xfer()
2191 if (!is_playback && in __snd_pcm_lib_xfer()
[all …]
/Linux-v4.19/sound/usb/usx2y/
Dusx2yhwdeppcm.c316 int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usX2Y_usbpcm_urbs_allocate() local
319 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usX2Y_usbpcm_urbs_allocate()
321 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usX2Y_usbpcm_urbs_allocate()
337 (*purb)->transfer_buffer = is_playback ? in usX2Y_usbpcm_urbs_allocate()
Dusbusx2yaudio.c411 int is_playback = subs == subs->usX2Y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usX2Y_urbs_allocate() local
414 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usX2Y_urbs_allocate()
416 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usX2Y_urbs_allocate()
420 if (is_playback && NULL == subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usX2Y_urbs_allocate()
437 if (!is_playback && !(*purb)->transfer_buffer) { in usX2Y_urbs_allocate()
/Linux-v4.19/sound/soc/meson/
Daxg-card.c488 bool is_playback) in axg_card_set_fe_link() argument
497 if (is_playback) in axg_card_set_fe_link()
/Linux-v4.19/sound/soc/bcm/
Dcygnus-pcm.c217 bool is_playback, in ringbuf_set_initial() argument
230 if (is_playback) { in ringbuf_set_initial()
/Linux-v4.19/drivers/usb/gadget/function/
Df_uac2.c453 unsigned int factor, bool is_playback) in set_ep_max_packet_size() argument
458 if (is_playback) { in set_ep_max_packet_size()
/Linux-v4.19/sound/pci/
Drme32.c632 snd_rme32_setframelog(struct rme32 * rme32, int n_channels, int is_playback) in snd_rme32_setframelog() argument
642 if (is_playback) { in snd_rme32_setframelog()
Drme96.c919 int is_playback) in snd_rme96_setframelog() argument
929 if (is_playback) { in snd_rme96_setframelog()