Searched refs:afd (Results 1 – 2 of 2) sorted by relevance
/system/extras/sound/ |
D | playwav.c | 48 int afd; in pcm_play() local 50 afd = open("/dev/msm_pcm_out", O_RDWR); in pcm_play() 51 if (afd < 0) { in pcm_play() 56 if(ioctl(afd, AUDIO_GET_CONFIG, &config)) { in pcm_play() 63 if (ioctl(afd, AUDIO_SET_CONFIG, &config)) { in pcm_play() 77 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play() 82 ioctl(afd, AUDIO_START, 0); in pcm_play() 86 if (ioctl(afd, AUDIO_GET_STATS, &stats) == 0) in pcm_play() 91 if (write(afd, buf, sz) != (ssize_t) sz) in pcm_play() 95 close(afd); in pcm_play() [all …]
|
/system/netd/resolv/ |
D | getaddrinfo.cpp | 71 const struct afd { struct 135 static struct addrinfo* get_ai(const struct addrinfo*, const struct afd*, const char*); 138 static const struct afd* find_afd(int); 177 #define GET_AI(ai, afd, addr) \ argument 180 (ai) = get_ai(pai, (afd), (addr)); \ 478 const struct afd* afd; in explore_null() local 508 afd = find_afd(pai->ai_family); in explore_null() 509 if (afd == NULL) return 0; in explore_null() 512 GET_AI(cur->ai_next, afd, afd->a_addrany); in explore_null() 515 GET_AI(cur->ai_next, afd, afd->a_loopback); in explore_null() [all …]
|