Searched refs:cap_pcm (Results 1 – 2 of 2) sorted by relevance
29 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; in sound_loopback_thread() local60 if(!cap_pcm) { in sound_loopback_thread()64 aos_pcm_hw_params_alloca(&cap_pcm->hw_params); in sound_loopback_thread()66 aos_pcm_sw_params_any(cap_pcm->sw_params); in sound_loopback_thread()68 aos_pcm_prepare(cap_pcm); in sound_loopback_thread()69 aos_pcm_start(cap_pcm); in sound_loopback_thread()74 ret = aos_pcm_readi(cap_pcm, dataBuf, aos_pcm_bytes_to_frames(cap_pcm, buf_size)); in sound_loopback_thread()87 if(cap_pcm) { in sound_loopback_thread()88 aos_pcm_stop(cap_pcm); in sound_loopback_thread()89 aos_pcm_close(cap_pcm); in sound_loopback_thread()[all …]
16 aos_pcm_t *pb_pcm = NULL, *cap_pcm = NULL; variable90 aos_pcm_sw_params_any(cap_pcm->sw_params); in uvoice_pcm_open()92 aos_pcm_prepare(cap_pcm); in uvoice_pcm_open()93 aos_pcm_start(cap_pcm); in uvoice_pcm_open()104 if (pcm->dir == PCM_IN && cap_pcm) { in uvoice_pcm_read()105 ret = aos_pcm_readi(cap_pcm, buffer, aos_pcm_bytes_to_frames(cap_pcm, nbytes)); in uvoice_pcm_read()106 ret = aos_pcm_frames_to_bytes(cap_pcm, ret); in uvoice_pcm_read()144 if (cap_pcm && (pcm->dir == PCM_IN)) { in uvoice_pcm_close()145 aos_pcm_stop(cap_pcm); in uvoice_pcm_close()146 aos_pcm_close(cap_pcm); in uvoice_pcm_close()[all …]
Completed in 4 milliseconds