The AC97 driver seems buggy

A forum for AmigaOne XE and MicroA1-C specific issues.
Post Reply
Deniil
Posts: 108
Joined: Mon Jul 11, 2011 6:59 pm

The AC97 driver seems buggy

Post by Deniil »

This is probably not very high on anyone's priority list but I'd still like to make a note of it.

I have been trying for a week to determine what is wrong with my AHI recording code when in fact it is the AC97 driver that is buggy, it seems.

I was trying to record at 44100Hz stereo using the device.
AHI settings for my unit was set to 44100Hz HiFi Stereo++.
Result: The audio I got was pitch bent. It was obvious that I was getting 48000Hz data from AHI although I had told it I wanted 44100.
I change the AHI settings to 48000Hz HiFi Stereo++ but still reading 44100Hz from the device.
Result: The pitch was correct but there seemed to be gaps in the data.
The gaps seemed to have a size corresponding of upsampling 44100 to 48000, but the conversion was the other way around so there simply seems to be a conversion calculation bug in the driver or something.

Now using the CMI8738 driver instead in 44100, 44100 mode.
The problem using the CMI is that it has automatic analog loopback from Line In to Line Out which is undesirable because I want the sound to go through my program only. Sadly there seem to be no way around this which is why I wanted to use the AC97 for recording and CMI for playback :-(
Deniil
Posts: 108
Joined: Mon Jul 11, 2011 6:59 pm

Re: The AC97 driver seems buggy

Post by Deniil »

I forgot to mention that the ahi.device task tends to crash sometimes when starting up a CMD_READ on the AC97 as well. It is ignorable so I can stop the recorder and quit though.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1445
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: The AC97 driver seems buggy

Post by tonyw »

Have you tried bypassing the AC97 driver and using something else, eg Emu10KX on an SB Live! ?
cheers
tony
Deniil
Posts: 108
Joined: Mon Jul 11, 2011 6:59 pm

Re: The AC97 driver seems buggy

Post by Deniil »

Yes, as I said, when I use the CMI8738 driver all works fine.
Post Reply