Home
last modified time | relevance | path

Searched refs:bytes_to_frames (Results 1 – 93 of 93) sorted by relevance

/linux-4.4.14/include/sound/
Dpcm-indirect.h105 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect_playback_pointer()
174 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect_capture_pointer()
Dpcm.h674 static inline snd_pcm_sframes_t bytes_to_frames(struct snd_pcm_runtime *runtime, ssize_t size) in bytes_to_frames() function
/linux-4.4.14/sound/core/
Dpcm_dmaengine.c231 return bytes_to_frames(substream->runtime, prtd->pos); in snd_dmaengine_pcm_pointer_no_residue()
257 return bytes_to_frames(substream->runtime, pos); in snd_dmaengine_pcm_pointer()
Dpcm_native.c3050 count = bytes_to_frames(runtime, count); in snd_pcm_read()
3074 count = bytes_to_frames(runtime, count); in snd_pcm_write()
/linux-4.4.14/sound/soc/kirkwood/
Dkirkwood-dma.c236 count = bytes_to_frames(substream->runtime, in kirkwood_dma_pointer()
239 count = bytes_to_frames(substream->runtime, in kirkwood_dma_pointer()
/linux-4.4.14/sound/pci/ctxfi/
Dctpcm.c263 position = bytes_to_frames(runtime, position); in ct_pcm_playback_pointer()
368 position = bytes_to_frames(runtime, position); in ct_pcm_capture_pointer()
/linux-4.4.14/sound/pci/aw2/
Daw2-alsa.c567 return bytes_to_frames(substream->runtime, current_ptr); in snd_aw2_pcm_pointer_playback()
586 return bytes_to_frames(substream->runtime, current_ptr); in snd_aw2_pcm_pointer_capture()
/linux-4.4.14/sound/isa/sb/
Dsb8_main.c427 return bytes_to_frames(substream->runtime, ptr); in snd_sb8_playback_pointer()
443 return bytes_to_frames(substream->runtime, ptr); in snd_sb8_capture_pointer()
Dsb16_main.c458 return bytes_to_frames(substream->runtime, ptr); in snd_sb16_playback_pointer()
469 return bytes_to_frames(substream->runtime, ptr); in snd_sb16_capture_pointer()
/linux-4.4.14/sound/soc/sh/
Dsiu_pcm.c433 xfer_cnt = bytes_to_frames(rt, siu_stream->period_bytes); in siu_pcm_prepare()
523 return bytes_to_frames(ss->runtime, ptr); in siu_pcm_pointer_dma()
Ddma-sh7760.c294 return bytes_to_frames(runtime, pos); in camelot_pos()
/linux-4.4.14/sound/isa/msnd/
Dmsnd.c570 return bytes_to_frames(substream->runtime, chip->playDMAPos); in snd_msnd_playback_pointer()
647 return bytes_to_frames(runtime, chip->captureDMAPos); in snd_msnd_capture_pointer()
/linux-4.4.14/drivers/usb/gadget/function/
Du_uac1.c176 frames = bytes_to_frames(runtime, count); in u_audio_playback()
Df_uac2.c318 return bytes_to_frames(substream->runtime, prm->hw_ptr); in uac2_pcm_pointer()
/linux-4.4.14/sound/soc/au1x/
Ddbdma2.c282 return bytes_to_frames(substream->runtime, to_dmadata(substream)->pos); in au1xpsc_pcm_pointer()
Ddma.c277 return bytes_to_frames(ss->runtime, location); in alchemy_pcm_pointer()
/linux-4.4.14/sound/soc/nuc900/
Dnuc900-pcm.c234 return bytes_to_frames(substream->runtime, res); in nuc900_dma_pointer()
/linux-4.4.14/drivers/media/usb/go7007/
Dsnd-go7007.c77 int frames = bytes_to_frames(runtime, length); in parse_audio_stream_data()
/linux-4.4.14/sound/drivers/pcsp/
Dpcsp_lib.c285 return bytes_to_frames(substream->runtime, pos); in snd_pcsp_playback_pointer()
/linux-4.4.14/sound/pci/riptide/
Driptide.c1137 bytes_to_frames(runtime, pos), in riptide_handleirq()
1372 bytes_to_frames(runtime, rptr.retlongs[1]), in snd_riptide_pointer()
1373 bytes_to_frames(runtime, in snd_riptide_pointer()
1377 bytes_to_frames(runtime, in snd_riptide_pointer()
1381 bytes_to_frames(runtime, in snd_riptide_pointer()
1386 ret = bytes_to_frames(runtime, 0); in snd_riptide_pointer()
/linux-4.4.14/sound/soc/blackfin/
Dbf5xx-i2s-pcm.c167 frames = bytes_to_frames(substream->runtime, diff); in bf5xx_pcm_pointer()
/linux-4.4.14/sound/soc/fsl/
Dimx-pcm-fiq.c154 return bytes_to_frames(substream->runtime, iprtd->offset); in snd_imx_pcm_pointer()
Dfsl_asrc_dma.c322 return bytes_to_frames(substream->runtime, pair->pos); in fsl_asrc_dma_pcm_pointer()
Dmpc5200_dma.c278 return bytes_to_frames(substream->runtime, count); in psc_dma_pointer()
Dfsl_dma.c745 frames = bytes_to_frames(runtime, position - dma_private->dma_buf_phys); in fsl_dma_pointer()
/linux-4.4.14/sound/pci/emu10k1/
Dp16v.c564 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_playback()
587 ptr2 = bytes_to_frames(runtime, ptr1); in snd_p16v_pcm_pointer_capture()
Demu10k1x.c540 ptr2 = bytes_to_frames(runtime, ptr1); in snd_emu10k1x_pcm_pointer()
690 ptr = bytes_to_frames(runtime, snd_emu10k1x_ptr_read(emu, CAPTURE_POINTER, 0)); in snd_emu10k1x_pcm_pointer_capture()
Demupcm.c971 return bytes_to_frames(runtime, ptr); in snd_emu10k1_capture_pointer()
/linux-4.4.14/sound/pci/
Dals4000.c515 return bytes_to_frames( substream->runtime, result ); in snd_als4000_capture_pointer()
527 return bytes_to_frames( substream->runtime, result ); in snd_als4000_playback_pointer()
Dad1889.c552 return bytes_to_frames(ss->runtime, ptr); in snd_ad1889_playback_pointer()
571 return bytes_to_frames(ss->runtime, ptr); in snd_ad1889_capture_pointer()
Dfm801.c519 return bytes_to_frames(substream->runtime, ptr); in snd_fm801_playback_pointer()
536 return bytes_to_frames(substream->runtime, ptr); in snd_fm801_capture_pointer()
Dals300.c563 return bytes_to_frames(substream->runtime, current_ptr); in snd_als300_pointer()
Dsonicvibes.c766 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_playback_pointer()
776 return bytes_to_frames(substream->runtime, ptr); in snd_sonicvibes_capture_pointer()
Dens1370.c1020 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_playback1_pointer()
1037 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_playback2_pointer()
1054 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ensoniq_capture_pointer()
Dbt87x.c550 return (snd_pcm_uframes_t)bytes_to_frames(runtime, chip->current_line * chip->line_bytes); in snd_bt87x_pointer()
Dvia82xx_modem.c643 return bytes_to_frames(substream->runtime, res); in snd_via686_pcm_pointer()
Datiixp_modem.c625 return bytes_to_frames(runtime, curptr); in snd_atiixp_pcm_pointer()
Dvia82xx.c862 return bytes_to_frames(substream->runtime, res); in snd_via686_pcm_pointer()
921 return bytes_to_frames(substream->runtime, res); in snd_via8233_pcm_pointer()
Dintel8x0m.c596 return bytes_to_frames(substream->runtime, ptr); in snd_intel8x0m_pcm_pointer()
Datiixp.c676 return bytes_to_frames(runtime, curptr); in snd_atiixp_pcm_pointer()
Dazt3328.c1651 frmres = bytes_to_frames( substream->runtime, result); in snd_azf3328_pcm_pointer()
Dmaestro3.c1498 return bytes_to_frames(subs->runtime, ptr); in snd_m3_pcm_pointer()
Des1968.c1290 return bytes_to_frames(substream->runtime, ptr % es->dma_size); in snd_es1968_pcm_pointer()
Dintel8x0.c1119 return bytes_to_frames(substream->runtime, ptr); in snd_intel8x0_pcm_pointer()
Dcmipci.c962 ptr = bytes_to_frames(substream->runtime, ptr); in snd_cmipci_pcm_pointer()
/linux-4.4.14/sound/sparc/
Damd7930.c653 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_playback_pointer()
665 return bytes_to_frames(substream->runtime, ptr); in snd_amd7930_capture_pointer()
Dcs4231.c1010 return bytes_to_frames(substream->runtime, ptr); in snd_cs4231_playback_pointer()
1026 return bytes_to_frames(substream->runtime, ptr); in snd_cs4231_capture_pointer()
Ddbri.c2202 ret = bytes_to_frames(substream->runtime, info->offset) in snd_dbri_pointer()
/linux-4.4.14/sound/soc/intel/skylake/
Dskl-pcm.c784 return bytes_to_frames(substream->runtime, delay); in skl_get_delay_from_lpib()
816 return bytes_to_frames(substream->runtime, in skl_platform_pcm_pointer()
/linux-4.4.14/sound/soc/intel/haswell/
Dsst-haswell-pcm.c725 snd_pcm_uframes_t position = bytes_to_frames(runtime, in hsw_notify_pointer()
729 bytes_to_frames(runtime, runtime->dma_bytes); in hsw_notify_pointer()
799 offset = bytes_to_frames(runtime, position); in hsw_pcm_pointer()
/linux-4.4.14/sound/pci/cs5535audio/
Dcs5535audio_pcm.c348 return bytes_to_frames(substream->runtime, curdma); in snd_cs5535audio_pcm_pointer()
/linux-4.4.14/sound/soc/samsung/
Didma.c240 return bytes_to_frames(substream->runtime, res); in idma_pointer()
/linux-4.4.14/sound/soc/atmel/
Datmel-pcm-pdc.c343 x = bytes_to_frames(runtime, ptr - prtd->dma_buffer); in atmel_pcm_pointer()
/linux-4.4.14/sound/usb/caiaq/
Daudio.c329 ptr = bytes_to_frames(sub->runtime, in snd_usb_caiaq_pcm_pointer()
332 ptr = bytes_to_frames(sub->runtime, in snd_usb_caiaq_pcm_pointer()
/linux-4.4.14/sound/parisc/
Dharmony.c493 return bytes_to_frames(rt, played); in snd_harmony_playback_pointer()
522 return bytes_to_frames(rt, caught); in snd_harmony_capture_pointer()
/linux-4.4.14/sound/soc/txx9/
Dtxx9aclc.c243 return bytes_to_frames(substream->runtime, dmadata->pos); in txx9aclc_pcm_pointer()
/linux-4.4.14/sound/soc/intel/baytrail/
Dsst-baytrail-pcm.c247 return bytes_to_frames(runtime, pcm_data->hw_ptr); in sst_byt_pcm_pointer()
/linux-4.4.14/sound/drivers/
Dpcm-indirect2.c238 return bytes_to_frames(substream->runtime, rec->sw_io); in snd_pcm_indirect2_pointer()
Daloop.c393 bytes_to_frames(runtime, size) * in clear_capture_buf()
561 return bytes_to_frames(runtime, pos); in loopback_pointer()
/linux-4.4.14/sound/isa/ad1816a/
Dad1816a_lib.c303 return bytes_to_frames(substream->runtime, ptr); in snd_ad1816a_playback_pointer()
313 return bytes_to_frames(substream->runtime, ptr); in snd_ad1816a_capture_pointer()
/linux-4.4.14/drivers/media/pci/cobalt/
Dcobalt-alsa-pcm.c501 return bytes_to_frames(substream->runtime, ptr) % in snd_cobalt_pcm_pb_pointer()
/linux-4.4.14/sound/isa/gus/
Dgus_pcm.c542 pos = bytes_to_frames(runtime, pos); in snd_gf1_pcm_playback_pointer()
620 pos = bytes_to_frames(substream->runtime, (gus->c_pos + pos) % gus->c_dma_size); in snd_gf1_pcm_capture_pointer()
/linux-4.4.14/sound/isa/es1688/
Des1688_lib.c511 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_playback_pointer()
522 return bytes_to_frames(substream->runtime, ptr); in snd_es1688_capture_pointer()
/linux-4.4.14/sound/usb/hiface/
Dpcm.c511 return bytes_to_frames(alsa_sub->runtime, dma_offset); in hiface_pcm_pointer()
/linux-4.4.14/sound/pci/ice1712/
Dice1712.c687 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_pointer()
707 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_ds_pointer()
721 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_capture_pointer()
1111 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_playback_pro_pointer()
1125 ptr = bytes_to_frames(substream->runtime, ptr); in snd_ice1712_capture_pro_pointer()
Dice1724.c828 ptr = bytes_to_frames(substream->runtime, ptr); in snd_vt1724_playback_pro_pointer()
837 ptr = bytes_to_frames(substream->runtime, ptr); in snd_vt1724_playback_pro_pointer()
877 return bytes_to_frames(substream->runtime, ptr); in snd_vt1724_pcm_pointer()
881 ptr = bytes_to_frames(substream->runtime, ptr); in snd_vt1724_pcm_pointer()
/linux-4.4.14/sound/atmel/
Dac97c.c602 frames = bytes_to_frames(runtime, bytes); in atmel_ac97c_playback_pointer()
622 frames = bytes_to_frames(runtime, bytes); in atmel_ac97c_capture_pointer()
Dabdac.c278 frames = bytes_to_frames(runtime, bytes); in atmel_abdac_pointer()
/linux-4.4.14/sound/soc/qcom/
Dlpass-platform.c335 return bytes_to_frames(substream->runtime, curr_addr - base_addr); in lpass_platform_pcmops_pointer()
/linux-4.4.14/drivers/gpu/drm/bridge/
Ddw_hdmi-ahb-audio.c517 return bytes_to_frames(runtime, dw->buf_offset); in dw_hdmi_pointer()
/linux-4.4.14/sound/soc/intel/atom/sst/
Dsst_drv_interface.c530 delay_frames = bytes_to_frames(substream->runtime, delay_bytes); in sst_calc_tstamp()
/linux-4.4.14/sound/pci/au88x0/
Dau88x0_pcm.c435 return (bytes_to_frames(substream->runtime, current_ptr)); in snd_vortex_pcm_pointer()
/linux-4.4.14/sound/pci/nm256/
Dnm256.c673 return bytes_to_frames(substream->runtime, curp); in snd_nm256_playback_pointer()
687 return bytes_to_frames(substream->runtime, curp); in snd_nm256_capture_pointer()
/linux-4.4.14/sound/pci/lola/
Dlola_pcm.c572 return bytes_to_frames(substream->runtime, pos); in lola_pcm_pointer()
/linux-4.4.14/sound/mips/
Dau1x00.c419 return bytes_to_frames(runtime,location); in snd_au1000_pointer()
Dsgio2audio.c673 return bytes_to_frames(substream->runtime, in snd_sgio2audio_pcm_pointer()
/linux-4.4.14/sound/pci/ca0106/
Dca0106_main.c1071 ptr += bytes_to_frames(runtime, in snd_ca0106_pcm_pointer_playback()
1097 ptr2 = bytes_to_frames(runtime, ptr1); in snd_ca0106_pcm_pointer_capture()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c633 return bytes_to_frames(runtime, bytes); in snd_pcm_alsa_frames()
634 return bytes_to_frames(runtime, (buffer_size * bytes) / runtime->oss.buffer_bytes); in snd_pcm_alsa_frames()
1353 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_write2()
1453 frames = bytes_to_frames(runtime, bytes); in snd_pcm_oss_read2()
/linux-4.4.14/sound/ppc/
Dsnd_ps3.c706 ret = bytes_to_frames(substream->runtime, bytes * 2); in snd_ps3_pcm_pointer()
Dpmac.c340 return bytes_to_frames(subs->runtime, count); in snd_pmac_pcm_pointer()
/linux-4.4.14/sound/pci/oxygen/
Doxygen_pcm.c631 return bytes_to_frames(runtime, curr_addr - (u32)runtime->dma_addr); in oxygen_pointer()
/linux-4.4.14/sound/usb/
Dpcm.c828 bytes_to_frames(runtime, subs->data_endpoint->maxpacksize); in snd_usb_pcm_prepare()
830 bytes_to_frames(runtime, subs->data_endpoint->curpacksize); in snd_usb_pcm_prepare()
/linux-4.4.14/sound/arm/
Daaci.c566 return bytes_to_frames(runtime, bytes); in aaci_pcm_pointer()
/linux-4.4.14/sound/drivers/vx/
Dvx_pcm.c1090 return bytes_to_frames(runtime, pipe->hw_ptr); in vx_pcm_capture_pointer()
/linux-4.4.14/sound/spi/
Dat73c213.c315 pos = bytes_to_frames(runtime, bytes); in snd_at73c213_pcm_pointer()
/linux-4.4.14/drivers/media/pci/saa7134/
Dsaa7134-alsa.c617 return bytes_to_frames(runtime, dev->dmasound.read_offset); in snd_card_saa7134_capture_pointer()
/linux-4.4.14/sound/isa/wss/
Dwss_lib.c1162 return bytes_to_frames(substream->runtime, ptr); in snd_wss_playback_pointer()
1173 return bytes_to_frames(substream->runtime, ptr); in snd_wss_capture_pointer()
/linux-4.4.14/sound/soc/mediatek/
Dmtk-afe-pcm.c179 return bytes_to_frames(substream->runtime, memif->hw_ptr); in mtk_afe_pcm_pointer()
/linux-4.4.14/sound/soc/sh/rcar/
Dcore.c949 return bytes_to_frames(runtime, io->byte_pos); in rsnd_pointer()
/linux-4.4.14/sound/pci/hda/
Dhda_controller.c336 return bytes_to_frames(substream->runtime, in azx_pcm_pointer()
Dhda_intel.c591 return bytes_to_frames(substream->runtime, delay); in azx_get_delay_from_lpib()
/linux-4.4.14/sound/pci/asihpi/
Dasihpi.c1001 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_playback_pointer()
1166 return bytes_to_frames(runtime, dpcm->pcm_buf_dma_ofs % dpcm->buffer_bytes); in snd_card_asihpi_capture_pointer()
/linux-4.4.14/sound/pci/echoaudio/
Dechoaudio.c817 pos = bytes_to_frames(substream->runtime, pipe->position); in pcm_pointer()