Jump to content

Welcome to the SigmaTel 9200 Driver Initiative!


james2mart
 Share

359 posts in this topic

Recommended Posts

This kext is built to give information to you for you to post back here. That's all that it does. This kext is designed for the SigmaTel 9200, but should work for anyone with an ICH7 chip, device id=27d88086.

 

This kext reports the device ID of any HDA codec of any brand as long as it meets the specifications of the Intel HDA Standard.

 

Even If you do not have a SigmaTel 9200, you can use this program to read your HDA Codec device ID.

 

If you DO have a 9200, This kext will report correct values for pin widgets inside your audio codec.

 

To load this kext, RESTART YOUR COMPUTER with all AppleAzalia and AppleHDA kexts disabled. this is the only way to get the information stored in your codec's verb table by bios. Then open up terminal and browse to the folder where the kext is. use

#sudo -s 
password: <---- type your password when sudo asks for it
#chown -R root:wheel SigmaTelAudioDriver.kext && chmod -R 755 SigmaTelAudioDriver.kext

to set the permissions. then, open up another terminal (COMMAND+N) and type:

#tail -f /var/log/system.log

go back to the first terminal and type:

#kextload SigmaTelAudioDriver.kext

you will see the other terminal window scroll. Find the indicated information and post it here for driver development. If you have problems with this sequence post here. Others may assist you, but I dont have the time to help newcomers load kexts (sorry). Please report any SuperClass Changed kextloading errors. This was built on 10.4.7 so if you are running anything prior to 10.4.6 this may not run.

 

Later.

 

SigmaTelAudioDriverV2.kext.zip

SigmaTelAudioDriverV3.kext.zip

Edited by james2mart
Link to comment
Share on other sites

DAMN I have been fiddling around with installing mac os x the whole day (trying to dualboot) and now I finally have it installed, I can't use the key '#' & I think I'm doing this wrong.. I don't have an idea about how to boot with these things you told disabled.. can someone be more specific?

 

thanks

Link to comment
Share on other sites

the # simply shows that you are supposed to enter the commands at a terminal, you dont actually press the # key.

 

To disable the two kexts, go to /System/Library/Extensions and rename the two files that I told you from ****.kext to *****.kext.disabled. this disables them but does not delete them.

Link to comment
Share on other sites

okay thanks.. I just moved the two kexts to USB stick and deleted them because I was unable to rename them (clicking on the filename and than typing just lets os x select another file with the letter of the pressed key)

 

so rebooted.. than used the terminal, but I don't know these unix commands on how to browse to the file dir of Sigmatelaudiodriver.kext (I placed it on my install disk where the folders: applications, library, system and users are located..)

 

help? I'm almost there giving you the outputs :graduated:

 

btw, isn't the '&&' in that first line a typo?

Link to comment
Share on other sites

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::initHardware(0x2e2b300)

Jul 11 09:40:58 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 11 09:40:58 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 11 09:41:00 rodolfos-computer kernel[0]: Your codec is not a matching codec.

Jul 11 09:41:00 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::free()

 

 

Using Dell Inspiron 9400

Mac OSX 10.4.7

Link to comment
Share on other sites

okay thanks.. I just moved the two kexts to USB stick and deleted them because I was unable to rename them (clicking on the filename and than typing just lets os x select another file with the letter of the pressed key)

try right click-> rename

 

so rebooted.. than used the terminal, but I don't know these unix commands on how to browse to the file dir...

"cd" means change directory. if you put the kext on the desktop, simply open the terminal, sudo -s, and then type "cd Desktop" then proceed with the instructions.

 

btw, isn't the '&&' in that first line a typo?

no.

 

 

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::initHardware(0x2e2b300)

Jul 11 09:40:58 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 11 09:40:58 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 11 09:41:00 rodolfos-computer kernel[0]: Your codec is not a matching codec.

Jul 11 09:41:00 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::free()

Using Dell Inspiron 9400

Mac OSX 10.4.7

 

 

Sorry rodolfo, should work now for device ID 0x83847690. I had a typo in the code. New kext is attached to Post #1.

Link to comment
Share on other sites

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::initHardware(0x2e2b300)

Jul 11 09:40:58 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 11 09:40:58 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 11 09:41:00 rodolfos-computer kernel[0]: Your codec is not a matching codec.

Jul 11 09:41:00 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::free()

 

Okay thanks, I got some useless information out of this.. I can't find ANY word matching rodolfo's output...

Hm almost downloaded the 10.4.7 update.. I will try again if I have my 10.4.6 updated..

 

btw, I don't see the option 'rename' when rightclicking on a file.. Bleh, lots of things are faulty in my installation.. also the Core Image and Quartz Extreme are not supported according the system preferences, while I have an Intel GMA 900..

Link to comment
Share on other sites

Okay thanks, I got some useless information out of this.. I can't find ANY word matching rodolfo's output...

Hm almost downloaded the 10.4.7 update.. I will try again if I have my 10.4.6 updated..

 

btw, I don't see the option 'rename' when rightclicking on a file.. Bleh, lots of things are faulty in my installation.. also the Core Image and Quartz Extreme are not supported according the system preferences, while I have an Intel GMA 900..

 

please try the new kext i added an hour ago.

Link to comment
Share on other sites

Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::initHardware(0x21a0200)

Jul 11 11:10:55 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 11 11:10:55 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 11 11:10:55 rodolfos-computer kernel[0]: Your codec is not a matching codec.

Jul 11 11:10:55 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::free()

 

 

using the v2 kext you posted

Link to comment
Share on other sites

Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::initHardware(0x21a0200)

Jul 11 11:10:55 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 11 11:10:55 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 11 11:10:55 rodolfos-computer kernel[0]: Your codec is not a matching codec.

Jul 11 11:10:55 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::free()

using the v2 kext you posted

 

hrm. give v3 a shot. it should give me a little help debugging that for you. be SURE to DELETE the previous version! also try putting it in a different directory.

Link to comment
Share on other sites

Im pretty sure i deleted old kext

 

kext v1 info:

Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::initHardware(0x2e2b300)
Jul 11 09:40:58 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-
Jul 11 09:40:58 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690
Jul 11 09:41:00 rodolfos-computer kernel[0]: Your codec is not a matching codec.
Jul 11 09:41:00 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-
Jul 11 09:40:58 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x3524300]::free()

 

kext v2 info

Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::initHardware(0x21a0200)
Jul 11 11:10:55 rodolfos-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-
Jul 11 11:10:55 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690
Jul 11 11:10:55 rodolfos-computer kernel[0]: Your codec is not a matching codec.
Jul 11 11:10:55 rodolfos-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-
Jul 11 11:10:55 rodolfos-computer kernel[0]: SigmaTelAudioDevice[0x261d100]::free()

 

initHardware code is not the same between 2 logs

Also I restarted between the 2 versions

Link to comment
Share on other sites

I HAVE A QUESTION!

 

I WANT TO MAKE AN AUDIO DRIVER TOO

 

YES IM STUPPIED BUT I THINK I CAN! SORRY CAPS ON

 

how do u started, my audio is a ac97 adi ad1888

 

=) thx if u can help

 

1. Read "Writing Audio Drivers" on apple's site.

2. Get specs on your card, especially device registers.

3. track down BSD or Linux(ALSA) drivers for your card.

4. Port it.

5. dogbert's CMI driver found on 3rd party drivers section in wiki is helpful for ac97 pci cards.

 

That's all i can do for you.

Link to comment
Share on other sites

Im pretty sure i deleted old kext

 

kext v1 info:.....

kext v2 info...

initHardware code is not the same between 2 logs

Also I restarted between the 2 versions

 

initHardware address is virtual, therefore different every time. Where did you try V3???

Link to comment
Share on other sites

Using kext v3

 

Jul 11 16:28:37 rodolfos-computer kernel[0]: deviceID/VendorID: 0x83847690
Jul 11 16:28:37 rodolfos-computer kernel[0]: Your codec MATCHES and the
Jul 11 16:28:37 rodolfos-computer kernel[0]: following values are
Jul 11 16:28:37 rodolfos-computer kernel[0]: CORRECT and SET BY BIOS.
Jul 11 16:28:37 rodolfos-computer kernel[0]: SPDIF in: 0x40f000f0
Jul 11 16:28:37 rodolfos-computer kernel[0]: SPDIF out: 0x40f000f1
Jul 11 16:28:35 rodolfos-computer kernel[0]: port A: 0x0421101f
Jul 11 16:28:35 rodolfos-computer kernel[0]: port D: 0x90170310
Jul 11 16:28:35 rodolfos-computer kernel[0]: port C: 0x40f000f2
Jul 11 16:28:35 rodolfos-computer kernel[0]: port B: 0x04a11020
Jul 11 16:28:35 rodolfos-computer kernel[0]: MONO OUT: 0x40f000f3
Jul 11 16:28:35 rodolfos-computer kernel[0]: CDPIN IN: 0x40f000f4

Link to comment
Share on other sites

Kext V3 on a Dell Inspiron 6400:

 

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: SigmaTelAudioDevice[0x3a7fa00]::initHardware(0x2dc8600)

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: Your codec MATCHES and the

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: following values are

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: CORRECT and SET BY BIOS.

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: SPDIF in: 0x40f000f0

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: SPDIF out: 0x40f000f1

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: port A: 0x0421101f

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: port D: 0x90170310

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: port C: 0x40f000f2

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: port B: 0x04a11020

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: MONO OUT: 0x40f000f3

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: CDPIN IN: 0x40f000f4

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 12 09:55:49 shiroi-for-teh-wins-computer kernel[0]: SigmaTelAudioDevice[0x3a7fa00]::free()

Link to comment
Share on other sites

Ok well now that my code got deleted, I've since restarted, but using the Linux ALSA code as reference instead. This code makes alot more sense. Come to find out, the BSD driver did not work with the ICH7 chip anyway, but the Linux one does. So far in my COMPLETE rewrite, I've managed to CORRECTLY allocate memory for the Buffer Descriptor Lists, Position Buffer, and Stream Buffer(s). I have also allocated DMA memory for the CORB/RIRB buffers. These are ring buffers used for sending commands to the codec without using immediate response (IR) implementation. IR is only to be used when DMA is not readily availiable. So far, the stream buffer, position buffer, and BDLs are not actually running, but the RIRB/CORB ring buffers are running and successfully sending and receiving commands from the codec. This is a HUGE step in the right direction, and you all should see some results soon.

Link to comment
Share on other sites

here are the logs on a dell inspirion 640m

 

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: -vvvvvv-SUBMIT INFORMATION STARTING HERE-vvvvvv-

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: deviceID/VendorID: 0x83847690

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: Your codec MATCHES and the

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: following values are

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: CORRECT and SET BY BIOS.

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: SPDIF in: 0x40f000f0

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: SPDIF out: 0x40f000f1

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: port A: 0x0321101f

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: port D: 0x90170310

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: port C: 0x40f000f2

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: port B: 0x03a11020

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: MONO OUT: 0x40f000f3

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: CDPIN IN: 0x40f000f4

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: -^^^^^^-SUBMIT INFORMATION CONTAINED HERE-^^^^^^-

Jul 13 15:18:45 lagnajeet-pradhans-computer kernel[0]: SigmaTelAudioDevice[0x3362000]::free()

Link to comment
Share on other sites

Excuse my ignorance, but are you saying that you can get much better sound quality from this card once a driver has been developed? Right now the quality ain't that bad, but if a driver will improve it, you have my support. Thanks a lot for your hard work!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...