Lines Matching refs:mproxyRecordingHandle
261 err = closeDevice(mproxyRecordingHandle); in exitRecordingThread()
263 ALOGE("Info: Could not close proxy for recording %p", mproxyRecordingHandle); in exitRecordingThread()
419 mproxyRecordingHandle = configureDevice(PCM_OUT|channelFlag|PCM_MMAP, (char *)"hw:0,7", in RecordingThreadEntry()
421 if (!mproxyRecordingHandle) { in RecordingThreadEntry()
430 pfdProxyRecording[0].fd = mproxyRecordingHandle->fd; in RecordingThreadEntry()
444 if (!mproxyRecordingHandle->running) { in RecordingThreadEntry()
445 if (pcm_prepare(mproxyRecordingHandle)) { in RecordingThreadEntry()
501 if (!mproxyRecordingHandle->running) { in RecordingThreadEntry()
502 if (pcm_prepare(mproxyRecordingHandle)) { in RecordingThreadEntry()
508 mproxyRecordingHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | in RecordingThreadEntry()
511 err = syncPtr(mproxyRecordingHandle, &mkillRecordingThread); in RecordingThreadEntry()
517 avail = pcm_avail(mproxyRecordingHandle); in RecordingThreadEntry()
518 if (avail < mproxyRecordingHandle->sw_p->avail_min) { in RecordingThreadEntry()
529 dstProxy_addr = dst_address(mproxyRecordingHandle); in RecordingThreadEntry()
549 mproxyRecordingHandle->sync_ptr->c.control.appl_ptr += frames; in RecordingThreadEntry()
550 mproxyRecordingHandle->sync_ptr->flags = 0; in RecordingThreadEntry()
552 err = syncPtr(mproxyRecordingHandle, &mkillRecordingThread); in RecordingThreadEntry()
559 …bytes_written = mproxyRecordingHandle->sync_ptr->c.control.appl_ptr - mproxyRecordingHandle->sync_… in RecordingThreadEntry()
560 …if ((bytes_written >= mproxyRecordingHandle->sw_p->start_threshold) && (!mproxyRecordingHandle->st… in RecordingThreadEntry()
562 err = startDevice(mproxyRecordingHandle, &mkillRecordingThread); in RecordingThreadEntry()
574 closeDevice(mproxyRecordingHandle); in RecordingThreadEntry()
656 } else if (handle == mproxyRecordingHandle) { in startDevice()