Lines Matching refs:u32SampleRate
1274 ….u32SampleRate = {8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 9600…
1299 ….u32SampleRate = {8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 9600…
1324 .u32SampleRate = {8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000},
1349 ….u32SampleRate = {8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 9600…
1374 ….u32SampleRate = {8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 64000, 88200, 9600…
1399 .u32SampleRate = {48000},
1424 .u32SampleRate = {48000},
1449 .u32SampleRate = {48000},
8454 switch(pPcmInfo->u32SampleRate) { in HAL_AUDIO_PCM_HwDma_Reader1_Apply_Setting()
8522 pPcmInfo->u32SampleRate = 48000; in HAL_AUDIO_PCM_HwDma_Reader1_Apply_Setting()
8538 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_HwDma_Reader1_Apply_Setting()
8542 …te %u\n", __FUNCTION__, u32TargetBufferSize, pPcmInfo->u32BufferDuration, pPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader1_Apply_Setting()
8544 …pPcmInfo->u32BufferDuration = (u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32TargetC… in HAL_AUDIO_PCM_HwDma_Reader1_Apply_Setting()
8652 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8654 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8662 …u32TargetBufferSize = (pUserPcmInfo->u32BufferDuration * pUserPcmInfo->u32SampleRate * u32TargetCh… in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8666 …, __FUNCTION__, u32TargetBufferSize, pUserPcmInfo->u32BufferDuration, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8668 …fo->u32BufferDuration = (u32TargetBufferSize * 1000) / (pUserPcmInfo->u32SampleRate * u32TargetCha… in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8684 HAL_AUDIO_PCM_HwDma_Reader1_Set(AUDIO_PCM_CMD_SAMPLERATE, &pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader1_Open()
8904 MS_U32 u32SampleRate = *((MS_U32 *)pData); in HAL_AUDIO_PCM_HwDma_Reader1_Set() local
8906 …aram_Valid(u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_HwDma_Reader1_Set()
8908 … HALAUDIO_ERROR("%s: Error! invalid u32SampleRate(%u)!\n", __FUNCTION__, u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader1_Set()
8912 if (pPcmInfo->u32SampleRate != u32SampleRate) in HAL_AUDIO_PCM_HwDma_Reader1_Set()
8914 pPcmInfo->u32SampleRate = u32SampleRate; in HAL_AUDIO_PCM_HwDma_Reader1_Set()
9126 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_HwDma_Reader1_Get()
9321 switch(pPcmInfo->u32SampleRate) { in HAL_AUDIO_PCM_HwDma_Reader2_Apply_Setting()
9389 pPcmInfo->u32SampleRate = 48000; in HAL_AUDIO_PCM_HwDma_Reader2_Apply_Setting()
9406 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_HwDma_Reader2_Apply_Setting()
9410 …argetBufferSize, (unsigned int)pPcmInfo->u32BufferDuration, (unsigned int)pPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader2_Apply_Setting()
9412 …pPcmInfo->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32Target… in HAL_AUDIO_PCM_HwDma_Reader2_Apply_Setting()
9523 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9525 …: Error! Not support sample rate(%u)!\n", __FUNCTION__, (unsigned int)pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9533 …u32TargetBufferSize = (pUserPcmInfo->u32BufferDuration * pUserPcmInfo->u32SampleRate * u32TargetCh… in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9537 …ferSize, (unsigned int)pUserPcmInfo->u32BufferDuration, (unsigned int)pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9539 …o->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pUserPcmInfo->u32SampleRate * u32TargetCha… in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9556 HAL_AUDIO_PCM_HwDma_Reader2_Set(AUDIO_PCM_CMD_SAMPLERATE, &pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader2_Open()
9771 MS_U32 u32SampleRate = *((MS_U32 *)pData); in HAL_AUDIO_PCM_HwDma_Reader2_Set() local
9773 …aram_Valid(u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_HwDma_Reader2_Set()
9775 …LAUDIO_ERROR("%s: Error! invalid u32SampleRate(%u)!\n", __FUNCTION__, (unsigned int)u32SampleRate); in HAL_AUDIO_PCM_HwDma_Reader2_Set()
9779 if (pPcmInfo->u32SampleRate != u32SampleRate) in HAL_AUDIO_PCM_HwDma_Reader2_Set()
9781 pPcmInfo->u32SampleRate = u32SampleRate; in HAL_AUDIO_PCM_HwDma_Reader2_Set()
9993 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_HwDma_Reader2_Get()
10207 switch(pPcmInfo->u32SampleRate) { in HAL_AUDIO_PCM_SwDma_Reader1_Apply_Setting()
10282 pPcmInfo->u32SampleRate = 48000; in HAL_AUDIO_PCM_SwDma_Reader1_Apply_Setting()
10298 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_SwDma_Reader1_Apply_Setting()
10302 …te %u\n", __FUNCTION__, u32TargetBufferSize, pPcmInfo->u32BufferDuration, pPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_SwDma_Reader1_Apply_Setting()
10304 …pPcmInfo->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32Target… in HAL_AUDIO_PCM_SwDma_Reader1_Apply_Setting()
10403 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10405 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10413 …u32TargetBufferSize = (pUserPcmInfo->u32BufferDuration * pUserPcmInfo->u32SampleRate * u32TargetCh… in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10417 …, __FUNCTION__, u32TargetBufferSize, pUserPcmInfo->u32BufferDuration, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10419 …o->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pUserPcmInfo->u32SampleRate * u32TargetCha… in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10435 HAL_AUDIO_PCM_SwDma_Reader1_Set(AUDIO_PCM_CMD_SAMPLERATE, &pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_SwDma_Reader1_Open()
10651 MS_U32 u32SampleRate = *((MS_U32 *)pData); in HAL_AUDIO_PCM_SwDma_Reader1_Set() local
10653 …aram_Valid(u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_SwDma_Reader1_Set()
10655 … HALAUDIO_ERROR("%s: Error! invalid u32SampleRate(%u)!\n", __FUNCTION__, u32SampleRate); in HAL_AUDIO_PCM_SwDma_Reader1_Set()
10659 if (pPcmInfo->u32SampleRate != u32SampleRate) in HAL_AUDIO_PCM_SwDma_Reader1_Set()
10661 pPcmInfo->u32SampleRate = u32SampleRate; in HAL_AUDIO_PCM_SwDma_Reader1_Set()
10873 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_SwDma_Reader1_Get()
10930 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_SwDma_Reader1_Get()
11066 switch(pPcmInfo->u32SampleRate) { in HAL_AUDIO_PCM_R2Dma_Reader1_Apply_Setting()
11141 pPcmInfo->u32SampleRate = 48000; in HAL_AUDIO_PCM_R2Dma_Reader1_Apply_Setting()
11170 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_R2Dma_Reader1_Apply_Setting()
11174 …NCTION__, u32TargetBufferSize, pPcmInfo->u32BufferDuration, pPcmInfo->u32SampleRate, u32TargetChan… in HAL_AUDIO_PCM_R2Dma_Reader1_Apply_Setting()
11176 …pPcmInfo->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32Target… in HAL_AUDIO_PCM_R2Dma_Reader1_Apply_Setting()
11315 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11317 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11335 …u32TargetBufferSize = (pUserPcmInfo->u32BufferDuration * pUserPcmInfo->u32SampleRate * u32TargetCh… in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11339 …, u32TargetBufferSize, pUserPcmInfo->u32BufferDuration, pUserPcmInfo->u32SampleRate, u32TargetChan… in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11341 …o->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pUserPcmInfo->u32SampleRate * u32TargetCha… in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11357 HAL_AUDIO_PCM_R2Dma_Reader1_Set(AUDIO_PCM_CMD_SAMPLERATE, &pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader1_Open()
11597 MS_U32 u32SampleRate = *((MS_U32 *)pData); in HAL_AUDIO_PCM_R2Dma_Reader1_Set() local
11599 …aram_Valid(u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_R2Dma_Reader1_Set()
11601 … HALAUDIO_ERROR("%s: Error! invalid u32SampleRate(%u)!\n", __FUNCTION__, u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader1_Set()
11605 if (pPcmInfo->u32SampleRate != u32SampleRate) in HAL_AUDIO_PCM_R2Dma_Reader1_Set()
11607 pPcmInfo->u32SampleRate = u32SampleRate; in HAL_AUDIO_PCM_R2Dma_Reader1_Set()
11819 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_R2Dma_Reader1_Get()
12047 switch(pPcmInfo->u32SampleRate) { in HAL_AUDIO_PCM_R2Dma_Reader2_Apply_Setting()
12122 pPcmInfo->u32SampleRate = 48000; in HAL_AUDIO_PCM_R2Dma_Reader2_Apply_Setting()
12151 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_R2Dma_Reader2_Apply_Setting()
12155 …NCTION__, u32TargetBufferSize, pPcmInfo->u32BufferDuration, pPcmInfo->u32SampleRate, u32TargetChan… in HAL_AUDIO_PCM_R2Dma_Reader2_Apply_Setting()
12157 …pPcmInfo->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32Target… in HAL_AUDIO_PCM_R2Dma_Reader2_Apply_Setting()
12296 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12298 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12316 …u32TargetBufferSize = (pUserPcmInfo->u32BufferDuration * pUserPcmInfo->u32SampleRate * u32TargetCh… in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12320 …, u32TargetBufferSize, pUserPcmInfo->u32BufferDuration, pUserPcmInfo->u32SampleRate, u32TargetChan… in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12322 …o->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pUserPcmInfo->u32SampleRate * u32TargetCha… in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12338 HAL_AUDIO_PCM_R2Dma_Reader2_Set(AUDIO_PCM_CMD_SAMPLERATE, &pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader2_Open()
12578 MS_U32 u32SampleRate = *((MS_U32 *)pData); in HAL_AUDIO_PCM_R2Dma_Reader2_Set() local
12580 …aram_Valid(u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_R2Dma_Reader2_Set()
12582 … HALAUDIO_ERROR("%s: Error! invalid u32SampleRate(%u)!\n", __FUNCTION__, u32SampleRate); in HAL_AUDIO_PCM_R2Dma_Reader2_Set()
12586 if (pPcmInfo->u32SampleRate != u32SampleRate) in HAL_AUDIO_PCM_R2Dma_Reader2_Set()
12588 pPcmInfo->u32SampleRate = u32SampleRate; in HAL_AUDIO_PCM_R2Dma_Reader2_Set()
12800 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_R2Dma_Reader2_Get()
13116 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_Capture1_Open()
13118 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_Capture1_Open()
13132 … = ((PCM_CAPTURE1_BUF_SIZE * 1000) / (pUserPcmInfo->u32Channel * 2)) / pUserPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture1_Open()
13134 pPcmInfo->u32SampleRate = pUserPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture1_Open()
13178 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture1_Start()
13525 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture1_Get()
13571 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture1_Get()
13643 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture1_Read()
13815 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_Capture2_Open()
13817 …UDIO_ERROR("%s: Error! Not support sample rate(%u)!\n", __FUNCTION__, pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_Capture2_Open()
13831 … = ((PCM_CAPTURE2_BUF_SIZE * 1000) / (pUserPcmInfo->u32Channel * 2)) / pUserPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture2_Open()
13833 pPcmInfo->u32SampleRate = pUserPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture2_Open()
13877 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture2_Start()
14224 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_Capture2_Get()
14270 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture2_Get()
14342 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_Capture2_Read()
14492 …erPcmInfo->u32SampleRate, (MS_U32 *)&pPCM->tPcmCaps.u32SampleRate, (sizeof(pPCM->tPcmCaps.u32Sampl… in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14494 …: Error! Not support sample rate(%u)!\n", __FUNCTION__, (unsigned int)pUserPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14509 …n = ((HW_DMA_WTR1_BUF_SIZE * 1000) / (pUserPcmInfo->u32Channel * 2)) / pUserPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14511 pPcmInfo->u32SampleRate = pUserPcmInfo->u32SampleRate;; in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14535 …u32TargetBufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * u32TargetChannel * … in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14539 …argetBufferSize, (unsigned int)pPcmInfo->u32BufferDuration, (unsigned int)pPcmInfo->u32SampleRate); in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14541 …pPcmInfo->u32BufferDuration = ((u32TargetBufferSize * 1000) / (pPcmInfo->u32SampleRate * u32Target… in HAL_AUDIO_PCM_HwDma_Writer1_Open()
14948 *((MS_U32 *)pData) = pPcmInfo->u32SampleRate; in HAL_AUDIO_PCM_HwDma_Writer1_Get()
15079 …u32BufferSize = (pPcmInfo->u32BufferDuration * pPcmInfo->u32SampleRate * pPcmInfo->u32Channel * 2)… in HAL_AUDIO_PCM_HwDma_Writer1_Read()