Jump to content

Dell XPS M1530 / M1330 AppleHDA Solutions (Sigmatel STAC 9228)


talisman
 Share

201 posts in this topic

Recommended Posts

Here you go, I figured out that with ConfigData you can't have two headphones but it autoswitches to lineout. So I made the other port a line out. On top of this I'm not sure if it is possible to make sound come out of both ports because apple doesn't support multi-channel out.

 

Here yah go. Here is the newest kext I made, you should have autoswitching to both ports. Good Luck.

 

AppleHDA.kext.zip

Link to comment
Share on other sites

Download, testing... BRB

 

EDIT:

 

Bad news, although auto-switch works on both jacks there is no sound from speakers, even after unplug or sleep :)

 

Can you replace you ConfigData with this

 

<02470fff 00a71c52 00a71d40 00a71e21 00a71f02 00b71c20 00b71d91 00b71ea1 00b71f02 00c71c11 00c71d01 00c71ea3 00c71f40 00d71c50 00d71d40 00d71e11 00d71f01 00e71c12 00e71d92 00e71ea1 00e71f02 00f71c52 00f71d30 00f71e01 00f71f01 01071c00 01071d01 01071e00 01071f40 01171c00 01171d01 01171e00 01171f40 01271c00 01271d01 01271e00 01271f40 01371c00 01371d01 01371e00 01371f40 01471c00 01471d01 01471e00 01471f40 02171c00 02171d01 02171e00 02171f40 02271c00 02271d01 02271e00 02271f40 02371c00 02371d01 02371e00 02371f40>

 

and tell me if that works

Link to comment
Share on other sites

No, the internal Mic is not working :( only thru external (jack)

 

I didn't know you guys didnt have internal mic working, I'll try to help out.

 

I edited the M1330 configdata, can you input this in to my kext and tell me what happens?

 

<00A71C51 00A71D10 00A71E21 00A71F02 00B71CF0 00B71D91 00B71Ea1 00B71F41 00C71CF1 00C71D01 00C71Ea3 00C71F40 00D71C50 00D71D01 00D71E13 00D71F90 00E71C30 00E71D10 00E71EA1 00E71F52 00F71C20 00F71D10 00F71E01 00F71F02 01071CF2 01071D00 01071EF0 01071F40 01171CF3 01171D00 01171EF0 01171F40 01271CF4 01271D00 01271EF0 01271F40 01371C40 01371D00 01371EA6 01371F90 01471CF5 01471D00 01471EF0 01471F40 02171CA0 02171D10 02171E56 02171F18 02271CF6 02271D00 02271EF0 02271F40>

Link to comment
Share on other sites

I didn't know you guys didnt have internal mic working, I'll try to help out.

 

I edited the M1330 configdata, can you input this in to my kext and tell me what happens?

 

<00A71C51 00A71D10 00A71E21 00A71F02 00B71CF0 00B71D91 00B71Ea1 00B71F41 00C71CF1 00C71D01 00C71Ea3 00C71F40 00D71C50 00D71D01 00D71E13 00D71F90 00E71C30 00E71D10 00E71EA1 00E71F52 00F71C20 00F71D10 00F71E01 00F71F02 01071CF2 01071D00 01071EF0 01071F40 01171CF3 01171D00 01171EF0 01171F40 01271CF4 01271D00 01271EF0 01271F40 01371C40 01371D00 01371EA6 01371F90 01471CF5 01471D00 01471EF0 01471F40 02171CA0 02171D10 02171E56 02171F18 02271CF6 02271D00 02271EF0 02271F40>

 

Does changing the "sequence" bit in the verb change anything for you.... as you have mentioned yourself Apple does not support analog multichannel...

 

According to The King

"...*My notes in n00b words for this, if you look on the vanilla codec verb(no matter what codec) you will see that Sequence is always 0.

Why that, and why for us on our codec verbs is different? Simple b/c Apple dosen't have multichannel analog out! so you must change it to 0...."

 

Does Sequencing have anything to do with autoswitching?? In my kext the jacks are set as HP, LO, Mic. HP has autoswitching (which doesnt autoswitch after a sleep) and LO has to be set manually. Mic works automatically.... are you getting anything different?? What sequencing are you doing??

Link to comment
Share on other sites

Does changing the "sequence" bit in the verb change anything for you.... as you have mentioned yourself Apple does not support analog multichannel...

 

According to The King

"...*My notes in n00b words for this, if you look on the vanilla codec verb(no matter what codec) you will see that Sequence is always 0.

Why that, and why for us on our codec verbs is different? Simple b/c Apple dosen't have multichannel analog out! so you must change it to 0...."

 

Does Sequencing have anything to do with autoswitching?? In my kext the jacks are set as HP, LO, Mic. HP has autoswitching (which doesnt autoswitch after a sleep) and LO has to be set manually. Mic works automatically.... are you getting anything different?? What sequencing are you doing??

 

I've messed a lot with sequences and default associations but cant seem to get anything out of it, Auto-switching I have found seems to work in your construction of the pathmaps. In my most recent kext I have figured out that through changing the verb to make node 15 a line out I have auto-switching between my speakers, headphones, and line out. If you download it you can see how I made the pathmap, Node 15 and 5 are the line out. The sleep thing used to happen to me until I started messing with the ConfigData. Once I changed a lot of the ConfigData to correct all the nodes i was using the sleep problem went away. The problem here is I don't know how the ConfigData affects your computers, because my speakers start right away without having to do anything. I wish I could get my hands on a M1330 or M1530 to mess around with but sadly I dont know anyone. So I'll try to help out as much as I can.

 

If you guys have any questions feel free to contact me. I'll be sure to keep posting and answering questions.

 

As of now I think that our hopes for multi-channel out are dashed unless we make an aggregate device which we would somehow have to make a 5.1 out. Which is mind boggling in itself. So as of now.. no dice to the multi-channel out.

Link to comment
Share on other sites

gbonilla, how is shown your intenal mic on Windows?

 

Mine is shown as Digital.

 

One of the things that I believe the AppleHDA kext is not working with the internal mic is because somehow the driver need to do a patch or a bridge between nodes.

 

I modified the pin config data with the pin cofig from Vista and later from the code dump of Linux, in both cases I get no sound from speaker and no internal mic.

 

I remeber when I set up Vista I get no sound from speakers and Internal Mic was not shown with the default driver that Vista came, until I downloaded the driver and installed I got both.

 

Also the firs time I set up Kubuntu I got the same issues, until I read somewhere that Stac9228 need a special patch from ALSA.

 

Well I am still trying more mods to the pin config.

Link to comment
Share on other sites

Also the firs time I set up Kubuntu I got the same issues, until I read somewhere that Stac9228 need a special patch from ALSA.

 

Well I am still trying more mods to the pin config.

 

Now I remember I also had problem with speakers when I installed Fedora on my other M1530 but did not have that problem when I did it on this one although both were identical installations. I will have to look into that again.....

Link to comment
Share on other sites

When i think about it if your mic is digital you should probably use the node 19 to start with. Or have you ever messed with node 34? I wish I could get my hands on an M1330 or M1530, I'll see if I can get my hands on one.

Link to comment
Share on other sites

When i think about it if your mic is digital you should probably use the node 19 to start with. Or have you ever messed with node 34? I wish I could get my hands on an M1330 or M1530, I'll see if I can get my hands on one.

Well, indeed I messed with those two nodes, in the plist I change node 12 to 19 and add the node 34 which is digital also, there is also another node, node 20 that I thinks is also digital but on the codegraph it appears as Ext Stereo In.

 

On my input devices node 19 appears as Intenal microphone Built In (even if I modify the pinconfig and tell it is digital instead of internal, node 34 appears as SPDIF In, I don't remember if I modified the pin config to make it as Mic In - Digital, surely I did but there are a lot of test I did and I didn't remember well.

 

I believe with any ALSA versions require the snd_hda_intel module to load with the parameters "model=3stack".

Yes I have this also, but what does it means?

Link to comment
Share on other sites

I use the kexts THe KiNG created here to make it work with Vanilla AppleHDA

I think you are confusing me with someone else...

What I did (working kexts/fix) is in this guide, that example was to show you just a part(save space here) on how it can be done, and you are confusing things... "PinConfigurations" does nothing more then printing in system profiler info w/o hdacontroller injection/fix!

And I tried to inject the rest of missing data w/o luck, and stop treating me as a n00b, at least on sound I'm not.

You have attached the complete SigmaTel STAC9228 set, is not 100% fixed is just to show u what needs to be injected in plus...

If you can give me screen access 24/7 on that BadAxe box I can try to fix it, or u can come on irc and find me...

 

Here are the modified kexts so you can use with Vanilla AppleHDA.

http://forum.insanelymac.com/index.php?act...st&id=41372

Link to comment
Share on other sites

Indeed I found some proof that the microphone on the M1330 use node 19 and there is pinconfig override

 

Here are 2 vista REGs:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinA]
"CfgDflt"=dword:0221121f
"AltCfg"=hex:1f,12,11,02
"Action"=hex:81,0d

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinB]
"CfgDflt"=dword:400003fa

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinC]
"CfgDflt"=dword:400003fb

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinD]
"CfgDflt"=dword:90170310
"ExtAmpCtrl"=hex:02,05,02

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinE]
"CfgCurr"=dword:02a11230
"CfgDflt"=dword:02111212
"AltCfg"=hex:12,12,11,02,30,12,81,02,30,12,a1,02
"Bias"=hex:ff,04,02
"Action"=hex:0a,0e
"Selectable"=hex:01

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pinF]
"CfgCurr"=dword:0221121f
"CfgDflt"=dword:02111211
"AltCfg"=hex:11,12,11,02,1f,12,21,02
"Action"=hex:81,0d

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\10]
"CfgDflt"=dword:400003fc

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\11]
"CfgDflt"=dword:400003fd

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\12]
"CfgDflt"=dword:400003fe

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\13]
"CfgDflt"=dword:90a60350
"Mic0Type"=dword:00000000
"Mic0XCoord"=dword:00000000
"Mic0YCoord"=dword:00000040
"Mic0ZCoord"=dword:00000000
"Mic0VerticalAngle"=dword:00000000
"Mic0HorizontalAngle"=dword:00000000
"Mic1Type"=dword:00000000
"Mic1XCoord"=dword:00000000
"Mic1YCoord"=dword:ffffffc0
"Mic1ZCoord"=dword:00000000
"Mic1VerticalAngle"=dword:00000000
"Mic1HorizontalAngle"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\14]
"CfgDflt"=dword:400003ff

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\21]
"CfgDflt"=dword:03461340

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\pin\22]
"CfgDflt"=dword:40c003f1

 

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\filter\MicIn]
"UniqueID"=hex:02
"LegacyIoctlHere"=hex:00
"CaptureConverter"=hex:08
"EnableCompositeMuxAndAdcCtrl"=hex:00
"Associations"=hex:05
"EnabledPcmCaptureBitsAndRates"=dword:000a0060
"DisableMicBoost"=hex:00
"MicArrayVersion"=dword:00000100
"MicArrayType"=dword:00000000
"MicArrayVerticalAngleBegin"=dword:00000000
"MicArrayVerticalAngleEnd"=dword:00000000
"MicArrayHorizontalAngleBegin"=dword:00ffdde9
"MicArrayHorizontalAngleEnd"=dword:00002217
"MicArrayFrequencyBandLo"=dword:00000050
"MicArrayFrequencyBandHi"=dword:00002710

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\Settings\filter\MicIn\TopoNames]
"MicIn"="{A218C4A7-BDF8-4e59-9BEE-994835B7F393}"

 

Unfortunately when I put the pinconfig from this Registry values there is no sound on Internal Speakers, Headphones or Line Out.

 

And no success with the Internal Microphone yet, maybe the AppleHDA can't handle a Digital Mic.

Link to comment
Share on other sites

I have sound and a speaker icon after installing the AppleHDA.kext.STAC9228.M1330.ConfigDataFix.zip and HDAEnabler.kext (s).

 

The problem is I only have sound coming out of the left headphone jack but NOT out of the internal speakers. I have an M1330.

 

Thanks in advance for your help and thank you for the work you have done previously. Everyone have a Happy New Year.

 

Danny

Link to comment
Share on other sites

I use the kexts THe KiNG created here to make it work with Vanilla AppleHDA

 

 

Here are the modified kexts so you can use with Vanilla AppleHDA.

http://forum.insanelymac.com/index.php?act...st&id=41372

 

I assume when you say vanilla, you mean the vanilla AppleHDA kext with the correct pin mapping.

Can you please tell me what advantages you get by using these files and what changes you made??

 

If you are trying node 19, then have a look at the codec graph. There can be only three possibilities with 19. 8 28 19 does show more promise than the others.....

 

If you want to use Vista regs to make the verbs, follow The King's instructions to the line, especially the part about making the Sequence verb 0, it might be important and has to be checked.

 

I have sound and a speaker icon after installing the AppleHDA.kext.STAC9228.M1330.ConfigDataFix.zip and HDAEnabler.kext (s).

 

The problem is I only have sound coming out of the left headphone jack but NOT out of the internal speakers. I have an M1330.

 

Thanks in advance for your help and thank you for the work you have done previously. Everyone have a Happy New Year.

 

Danny

 

These are all experimental kexts.... It might not work for you. If you want one which works better try this:

 

http://forum.insanelymac.com/index.php?act...st&id=30865

Link to comment
Share on other sites

I assume when you say vanilla, you mean the vanilla AppleHDA kext with the correct pin mapping.

Yes and No, Yes the Vanilla AppleHDA kext put without modifying a thing on it, that's the beauty of it, so if a new update come with a new AppleHDA kext you don't need to make any mod again.

 

Can you please tell me what advantages you get by using these files and what changes you made??

The mofifications are only the same Pathmap and pin config that has the STAC9228 kext that we were using up today, the advantage is that the AppleHDA is the most recent one the one we were using was from 10.4.x

 

If you are trying node 19, then have a look at the codec graph. There can be only three possibilities with 19. 8 28 19 does show more promise than the others.....

Yes I tried all of that, no success, I even did my own codecgraph on Linux surprinsingly there is no a bit of difference with the codecgraph of the M1530, what I didn't compare yet is the pin config data.

Link to comment
Share on other sites

Soon (less then a month I hope) a new driver will fix all this. I can't say more about this b/c is not my work and the announce should be made by the maker, so IMHO better focus your energy to something else, soon all this patching hda stuff will go on the dark...

As example I've stopped patching AD1988b @ 99% only mute and input amp boost to fix remained...

 

So we can relax a bit now... unless we want to get this kext working before the driver is launched..... just for the heck of it.....

Link to comment
Share on other sites

So we can relax a bit now... unless we want to get this kext working before the driver is launched..... just for the heck of it.....

 

If we can get the mic working, the only three issues that remain are the webcam lag, shutdown/restart, and ethernet, none of which seem to be easy to fix.

Link to comment
Share on other sites

If we can get the mic working, the only three issues that remain are the webcam lag, shutdown/restart, and ethernet, none of which seem to be easy to fix.

 

What webcam lag are you talking about? If you mean low fps, it is because of crappy webcam that Dell uses.

You can drop the resolution in Skype (with editing config file) and get much better fps.

Link to comment
Share on other sites

 Share

×
×
  • Create New...