/kernel/linux/linux-5.10/sound/soc/ux500/ |
H A D | mop500_ab8500.c | 224 bool is_playback; in mop500_ab8500_hw_params() local 296 is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mop500_ab8500_hw_params() 300 tx_slots = (is_playback) ? TX_SLOT_MONO : 0; in mop500_ab8500_hw_params() 301 rx_slots = (is_playback) ? 0 : RX_SLOT_MONO; in mop500_ab8500_hw_params() 305 tx_slots = (is_playback) ? TX_SLOT_STEREO : 0; in mop500_ab8500_hw_params() 306 rx_slots = (is_playback) ? 0 : RX_SLOT_STEREO; in mop500_ab8500_hw_params() 310 tx_slots = (is_playback) ? TX_SLOT_8CH : 0; in mop500_ab8500_hw_params() 311 rx_slots = (is_playback) ? 0 : RX_SLOT_8CH; in mop500_ab8500_hw_params()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/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 | 498 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_params() local 554 if (is_playback) in mchp_i2s_mcc_hw_params() 575 if (is_playback) in mchp_i2s_mcc_hw_params() 593 if (is_playback) in mchp_i2s_mcc_hw_params() 691 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_hw_free() local 694 if (is_playback) { in mchp_i2s_mcc_hw_free() 738 bool is_playback = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK); in mchp_i2s_mcc_trigger() local 748 if (is_playback) in mchp_i2s_mcc_trigger() 757 if (is_playback && (sr & MCHP_I2SMCC_SR_TXEN)) { in mchp_i2s_mcc_trigger() 765 } else if (!is_playback in mchp_i2s_mcc_trigger() [all...] |
/kernel/linux/linux-6.6/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 | 520 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 in mchp_i2s_mcc_trigger() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_uac2.c | 685 u8 bint, unsigned int factor, bool is_playback) in get_max_bw_for_bint() 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() 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 in in_rq_cur() local 684 get_max_bw_for_bint(const struct f_uac2_opts *uac2_opts, u8 bint, unsigned int factor, bool is_playback) get_max_bw_for_bint() argument 715 set_ep_max_packet_size_bint(struct device *dev, const struct f_uac2_opts *uac2_opts, struct usb_endpoint_descriptor *ep_desc, enum usb_device_speed speed, bool is_playback) set_ep_max_packet_size_bint() argument 1642 unsigned int is_playback = 0; in_rq_range() local 1732 unsigned int is_playback = 0; out_rq_cur_complete() local [all...] |
H A D | f_uac1.c | 444 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() 589 unsigned int is_playback = 0; in_rq_res() local 641 unsigned int is_playback = 0; out_rq_cur_complete() local [all...] |
/kernel/linux/linux-5.10/sound/soc/tegra/ |
H A D | tegra210_i2s.c | 86 bool is_playback) in tegra210_i2s_sw_reset() 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() 85 tegra210_i2s_sw_reset(struct snd_soc_component *compnt, bool is_playback) tegra210_i2s_sw_reset() argument
|
/kernel/linux/linux-6.6/sound/soc/tegra/ |
H A D | tegra210_i2s.c | 86 bool is_playback) in tegra210_i2s_sw_reset() 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() 85 tegra210_i2s_sw_reset(struct snd_soc_component *compnt, bool is_playback) tegra210_i2s_sw_reset() argument
|
/kernel/linux/linux-6.6/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() 188 if (is_playback) in meson_card_set_fe_link() 175 meson_card_set_fe_link(struct snd_soc_card *card, struct snd_soc_dai_link *link, struct device_node *node, bool is_playback) meson_card_set_fe_link() argument
|
/kernel/linux/linux-5.10/sound/soc/meson/ |
H A D | meson-card.h | 50 bool is_playback);
|
H A D | meson-card-utils.c | 186 bool is_playback) in meson_card_set_fe_link() 204 if (is_playback) in meson_card_set_fe_link() 183 meson_card_set_fe_link(struct snd_soc_card *card, struct snd_soc_dai_link *link, struct device_node *node, bool is_playback) meson_card_set_fe_link() argument
|
/kernel/linux/linux-6.6/sound/core/ |
H A D | pcm_lib.c | 1889 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...] |
/kernel/linux/linux-5.10/sound/core/ |
H A D | pcm_lib.c | 1829 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() 2183 if (!is_playback && in __snd_pcm_lib_xfer() 2197 if (!is_playback in __snd_pcm_lib_xfer() [all...] |
/kernel/linux/linux-5.10/sound/usb/ |
H A D | pcm.c | 432 int is_playback = subs->direction == SNDRV_PCM_STREAM_PLAYBACK; in set_sync_endpoint() local 444 if ((is_playback && (attr != USB_ENDPOINT_SYNC_ASYNC)) || in set_sync_endpoint() 445 (!is_playback && (attr != USB_ENDPOINT_SYNC_ADAPTIVE))) { in set_sync_endpoint() 469 if ((is_playback && (attr == USB_ENDPOINT_SYNC_SYNC || in set_sync_endpoint() 471 (!is_playback && attr != USB_ENDPOINT_SYNC_ADAPTIVE)) in set_sync_endpoint() 493 if (is_playback && attr == USB_ENDPOINT_SYNC_NONE) in set_sync_endpoint() 500 ((is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress | USB_DIR_IN)) || in set_sync_endpoint() 501 (!is_playback && ep != (unsigned int)(get_endpoint(alts, 0)->bSynchAddress & ~USB_DIR_IN)))) { in set_sync_endpoint() 503 "%d:%d : invalid sync pipe. is_playback %d, ep %02x, bSynchAddress %02x\n", in set_sync_endpoint() 505 is_playback, e in set_sync_endpoint() [all...] |
/kernel/linux/linux-5.10/sound/soc/ |
H A D | soc-generic-dmaengine-pcm.c | 307 bool is_playback = substream->stream == SNDRV_PCM_STREAM_PLAYBACK; in dmaengine_copy_user() local 312 if (is_playback) in dmaengine_copy_user() 322 if (!is_playback) in dmaengine_copy_user()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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() 379 "%d:%d : invalid sync pipe. is_playback %d, ep %02x, bSynchAddress %02x\n", 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 in snd_usb_audioformat_set_sync_ep() [all...] |
/kernel/linux/linux-5.10/sound/usb/usx2y/ |
H A D | usx2yhwdeppcm.c | 304 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_usbpcm_urbs_allocate() local 307 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_usbpcm_urbs_allocate() 309 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usx2y_usbpcm_urbs_allocate() 325 (*purb)->transfer_buffer = is_playback ? in usx2y_usbpcm_urbs_allocate()
|
H A D | usbusx2yaudio.c | 397 int is_playback = subs == subs->usx2y->subs[SNDRV_PCM_STREAM_PLAYBACK]; in usx2y_urbs_allocate() local 400 pipe = is_playback ? usb_sndisocpipe(dev, subs->endpoint) : in usx2y_urbs_allocate() 402 subs->maxpacksize = usb_maxpacket(dev, pipe, is_playback); in usx2y_urbs_allocate() 406 if (is_playback && NULL == subs->tmpbuf) { /* allocate a temporary buffer for playback */ in usx2y_urbs_allocate() 423 if (!is_playback && !(*purb)->transfer_buffer) { in usx2y_urbs_allocate()
|
/kernel/linux/linux-5.10/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 243 if (is_playback) { in sprd_pcm_hw_params()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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()
|