Lines Matching refs:appl_ptr
397 ALOGV("hw_ptr = %d buf_size = %d appl_ptr = %d\n",
400 sync_ptr->c.control.appl_ptr);
403 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr;
408 long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ? pcm->buffer_size/2 : pcm->buffer_size/4);
459 unsigned int appl_ptr = 0;
461 appl_ptr = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.appl_ptr*4;
462 pcm_offset = (appl_ptr % (unsigned long)pcm->buffer_size);
497 unsigned int tmp = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.appl_ptr*4;
539 pcm->sync_ptr->c.control.appl_ptr += frames;
550 bytes_written = pcm->sync_ptr->c.control.appl_ptr - pcm->sync_ptr->s.status.hw_ptr;