Lines Matching refs:flags

400      if (pcm->flags & DEBUG_ON) {  in pcm_avail()
406 if (pcm->flags & PCM_IN) { in pcm_avail()
412 …long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ?… in pcm_avail()
440 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_buffer()
443 if (pcm->flags & DEBUG_ON) in mmap_buffer()
465 …appl_ptr = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.appl_ptr… in dst_address()
478 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_transfer()
500 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_transfer_capture()
501 …unsigned int tmp = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.… in mmap_transfer_capture()
532 frames = (pcm->flags & PCM_MONO) ? (count / 2) : (count / 4); in pcm_write_mmap()
534 pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN; in pcm_write_mmap()
544 pcm->sync_ptr->flags = 0; in pcm_write_mmap()
579 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); in pcm_write_nmmap()
581 if (pcm->flags & PCM_IN) in pcm_write_nmmap()
601 if (pcm->flags & DEBUG_ON) in pcm_write_nmmap()
609 if (pcm->flags & PCM_MMAP) in pcm_write()
619 if (!(pcm->flags & PCM_IN)) in pcm_read()
623 if (pcm->flags & PCM_MONO) { in pcm_read()
625 } else if (pcm->flags & PCM_QUAD) { in pcm_read()
627 } else if (pcm->flags & PCM_5POINT1) { in pcm_read()
681 if (pcm->flags & PCM_IN) in enable_timer()
686 if (pcm->flags & DEBUG_ON) { in enable_timer()
700 timer_param.flags |= SNDRV_TIMER_PSFLG_AUTO; in enable_timer()
727 if (pcm->flags & PCM_MMAP) { in pcm_close()
756 struct pcm *pcm_open(unsigned flags, char *device) in pcm_open() argument
767 if (flags & DEBUG_ON) { in pcm_open()
768 ALOGV("pcm_open(0x%08x)",flags); in pcm_open()
783 if (flags & PCM_IN) { in pcm_open()
812 if (pcm->flags & DEBUG_ON) in pcm_open()
820 pcm->flags = flags; in pcm_open()
839 if (pcm->flags & PCM_MMAP) in pcm_open()
842 if (pcm->flags & DEBUG_ON) in pcm_open()
847 if (pcm->flags & DEBUG_ON) in pcm_open()