Jump to content

STAC9225 (Sony SZ, FE and more)


21 posts in this topic

Recommended Posts

Yes, another Sigmatel thread!

 

This time, I'd like people with a Sigmatel 9225 (Device: 7661, Vendor: 8384) to say what success they've had, and hopefully we can get something working.

 

I had a myzar 10.4.5, and my card came up as "Intel High-Definition Audio Device" under System Profiler from a clean install, but since I installed JaS' 10.4.6, I've been unable to repeat that. I believe the myzar dvd image used 10.4.3 kexts (not sure though). With JaS's image, AppleHDA.kext seems not to load, and I've tried replacing it with a stock 10.4.5 one, but no go.

 

The STAC9225 is (unlike most Intel HDAudio cards here like the 9220 and 9223), AC97 based. So, by using the right HDA bus kexts, and the AC97 kext, we should be able to get it working.

 

When I had the myzar, I forced the AC97 kext to load, and I got an ouput device registered, but no actual output. Now I want to build on that and try get it working.

 

So if someone could email/PM me the kexts, and post their ideas and/or progress, it would be a real help.

 

karl

Link to comment
Share on other sites

well, I've been trying all night, and I've come to the conclusion that, since we don't use Azalia (the generic driver will load but not work, because we're AC97), the only thing we can do is write a driver - basically mod the AppleAC97.kext to use the HDA bus. Luckily for us, the HDA kexts have no source code (they're intel only, so why would apple...?), and I'm prepared to bet no documentation at all.

Link to comment
Share on other sites

well I hope you can come up with something - I've had a look at it, but I won't pretend to be too experienced with OSX drivers. I didn't see anything too obvious in the source.

 

I know that it uses an object-orientated driver system, so I tried to modify the Info.plist to derive itself off a HDA codec device, but it didn't work. It seems the HDA codec device is an animal that we'd need docs for. We don't have any, so it's looking quite hopeless...

Link to comment
Share on other sites

You might want to try looking in the AppleAC97Audio.kext. The extension contains a plugin package for Azalia, which if you modify THAT, then It may end up recognizing your AC97 Card with HDA audio.

 

I found in Extensions

 

AppleAC97Audio.kext/Contents/Plugins/AppleAzaliaAudio.kext

 

Inside, I found in "Contents/Plugins" folder two folders:

 

-AppleAzaliaController.kext

-IOHDAudioFamily.kext

 

But, what do I need to modify?

Link to comment
Share on other sites

experiment. I have no clue. Check Info.plist files for IOPCIMatch fields. Find your vendor (8384) and device id using msinfo32 in windows if you can. replace any fields that reference 0x00000000 numbers. it would be something like 0x76918384. thats what mine is. you can also hexedit all of the executables and look for "8483" hex values and replace the 4 values BEFORE it with the reverse of your device id, like my device id is 7691, i would put 9176. getting OSX and OSX drivers working on PC platforms is new to all of us, so we all have to take part in our own experimentation to get things working. For example, I've ended up starting work on a driver for my sigmatel chip because no one can figure out a way to get the sigmatel 9200 producing sound. Welcome to the project!

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
experiment. I have no clue. Check Info.plist files for IOPCIMatch fields. Find your vendor (8384) and device id using msinfo32 in windows if you can. replace any fields that reference 0x00000000 numbers. it would be something like 0x76918384. thats what mine is. you can also hexedit all of the executables and look for "8483" hex values and replace the 4 values BEFORE it with the reverse of your device id, like my device id is 7691, i would put 9176. getting OSX and OSX drivers working on PC platforms is new to all of us, so we all have to take part in our own experimentation to get things working. For example, I've ended up starting work on a driver for my sigmatel chip because no one can figure out a way to get the sigmatel 9200 producing sound. Welcome to the project!

 

I believe there are a good number of OSX86 Users that have purchased a VAIO SZ... as fas as I know there is really not another 13" notebook that can duplicate it's feature set (except for the ASUS). Getting the SZ, or any machine using a STAC9225 working would be great. When we install a fresh copy of 10.4.5, OS X can see that there is indeed an Intel HDA device present, however OS X has no control over said device. OS X is finding the same vendor... but the device ID is different. I believe once before someone was working on this... and their efforts found that we may have to write a driver to get audio working properly. If I can find the time this week I will see if I can look into this more deeply... it seems to me that if OSX can see the STAC on the board then all we may have to do is show it the proper device ID and map the pins accordingly.

 

--Jason

Link to comment
Share on other sites

Maybe, but I doubt it. HD Audio uses widgets to reference things. And, the driver that apple has may or may not reset the Azalia Link. If it does, then you're going to have to write a new driver. If it doesn't, you are probably going to have to write a new driver. Keep checking status on the SigmaTel 9200 in XLabs. I hear it may be universal for all SigmaTel codecs one day....

Link to comment
Share on other sites

Maybe, but I doubt it. HD Audio uses widgets to reference things. And, the driver that apple has may or may not reset the Azalia Link. If it does, then you're going to have to write a new driver. If it doesn't, you are probably going to have to write a new driver. Keep checking status on the SigmaTel 9200 in XLabs. I hear it may be universal for all SigmaTel codecs one day....

 

The VAIO SZ notebooks have a strange audio system for sure. The Azalia Sony Sound Reality Chip (STAC9225 I Believe) is hooked up the the Intel HDA bus and can be turned on and off via the Sony Sound Reality Software provided with the notebook to conserve power(referenced HERE). I have looked for info the the STAC9225, but I have been unable to find any thus far. I really wish I had more time to spend researching this now... I hope you are successful porting the ALSA code as I know they have a working driver for the VAIO SZ and most of the other ich7 stuff. If anyone knows where to find the info on the Sigmatel STAC9225 please advise as I am not the type that prefers to sit on my hands. Thanks...

 

-Jason

Link to comment
Share on other sites

I found someone work it on linux well,this is his test:

 

root@haifa:/home/ariel# cat /proc/asound/card0/codec#0

Codec: SigmaTel ID 7661

Address: 0

Vendor Id: 0x83847661

Subsystem Id: 0x104d0700

Revision Id: 0x104201

Default PCM: rates 0x7e0, bits 0x0e, types 0x1

Default Amp-In caps: ofs=0x00, nsteps=0x0f, stepsize=0x05, mute=1

Default Amp-Out caps: ofs=0x7f, nsteps=0x7f, stepsize=0x02, mute=1

Node 0x02 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out

Amp-Out caps: N/A

Amp-Out vals: [0xff 0xff]

Power: 0x33

Node 0x03 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out

Amp-Out caps: N/A

Amp-Out vals: [0xff 0xff]

Power: 0x33

Node 0x04 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out

Amp-Out caps: N/A

Amp-Out vals: [0xff 0xff]

Power: 0x33

Node 0x05 [Audio Output] wcaps 0xd0c05: Stereo Amp-Out

Amp-Out caps: N/A

Amp-Out vals: [0xff 0xff]

Power: 0x33

Node 0x06 [Audio Input] wcaps 0x1d0541: Stereo

Power: 0x33

Connection: 1

0x07

Node 0x07 [Audio Selector] wcaps 0x300903: Stereo Amp-In

Amp-In caps: N/A

Amp-In vals: [0x80 0x80]

Connection: 1

0x0e

Node 0x08 [Audio Input] wcaps 0x1d0541: Stereo

Power: 0x33

Connection: 1

0x09

Node 0x09 [Audio Selector] wcaps 0x300903: Stereo Amp-In

Amp-In caps: N/A

Amp-In vals: [0x80 0x80]

Connection: 1

0x15

Node 0x0a [Pin Complex] wcaps 0x400181: Stereo

Pincap 0x08173c: IN OUT HP

Pin Default 0x012110f0: [Jack] HP Out at Ext Rear

Conn = 1/8, Color = Black

Pin-ctls: 0x00:

Connection: 1

0x02

Node 0x0b [Pin Complex] wcaps 0x400181: Stereo

Pincap 0x0814: OUT

Pin Default 0x40f000fb: [N/A] Other at Ext N/A

Conn = Unknown, Color = Unknown

Pin-ctls: 0x00:

Connection: 1

0x04

Node 0x0c [Pin Complex] wcaps 0x400181: Stereo

Pincap 0x0814: OUT

Pin Default 0x40f000fc: [N/A] Other at Ext N/A

Conn = Unknown, Color = Unknown

Pin-ctls: 0x00:

Connection: 1

0x03

Node 0x0d [Pin Complex] wcaps 0x400181: Stereo

Pincap 0x08173c: IN OUT HP

Pin Default 0x41a15020: [N/A] Mic at Ext Rear

Conn = 1/8, Color = Red

Pin-ctls: 0x00:

Connection: 1

0x02

Node 0x0e [Pin Complex] wcaps 0x400081: Stereo

Pincap 0x0824: IN

Pin Default 0x90370060: [Fixed] CD at Int N/A

Conn = Analog, Color = Unknown

Pin-ctls: 0x00:

Node 0x0f [Pin Complex] wcaps 0x400181: Stereo

Pincap 0x0814: OUT

Pin Default 0x90170010: [Fixed] Speaker at Int N/A

Conn = Analog, Color = Unknown

Pin-ctls: 0x00:

Connection: 1

0x05

Node 0x10 [Audio Output] wcaps 0x40211: Stereo Digital

PCM: rates 0x3e0, bits 0x0e, types 0x5

Node 0x11 [Pin Complex] wcaps 0x400301: Stereo Digital

Pincap 0x0810: OUT

Pin Default 0x40f000fd: [N/A] Other at Ext N/A

Conn = Unknown, Color = Unknown

Pin-ctls: 0x00:

Connection: 2

0x10* 0x09

Node 0x12 [Audio Input] wcaps 0x140311: Stereo Digital

PCM: rates 0x160, bits 0x0e, types 0x5

Connection: 1

0x13

Node 0x13 [Pin Complex] wcaps 0x440381: Stereo Digital

Pincap 0x0834: IN OUT

Pin Default 0x40f000fe: [N/A] Other at Ext N/A

Conn = Unknown, Color = Unknown

Pin-ctls: 0x00:

Connection: 1

0x18

Node 0x14 [Pin Complex] wcaps 0x400001: Stereo

Pincap 0x0820: IN

Pin Default 0x90a7002e: [Fixed] Mic at Int N/A

Conn = Analog, Color = Unknown

Pin-ctls: 0x00:

Node 0x15 [Audio Selector] wcaps 0x30010d: Stereo Amp-Out

Amp-Out caps: ofs=0x00, nsteps=0x04, stepsize=0x27, mute=1

Amp-Out vals: [0x00 0x00]

Connection: 4

0x0a* 0x0d 0x14 0x02

Node 0x16 [beep Generator Widget] wcaps 0x70000c: Mono Amp-Out

Amp-Out caps: ofs=0x03, nsteps=0x03, stepsize=0x17, mute=0

Amp-Out vals: [0x00]

Node 0x17 [Volume Knob Widget] wcaps 0x600000: Mono

Node 0x18 [Audio Output] wcaps 0x40201: Stereo Digital

 

source Url: https://launchpad.net/distros/ubuntu/+sourc...iver/+bug/33719

 

Linux 7661 patch: http://librarian.launchpad.net/1798979/stac7661.patch

Link to comment
Share on other sites

I found someone work it on linux well,this is his test:

 

root@haifa:/home/ariel# cat /proc/asound/card0/codec#0...

 

I have seen this as well. This was the effort to get the SZ working on Ubuntu if I remember correctly. That data you posted was the terminal output of "cat /proc/asound/card0/codec#0." I believe James2Smart is working on porting the ALSA libs to OSX so when he is finished it should be trivial to enable support for the STAC9225. Thanks James...

 

-Jason

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...
  • 3 weeks later...

Any luck guys? I know nothing about what I am doing, but from the info gathered on this forum, I have located IOPCIPrimaryMatch in the info.plist of AppleAC97AudioIntelICH.kext... Wondering if this is where we hae to dicker around. Ive tried about every item imaginable, and have had no luck... Also done enough reading to make my eyes watery. I know there is a simple solution, we just need to find it. Obviously it would be preferable to stay in X than going to XP when it gets too quiet!

Link to comment
Share on other sites

  • 1 year later...

I got SigmaTel CXD 9872 Sony Vaio FE21M sound working.

I copied the file AppleHDA.kext from an JAS 10.4.8 install into a Leopard ToH install.

Then ran AppleHDAPatcher_v1.5 With a "codec#0" I got from a Ubuntu LiveCD boot up.

The speakers and the internal mic both work.

 

In System Profiler it shows

 

Intel High Definition Audio:

 

Device ID: 0x104D81EF

Audio ID: 12

Available Devices

Link to comment
Share on other sites

 Share

×
×
  • Create New...