lkml.org 
[lkml]   [1998]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Sound ioctl mmap/trigger broken in 2.1.80?
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"

\
 
 \ /
  Last update: 2005-03-22 13:41    [W:0.027 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site