On Tue, 23 May 2006 at 13:56 +0200, mickey wrote: > On Tue, May 23, 2006 at 01:44:52PM +0200, Tim Kornau wrote: > > Hello misc@ > > > > I have a Problem with my specific ad1981b "Intel 82801DB AC97" > > Soundcard in my Sony Vaio Tr2/B. Sometimes xmms does start to play > > but there is no sound sometimes it does not even start. > > > > I did build a GENERIC Kernel with AUDIO_DEBUG enabled and tried > > poking around with the settings of mixerctl and audioctl with no > > effects. On Linux with the ALSA Drivers the Soundcard works out of > > the Box and i want to debug the Card to get it to work under OpenBSD > > as well. Therefor my question is is there something i can do to see > > where the differences between the state of the card in linux and > > openbsd is. I thought of reading the registers and diffing the > > values and if there are registers set in linux that are not set in > > openbsd and so on. To have the Bugreport kind of complete i will > > attach the information of the dmesg and mixer / audioctl settings > > maybe i have overlooked something obvious. > > you should check if there are any interrupts coming from the device > while playing. for debugging purposes i might suggest you use some > of them mere mortals' music palyers like mpg123 or madplay... > or even better cat(1).
Now using the suggested tools (mpg321) and looking at the generated interrupts i have the following Informations. Before starting mpg321 $ uname -a OpenBSD slipstream 3.9 GENERIC#1 i386 $ vmstat -i interrupt total rate irq9/uhci1 9 0 irq9/ath0 120693 13 irq14/pciide0 5223 0 irq1/pckbc0 351 0 irq12/pckbc0 3 0 irq0/clock 950186 103 irq8/rtc 1216258 132 Total 2292723 250 $ dmesg | grep auich auich0 at pci0 dev 31 function 5 "Intel 82801DB AC97" rev 0x03: irq 9, ICH4 AC97 audio0 at auich0 After starting mpg321 $ vmstat -i interrupt total rate irq9/uhci1 9 0 irq9/ath0 149119 13 irq14/pciide0 48484 4 irq9/auich0 1054 0 irq1/pckbc0 351 0 irq12/pckbc0 3 0 irq0/clock 1122260 103 irq8/rtc 1436517 132 Total 2757797 255 and the relevant snippets from mpg321 $ mpg321 OPTI/song39.mp3 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3. Version 0.59q (2002/03/23). Written and copyrights by Joe Drew. Uses code from various people. See 'README' for more! THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK! Directory: OPTI/ Playing MPEG stream from song39.mp3 ... MPEG 1.0 layer III, 256 kbit/s, 44100 Hz stereo q^C [0:52] Decoding of song39.mp3 finished. and the output generated from the kernel with option AUDIO_DEBUG auich0: measured ac97 link rate at 50165 Hz set_rate(7654) 7654 set_rate(7654) 7654 set_rate(7654) 7654 set_rate(7654) 7654 set_rate(42196) 42196 i hope that this information leeds to some informations for me how to further debug the issue. Tim [demime 1.01d removed an attachment of type application/pgp-signature]