Home
last modified time | relevance | path

Searched refs:timer_fd (Results 1 – 6 of 6) sorted by relevance

/hardware/qcom/audio/legacy/libalsa-intf/
Dalsa_pcm.c664 pcm->timer_fd = open("/dev/snd/timer", O_RDWR | O_NONBLOCK); in enable_timer()
665 if (pcm->timer_fd < 0) { in enable_timer()
673 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_TREAD, &arg) < 0) { in enable_timer()
693 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_SELECT, &sel) < 0) { in enable_timer()
695 close(pcm->timer_fd); in enable_timer()
704 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_PARAMS, &timer_param)< 0) { in enable_timer()
707 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_START) < 0) { in enable_timer()
708 close(pcm->timer_fd); in enable_timer()
717 if (ioctl(pcm->timer_fd, SNDRV_TIMER_IOCTL_STOP) < 0) in disable_timer()
719 return close(pcm->timer_fd); in disable_timer()
Dalsa_audio.h26 int timer_fd; member
Daplay.c278 pfd[0].fd = pcm->timer_fd; in play_file()
/hardware/invensense/60xx/libsensors/
DMPLSensor.cpp199 timer_fd = open("/dev/timerirq", O_RDWR); in MPLSensor()
200 if (timer_fd == -1) { in MPLSensor()
203 fcntl(timer_fd, F_SETFL, O_NONBLOCK); in MPLSensor()
205 mIrqFds.add(TIMERIRQ_FD, timer_fd); in MPLSensor()
206 mPollFds[TIMERIRQ_FD].fd = timer_fd; in MPLSensor()
212 if ((accel_fd == -1) && (timer_fd != -1)) { in MPLSensor()
1045 return timer_fd; in getTimerFd()
DMPLSensor.h116 int timer_fd; variable
/hardware/qcom/audio/legacy/alsa_sound/
DAudioUsbALSA.cpp811 pfdUsbPlayback[0].fd = musbPlaybackHandle->timer_fd; in PlaybackThreadEntry()