NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/40551



The following reply was made to PR kern/40551; it has been noted by GNATS.

From: Kooda <kooda%upyum.com@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/40551
Date: Sun, 29 Dec 2013 21:29:35 +0100

 I stumbled upon this panic today while trying the mpv multimedia player.
 I later discovered that it was caused by the SDL audio output driver,
 inside the OBSD_OpenAudio function of the bsdaudio driver of the SDL
 audio subsystem.
 
 I tried to find the relevant part of that function that caused the panic
 and I wrote a tine program that does.
 
 The panic only appears on my laptop, which has this audio device:
 
 auich0 at pci0 dev 31 function 5: i82801DB/DBM (ICH4/ICH4M) AC-97 Audio
 auich0: interrupting at ioapic0 pin 17
 auich0: ac97: Analog Devices AD1981B codec; headphone, 20 bit DAC, no 3D stereo
 auich0: ac97: ext id 0x601<AC97_22,AMAP,VRA>
 auich0: measured ac97 link rate at 47998 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, playback, capture, mmap, independent
 
 
 The panic is caused by the ioctl:
 
 #include <fcntl.h>
 #include <stdio.h>
 #include <sys/ioctl.h>
 #include <sys/audioio.h>
 
 int
 main() {
        int audio_fd;
        audio_info_t info;
 
        AUDIO_INITINFO(&info);
 
        audio_fd = open("/dev/audio0", O_WRONLY | O_NONBLOCK);
 
        if (audio_fd < 0)
                return 1;
 
        AUDIO_INITINFO(&info);
        info.play.sample_rate = 44100;
        info.blocksize = 4;
        info.hiwat = 5;
        info.lowat = 3;
        if(ioctl(audio_fd, AUDIO_SETINFO, &info) < 0)
                return 2;
 
        return 0;
 }
 
 -- 
 Envoyé depuis ma GameBoy.
  
 PGP key: D674 0670 BF8E 6A82 43C0 F317 AEC9 29D0 E8D7 F7B7
 


Home | Main Index | Thread Index | Old Index