Searched refs:afd (Results 1 – 1 of 1) sorted by relevance
/system/extras/sound/ |
D | playwav.c | 46 int afd; in pcm_play() local 48 afd = open("/dev/msm_pcm_out", O_RDWR); in pcm_play() 49 if (afd < 0) { in pcm_play() 54 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { in pcm_play() 61 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { in pcm_play() 75 if (write(afd, buf, sz) != sz) in pcm_play() 80 ioctl(afd, AUDIO_START, 0); in pcm_play() 84 if (ioctl(afd, AUDIO_GET_STATS, &stats) == 0) in pcm_play() 89 if (write(afd, buf, sz) != sz) in pcm_play() 94 close(afd); in pcm_play() [all …]
|