Lines Matching refs:ctl_fd
67 static int ctl_fd; /* audio control file descriptor */
261 ctl_fd = open(actl, O_RDWR);
262 if (ctl_fd < 0) {
266 return(ctl_fd);
313 if (ioctl(ctl_fd, SOUND_MIXER_READ_DEVMASK, &devmask) == -1)
315 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECMASK, &recmask) == -1)
350 rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
353 close(ctl_fd);
395 rval = ioctl(ctl_fd, agc, &l);
397 rval = ioctl(ctl_fd
415 rval = ioctl(ctl_fd, audiomonitor, &l );
417 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_VOLUME,
433 rval = ioctl(ctl_fd, SOUND_MIXER_WRITE_RECSRC, &l);
441 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &l) == -1)
451 ioctl(ctl_fd, (int)AUDIO_GETINFO, (char *)&info);
459 rval = ioctl(ctl_fd, (int)AUDIO_SETINFO, (char *)&info);
482 printf("audio_show: ctl_fd %d\n", ctl_fd);
483 if (ioctl(ctl_fd, SOUND_MIXER_READ_RECSRC, &recsrc) == -1)
488 ioctl(ctl_fd, (int)AUDIO_GETDEV, &device);
492 ioctl(ctl_fd, (int)AUDIO_GETINFO, (char *)&info);