• Home
  • Raw
  • Download

Lines Matching refs:flags

396      if (pcm->flags & DEBUG_ON) {  in pcm_avail()
402 if (pcm->flags & PCM_IN) { in pcm_avail()
408 …long avail = sync_ptr->s.status.hw_ptr - sync_ptr->c.control.appl_ptr + ((pcm->flags & PCM_MONO) ?… in pcm_avail()
436 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_buffer()
439 if (pcm->flags & DEBUG_ON) in mmap_buffer()
461 …appl_ptr = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.appl_ptr… in dst_address()
474 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_transfer()
496 int channels = (pcm->flags & PCM_MONO) ? 1 : 2; in mmap_transfer_capture()
497 …unsigned int tmp = (pcm->flags & PCM_MONO) ? sync_ptr->c.control.appl_ptr*2 : sync_ptr->c.control.… in mmap_transfer_capture()
528 frames = (pcm->flags & PCM_MONO) ? (count / 2) : (count / 4); in pcm_write_mmap()
530 pcm->sync_ptr->flags = SNDRV_PCM_SYNC_PTR_APPL | SNDRV_PCM_SYNC_PTR_AVAIL_MIN; in pcm_write_mmap()
540 pcm->sync_ptr->flags = 0; in pcm_write_mmap()
575 int channels = (pcm->flags & PCM_MONO) ? 1 : ((pcm->flags & PCM_5POINT1)? 6 : 2 ); in pcm_write_nmmap()
577 if (pcm->flags & PCM_IN) in pcm_write_nmmap()
597 if (pcm->flags & DEBUG_ON) in pcm_write_nmmap()
605 if (pcm->flags & PCM_MMAP) in pcm_write()
615 if (!(pcm->flags & PCM_IN)) in pcm_read()
619 if (pcm->flags & PCM_MONO) { in pcm_read()
621 } else if (pcm->flags & PCM_QUAD) { in pcm_read()
623 } else if (pcm->flags & PCM_5POINT1) { in pcm_read()
677 if (pcm->flags & PCM_IN) in enable_timer()
682 if (pcm->flags & DEBUG_ON) { in enable_timer()
696 timer_param.flags |= SNDRV_TIMER_PSFLG_AUTO; in enable_timer()
723 if (pcm->flags & PCM_MMAP) { in pcm_close()
752 struct pcm *pcm_open(unsigned flags, char *device) in pcm_open() argument
763 if (flags & DEBUG_ON) { in pcm_open()
764 ALOGV("pcm_open(0x%08x)",flags); in pcm_open()
779 if (flags & PCM_IN) { in pcm_open()
808 if (pcm->flags & DEBUG_ON) in pcm_open()
816 pcm->flags = flags; in pcm_open()
835 if (pcm->flags & PCM_MMAP) in pcm_open()
838 if (pcm->flags & DEBUG_ON) in pcm_open()
843 if (pcm->flags & DEBUG_ON) in pcm_open()