Home
last modified time | relevance | path

Searched refs:captureBufInfo (Results 1 – 7 of 7) sorted by relevance

/drivers/hdf_core/framework/model/audio/common/src/
Daudio_platform_base.c140 platformData->captureBufInfo.chnId = 0; in AudioSetPcmInfo()
225 data->captureBufInfo.periodSize = param->period * data->capturePcmInfo.bitWidth * in AudioSetCaptureBufInfo()
227 data->captureBufInfo.periodCount = PERIOD_COUNT; in AudioSetCaptureBufInfo()
234 data->captureBufInfo.trafBufSize = param->silenceThreshold; in AudioSetCaptureBufInfo()
235 …data->captureBufInfo.cirBufSize = data->captureBufInfo.periodSize * data->captureBufInfo.periodCou… in AudioSetCaptureBufInfo()
236 if (data->captureBufInfo.cirBufSize > data->captureBufInfo.cirBufMax) { in AudioSetCaptureBufInfo()
237 AUDIO_DRIVER_LOG_ERR("cirBufSize is invalid %d.", data->captureBufInfo.cirBufSize); in AudioSetCaptureBufInfo()
276 rptr = data->captureBufInfo.rptrOffSet; in AudioDmaBuffStatus()
278 data->captureBufInfo.pointer = pointer; in AudioDmaBuffStatus()
282 if (dataAvailable < data->captureBufInfo.trafBufSize) { in AudioDmaBuffStatus()
[all …]
Daudio_dma_base.c143 if (data->captureBufInfo.wbufOffSet == data->captureBufInfo.rbufOffSet) { in AudioDmaTransferStatusIsNormal()
144 data->captureBufInfo.trafCompCount++; in AudioDmaTransferStatusIsNormal()
145 if (data->captureBufInfo.trafCompCount > DMA_TRANSFER_MAX_COUNT) { in AudioDmaTransferStatusIsNormal()
150 data->captureBufInfo.wbufOffSet = data->captureBufInfo.rbufOffSet; in AudioDmaTransferStatusIsNormal()
151 data->captureBufInfo.trafCompCount = 0; in AudioDmaTransferStatusIsNormal()
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_dma_ops.c169 if (data->captureBufInfo.virtAddr == NULL) { in AudioUsbDmaBufAlloc()
170 preallocBufSize = data->captureBufInfo.cirBufMax; in AudioUsbDmaBufAlloc()
171 data->captureBufInfo.virtAddr = __vmalloc(preallocBufSize, GFP_KERNEL | __GFP_HIGHMEM); in AudioUsbDmaBufAlloc()
202 vfree(data->captureBufInfo.virtAddr); in AudioUsbDmaBufFree()
619 audioUsbDriver->captureBufInfo = data->captureBufInfo; in AudioUsbDmaConfigChannel()
620 …audioUsbDriver->captureBufInfo.periodSize = data->captureBufInfo.periodSize / data->capturePcmInfo… in AudioUsbDmaConfigChannel()
621 …audioUsbDriver->captureBufInfo.cirBufSize = data->captureBufInfo.cirBufSize / data->capturePcmInfo… in AudioUsbDmaConfigChannel()
733 bufInfo = data->captureBufInfo; in AudioUsbConfigureEndpoint()
1069 if (audioUsbDriver->captureHwptr >= audioUsbDriver->captureBufInfo.cirBufSize * frameSize) in AudioUsbRetireCaptureUrb()
1070 audioUsbDriver->captureHwptr -= audioUsbDriver->captureBufInfo.cirBufSize * frameSize; in AudioUsbRetireCaptureUrb()
[all …]
Daudio_usb_dma_adapter.c88 OsalMutexInit(&platformUsbData->captureBufInfo.buffMutex); in AudioUsbDmaDriverInit()
121 OsalMutexDestroy(&platformUsbData->captureBufInfo.buffMutex); in AudioUsbDmaDriverRelease()
/drivers/hdf_core/framework/include/audio/
Daudio_platform_if.h45 struct CircleBufInfo captureBufInfo; /**< Capture pcm stream transfer */ member
/drivers/hdf_core/framework/model/audio/usb/include/
Daudio_usb_linux.h132 struct CircleBufInfo captureBufInfo; /**< Capture pcm stream transfer */ member
/drivers/hdf_core/framework/model/audio/dispatch/src/
Daudio_stream_dispatch.c1021 if (!HdfSbufWriteUint64(reply, platformData->captureBufInfo.framesPosition)) { in StreamHostMmapPositionRead()