Lines Matching refs:mproxyPlaybackHandle
238 err = closeDevice(mproxyPlaybackHandle); in exitPlaybackThread()
240 ALOGE("Info: Could not close proxy %p", mproxyPlaybackHandle); in exitPlaybackThread()
660 } else if (handle == mproxyPlaybackHandle) { in startDevice()
818 mproxyPlaybackHandle = configureDevice(PCM_IN|PCM_STEREO|PCM_MMAP, (char *)"hw:0,8", in PlaybackThreadEntry()
820 if (!mproxyPlaybackHandle) { in PlaybackThreadEntry()
828 proxyPeriod = mproxyPlaybackHandle->period_size; in PlaybackThreadEntry()
832 pfdProxyPlayback[0].fd = mproxyPlaybackHandle->fd; in PlaybackThreadEntry()
839 frames = (mproxyPlaybackHandle->flags & PCM_MONO) ? (proxyPeriod / 2) : (proxyPeriod / 4); in PlaybackThreadEntry()
840 x.frames = (mproxyPlaybackHandle->flags & PCM_MONO) ? (proxyPeriod / 2) : (proxyPeriod / 4); in PlaybackThreadEntry()
851 if (!mproxyPlaybackHandle->running) { in PlaybackThreadEntry()
852 if (pcm_prepare(mproxyPlaybackHandle)) { in PlaybackThreadEntry()
867 if (!mkillPlayBackThread && (!mproxyPlaybackHandle->start)) { in PlaybackThreadEntry()
868 err = startDevice(mproxyPlaybackHandle, &mkillPlayBackThread); in PlaybackThreadEntry()
878 if (!mproxyPlaybackHandle->running) { in PlaybackThreadEntry()
879 if (pcm_prepare(mproxyPlaybackHandle)) { in PlaybackThreadEntry()
886 mproxyPlaybackHandle->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | in PlaybackThreadEntry()
890 err = syncPtr(mproxyPlaybackHandle, &mkillPlayBackThread); in PlaybackThreadEntry()
896 avail = pcm_avail(mproxyPlaybackHandle); in PlaybackThreadEntry()
898 if (avail < mproxyPlaybackHandle->sw_p->avail_min && !mkillPlayBackThread) { in PlaybackThreadEntry()
918 msrcProxy_addr = dst_address(mproxyPlaybackHandle); in PlaybackThreadEntry()
922 mproxyPlaybackHandle->sync_ptr->c.control.appl_ptr += frames; in PlaybackThreadEntry()
923 mproxyPlaybackHandle->sync_ptr->flags = 0; in PlaybackThreadEntry()
928 err = syncPtr(mproxyPlaybackHandle, &mkillPlayBackThread); in PlaybackThreadEntry()
1043 closeDevice(mproxyPlaybackHandle); in PlaybackThreadEntry()