Jump to content

Welcome to the SigmaTel 9200 Driver Initiative!


  • This topic is locked This topic is locked
358 replies to this topic

#41
xandiztxu

xandiztxu

    The anti-cancer

  • Members
  • PipPipPipPip
  • 228 posts
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

#42
james2mart

james2mart

    InsanelyMac Sage

  • Retired Developers
  • 344 posts

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.

#43
james2mart

james2mart

    InsanelyMac Sage

  • Retired Developers
  • 344 posts

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???

#44
rodolfo

rodolfo

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
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


#45
Arcanis

Arcanis

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts
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()



#46
james2mart

james2mart

    InsanelyMac Sage

  • Retired Developers
  • 344 posts
Ok cool. Verbtables are the same for the Dell Inspiron 6400 and 9400. Any other laptop/desktop people out there with sigmatel 9200 or 9220s?

#47
james2mart

james2mart

    InsanelyMac Sage

  • Retired Developers
  • 344 posts
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.

#48
galapogos01

galapogos01

    InsanelyMac Protégé

  • Members
  • Pip
  • 7 posts
top work :)

#49
jib

jib

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 1 posts
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()



#50
martin1976

martin1976

    Think Loco!

  • Members
  • PipPipPipPipPip
  • 304 posts
  • Gender:Male
  • Location:Chicago, IL
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!

#51
drib

drib

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts
No, at this moment, there is no working driver for the Sigmatel 9200 for OSX86. Do not confuse it with the Sigmatel 9220 etc

#52
martin1976

martin1976

    Think Loco!

  • Members
  • PipPipPipPipPip
  • 304 posts
  • Gender:Male
  • Location:Chicago, IL

No, at this moment, there is no working driver for the Sigmatel 9200 for OSX86. Do not confuse it with the Sigmatel 9220 etc


So, this is not for the soundcard on the Intel GNTLKR?

#53
dmk

dmk

    InsanelyMac Protégé

  • Members
  • PipPip
  • 88 posts
I assume this is the sound type used in the widely-loved Dell E1505 laptops, etc?

And if that is the case, I must say...THANK YOU SO MUCH for your efforts in attempting to write this. People like me who can't code worth a darn truly do appreciate your efforts and work, and I'm 110% behind you -- Look forward to seeing results, but understand it takes time, trial and error. Best of luck and again thank you!

#54
drib

drib

    InsanelyMac Protégé

  • Members
  • Pip
  • 19 posts

So, this is not for the soundcard on the Intel GNTLKR?


Well, I guess right now it is only for the Sigmatel 9200 (E1505, 1705/9400 ...). It might be used on the other Sigmatels (92X0, the Intel GNTLKR uses the 9220), but I thought their architecture is quiet different from the Sigmatel 9200.
Anyway, I think the best man for this answer is james2mart himself...

#55
james2mart

james2mart

    InsanelyMac Sage

  • Retired Developers
  • 344 posts
All HDA Codecs function in the same way. It is very feasible to write a driver that reads all of the required information from the codec. Unfortunately, it is EXTREMELY difficult. Take a look at the ALSA hda implementation for universal coding. It's about 10 files and close to 10000 lines of code. If you hardcode in the node IDs and types, then you dont have need for all the recursive functions that ALSA uses to determine codec capabilities.

As of now, the hardcoded node IDs are for the Sigmatel 9200, and 9200D, and SOME 9220s that have the device ID of 0x83847690. Basically this driver will MATCH with any HDA codec ON AN ICH7 BUS. It will only work with device IDs 7691 and 7690. If I get it to work.

#56
martin1976

martin1976

    Think Loco!

  • Members
  • PipPipPipPipPip
  • 304 posts
  • Gender:Male
  • Location:Chicago, IL

... It will only work with device IDs 7691 and 7690. If I get it to work.

How do I know what my device ID # is? (For the soundcard on the Intel GNTLKR)

#57
Neonkoala

Neonkoala

    Neon Prowess

  • Members
  • PipPipPipPipPipPip
  • 411 posts
In windows go to Start > Run and in the dialog box type "dxdiag" without the quotes. Click on the sound tab and look at Device ID and you can extract the numbers from that.

#58
sccarlso

sccarlso

    InsanelyMac Protégé

  • Members
  • Pip
  • 11 posts
All I can say is if you can get the sound working on my Dell E1505 you will be a god to many many people. It's the only thing that doesn't work on my E1505, everything else works almost out of the box, including QE video, max resolution on the wide screen, wireless (dell card, not intel pro), bluetooth (dell card) and it's FAST! Even though it's a solo 1.6Ghz, it's still faster at most simple tasks than my dual core 3Gig XP machine.

Good luck!

#59
kaboofa

kaboofa

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 4 posts
I will gladly buy you a pint and give you an e-mail at angrycoder.org for your valliant efforts of code hackery!! :blink:
That is, if you are accepting donations :(


[edit: I speel werds gud]

#60
Arcanis

Arcanis

    InsanelyMac Protégé

  • Members
  • PipPip
  • 79 posts

All I can say is if you can get the sound working on my Dell E1505 you will be a god to many many people. It's the only thing that doesn't work on my E1505, everything else works almost out of the box, including QE video, max resolution on the wide screen, wireless (dell card, not intel pro), bluetooth (dell card) and it's FAST! Even though it's a solo 1.6Ghz, it's still faster at most simple tasks than my dual core 3Gig XP machine.

Good luck!


Yeah, and even sleep works. I just have a little annoyance (besides using only one core and not having sound or wireless) and is that the key right of the left shift button (the "<" & ">" one) just doesn't work =(





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy