Lines Matching refs:SNDCTL_DSP_CHANNELS
58 /* Verify SNDCTL_DSP_CHANNELS sets the device to mono. */
61 if (ioctl(fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
62 atf_tc_fail("ioctl SNDCTL_DSP_CHANNELS (1) failed");
69 /* Verify SNDCTL_DSP_CHANNELS sets the device to stereo. */
72 if (ioctl(fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
73 atf_tc_fail("ioctl SNDCTL_DSP_CHANNELS (2) failed");
81 * Verify an invalid argument to SNDCTL_DSP_CHANNELS leaves the device
86 if (ioctl(fd, SNDCTL_DSP_CHANNELS, &channels) < 0)
87 atf_tc_fail("ioctl SNDCTL_DSP_CHANNELS (0) failed");
95 * SNDCTL_DSP_STEREO is an older alternative to SNDCTL_DSP_CHANNELS