Lines Matching refs:audio_fd
43 int audio_fd;
48 audio_fd = avpriv_open(audio_device, O_WRONLY);
50 audio_fd = avpriv_open(audio_device, O_RDONLY);
51 if (audio_fd < 0) {
62 if (fcntl(audio_fd, F_SETFL, O_NONBLOCK) < 0) {
79 err = ioctl(audio_fd, SNDCTL_DSP_GETFMTS, &tmp);
113 close(audio_fd);
116 err=ioctl(audio_fd, SNDCTL_DSP_SETFMT, &tmp);
120 err = ioctl(audio_fd, SNDCTL_DSP_STEREO, &tmp);
124 err = ioctl(audio_fd, SNDCTL_DSP_SPEED, &tmp);
127 s->fd = audio_fd;
131 close(audio_fd);