Re: Sound ioctl mmap/trigger broken in 2.1.80?

Michael Elizabeth Chastain (mec@shout.net)
Wed, 21 Jan 1998 02:02:27 -0600


Hi Craig,

> if (ioctl(audio_fd, SNDCTL_DSP_GETCAPS, &apar) == -1) {
> perror("ioctl: SNDCTL_DSP_GETCAPS");
> return -1;
> }
> if (!(apar & DSP_CAP_TRIGGER) || !(apar & DSP_CAP_MMAP)) {
> fprintf(stderr, "Sound driver does not support mmap and/or
trigger\n");
> return -1;
> }

I believe SNDCTL_DSP_GETCAPS got busted in 2.1.80. I believe the fix
is to add one line: in file drivers/sound/audio.c, function audio_ioctl,
case SNDCTL_DSP_GETCAPS, just before the "break", add this line:

"val = info;"

(I already reported this to Alan Cox and Thomas Sailer earlier this
evening.)

Regards,

Michael Chastain
<mailto:mec@shout.net>
"love without fear"