Jump to content

ATI AC 97 Sounds (SB400) effort


Andras Kenez
 Share

696 posts in this topic

Recommended Posts

hey dope something is up with your latest build, when i load this driver manually it isn't shown but i am gonna do an install to see if that is my issue. nope here is a log of it loading

Jun 24 22:29:37 chris-campbells-computer kernel[0]: START PROVIDER OK

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec::start(0x30bc900, 0x333d800)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97CodecDevice::handleOpen (0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioATIIXP::handleOpen (0x333d800)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::resetHardware

Jun 24 22:29:37 chris-campbells-computer kernel[0]: 3 probe

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (0) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (1) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (2) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (3) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] PCM out DACs = 6

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::probeAuxiliaryOutSupport function is 2

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (1) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (2) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (3) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::probeAnalogOutputSupport analog output support mask 00000037

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::probeAnalogSourceSupport analog source support mask 00000134

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] 6 bit master volume

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioConfig[0x2d47bc0] Valid slots 0 = 00000018

Jun 24 22:29:37 chris-campbells-computer kernel[0]: prepareAudioConfigurationK

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec::prepareAudioConfiguration zztype=1,dir=1

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::prepareAudioConfigurationPCMOut(0x2d47bc0)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(0, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(0, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec::activateAudioConfiguration zz

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec::activateAudioConfiguration zztype=1,dir=1

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec::activateAudioConfiguration OUTzztype=1,dir=1

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (0) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(0, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (1) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(1, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (2) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(2, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] converter (3) support: Yes

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setConverterSampleRate(3, 48000) success, real rate = 48000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setAnalogOutputMute(0, 3, 1) offset 0x2 volume 0xa020

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setAnalogOutputMute(2, 3, 1) offset 0x38 volume 0x8080

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setAnalogOutputMute(4, 3, 1) offset 0x36 volume 0x8080

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]::setAnalogOutputMute(5, 3, 1) offset 0x36 volume 0x8080

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0]: measured 48K: 47975, pos (4020-13616), time 50005160

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] measured 48K sample rate = 47975

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] Slot Mapping Descriptor = 0000 0000

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97CodecDevice::handleClose (0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioATIIXP::handleClose (0x333d800)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: 1 probe[0x3232100]::initHardware(0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver::initHardware(0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] handle open from 0x3232100

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97CodecDevice::handleOpen (0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioATIIXP::handleOpen (0x333d800)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver::createAudioEngines

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver::createAudioPorts

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver::engageAudioEngines

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEnginePCMOut::initHardware(0x3232100)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: PCM-OUT InitOK

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEnginePCMOut: no PCM Out configuration

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEnginePCMOut: initAudioConfigurations failed

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver: activateAudioEngine PCMOut error

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioDriver: engageAudioEngines() error

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97AudioCodec[iD 0] handle close from 0x3232100

Jun 24 22:29:37 chris-campbells-computer kernel[0]: IOAC97CodecDevice::handleClose (0x30bc900)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioATIIXP::handleClose (0x333d800)

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEnginePCMOut::free 0x333cf00

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEnginePCMIn::free 0x333ce00

Jun 24 22:29:37 chris-campbells-computer kernel[0]: AppleAC97AudioEngineSPDIF::free 0x333cc00

Link to comment
Share on other sites

Dude, I have always had to have it loaded at boot in order to get it to work. I dunno. Although I am encouraged that it loaded the SPDIF engine. :shock:

 

And if that is a log of the driver loading at boot time (your post was slightly confusing :D), then it's not something my code is printing in the debug logs. It says that the init of PCM out is just fine, but activating the PCM out engine fails. All of my fail cases have debug statements, so... *frowns*

Link to comment
Share on other sites

Well, I'm just plain beat for now, so I'm going to call it a night. I'll keep looking at it and hoping something will smack me in the face, though.

yeah by the looks of things you deserve it man. i'll revert to the old driver for now

Link to comment
Share on other sites

So I have figured out that in IOAC97AudioCodec.cpp is where the output selection for System Preferences -> Sound is done.

 

 

I have been able to change From Line out to Internal Speaker (but that didn't work.)

 

I'm gonna attempt to figure out how to make it a list (i'll be trolling the apple documentation) so you can pick which output to use. I also notice the output has the port AC97 Audio (PCM) but there is no port for the input.

 

I'll experiment with all the different types of output choices until I find one that produces some sort of sound.

 

If I get it working, i'll post the code I changed. Right now, I'm not even messing with the ATIIXP specific code but the general framework code.

Link to comment
Share on other sites

Aaaaaahhhhhh, Dope, you rock! (as does everyone else who has been working so hard on this project like Ed, ect) After I installed 10.4.6 last night I installed the earlier driver and it worked well but with the glitches mentioned. This new release is beautiful. Everything in sync, not noticing any latency issues or anything like that, my front audio out even works! Awesome!

Link to comment
Share on other sites

After i rebooted i lost sound, now i don't have it working anymore, how do i remove it and

restore it again, i think i have to keep kextloading and not make it start at boot for some reason that doesn't work.

Link to comment
Share on other sites

Check your card ID ! and edit Plist !

 

 

 

4341 IXP150 (dowlondable driver contains this one)

 

4370 SB400 (IXP 200) works for me

 

437b SB450

 

4382 SB600

 

 

 

Watch your ID on Windows XP

 

Than edit plist

 

cd /System/Library/Extensions/AppleAC97Audio.kext/Contents/PlugIns/AppleAC97AudioATIIXP.kext/Contents

 

sudo pico Info.plist

 

<dict>

<key>ATI AC97 Audio</key>

<dict>

<key>CFBundleIdentifier</key>

<string>com.apple.driver.AppleAC97AudioATIIXP</string>

<key>IOClass</key>

<string>AppleAC97AudioATIIXP</string>

<key>IOPCIPrimaryMatch</key>

<string>0x43411002</string>

<key>IOProbeScore</key>

<string>200</string>

<key>IOProviderClass</key>

<string>IOPCIDevice</string>

</dict>

</dict>

 

For SB400 (x200) IOPCIPrimaryMatch equal 0x43701002

ctrl O

ctrl X

 

cd ../../

chown -R root:wheel /System/Library/Extensions

kextload AppleAC97AudioATIIXP.kext

 

rm /System/Library/Extensions.kextcache

kextcache -k /System/Library/Extensions

 

 

Driver contains all ID ( I' m not sure that all works...)

 

http://rapidshare.de/files/24089485/AppleA...l.ATI.sitx.html

 

(Driver not illegal compiled from opensource darwin project) Please do nor remove

Link to comment
Share on other sites

If i play music or sound for more than 10 minutes or so straight, the whole system locks up... Its really weird. I have noticed that my mute comes on if i am not listening to music or there is no sound occurring for more than a few seconds. But when i keep the sound going and I do not let it mute for more then 5 to 10 minutes or more the whole sytem locks up. Has this been fixed in a new version? I am using th eversion from page 14 of this post.

Link to comment
Share on other sites

Hmm, I think I've used every version posted in this thread. This is all I get:

 

AppleAC97AudioATIIXP::attachCodecDevices: Cannot create codec device 0
AppleAC97AudioATIIXP::attachCodecDevices: Cannot create codec device 1
AppleAC97AudioATIIXP::createCodecDevice: Creating Codec 2 device
AppleAC97AudioATIIXP::codecRead: Codec 2 read timed out
IOAC97CodecDevice: VendorID read error
AppleAC97AudioATIIXP::attachCodecDevices: Cannot create codec device 2
AppleAC97AudioATIIXP::start: No codecs attached
AppleAC97AudioVIA::start(0x33d7180)
START PROVIDER OK
Sanity check fail
provider configure fail
AppleAC97AudioVIA::free

 

My board is a DFI Infinity RS482 (Xpress 200 Chipset)

 

Sound is through ALC850 which goes through the SB (SB400). DevID is 4370 according to Windows.

 

Help?

Link to comment
Share on other sites

If i play music or sound for more than 10 minutes or so straight, the whole system locks up... Its really weird. I have noticed that my mute comes on if i am not listening to music or there is no sound occurring for more than a few seconds. But when i keep the sound going and I do not let it mute for more then 5 to 10 minutes or more the whole sytem locks up. Has this been fixed in a new version? I am using th eversion from page 14 of this post.

The "mute coming on" is a feature. It's the power-saving mode coming on. I don't know that there's anything we can do about it, aside from disabling power saving entirely.

Link to comment
Share on other sites

I have the Same problem as EdFlyer, shows as Line Out, no audio though from any port on my laptop.

 

EDIT:

 

I actually notice a little pop sound from the internal speakers as I click on the sound icon in system preferences, but nothing else. I've tried EVERY kext posted here as well, all the same results.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...