Lines Matching refs:ctl_fd
81 static int ctl_fd; /* audio control file descriptor */
275 ctl_fd = open(actl, O_RDWR);
276 if (ctl_fd < 0) {
280 return(ctl_fd);
327 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
329 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
364 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info);
367 close(ctl_fd);
409 rval = ioctl(ctl_fd, agc, &l);
411 rval = ioctl(ctl_fd
429 rval = ioctl(ctl_fd, audiomonitor, &l );
431 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_VOLUME,
447 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_RECSRC, &l);
455 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &l) == -1)
465 ioctl(ctl_fd, AUDIO_GETINFO, (char *)&info);
473 rval = ioctl(ctl_fd, AUDIO_SETINFO, (char *)&info);
496 printf("audio_show: ctl_fd %d\n", ctl_fd);
497 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
502 ioctl(ctl_fd, AUDIO_GETDEV, &device);
506 ioctl(ctl_fd, AUDIO_GETINFO, (char *)&info);