Help - Search - Members - Calendar
Full Version: Dell XPS M1530 / M1330 AppleHDA Solutions (Sigmatel STAC 9228)
InsanelyMac Forum > OSx86 Project > Tutorials (The Genius Bar)
Pages: 1, 2, 3, 4
talisman
This topic is ONLY for discussion and posting of different fixes to AppleHDA.kext for XPS M1530 and M1330 which have the Sigmatel 9228 Audio Codecs.


Last Updated 13th May 2009
(Brandon2004/Chrysaor DSDT.aml with HDAEnabler fix for M1530)

IMPORTANT:

1. The Instructions and kexts have been made for and tested in an M1530 only. Any testing in M1330 will be welcome. The M1330 kexts have been made from the M1530 kexts but have the correct ConfigData. Please send me your tested M1330 kexts so I can post it here.
2. Please Open Disk utilities and repair permissions after installing the kext.


Stable Kexts:

This section contains stable kexts which will always work for the designatied system. The sections below contain experimental kexts that have different modifications to them and each have their own faults. They will be updated as and when required.

M1530: Try this (by Urthwhyte). AppleHDA.kext.M1530.Allports.zip
Working
: Almost everything, autoswitching of all ports, works even after sleep, mute and all volume controls.
Not Working: Internal Mic

M1330: Try this (by gbonilla). AppleHDA.kext.M1330.zip
Working
: Autoswitching on one ports, works even after sleep, mute and all volume controls.
Not Working: Internal Mic, autoswitching on both front ports.

Experimental Kexts:

If you are having the following problems you can solve them by using the corresponding kexts. As these are experimental ones, everything might not work properly. This section is more for understanding the solution to a problem, rather than giving you an easy solution to all your problems with Audio.

Problem: Audio Not Working After Reboot.
Solution:
This is due to incorrect verbs in the ConfigData entry of the Info.plist in the AppleHDAController.kext which can be found in the Plugins folder of the AppleHDA.kext.

M1530: Use the kext from AppleHDA.kext.STAC9228.M1530.ConfigDataFix.zip
M1330: Use the kext from AppleHDA.kext.STAC9228.M1330.ConfigDataFix.zip (Not working till further notice)




Note: Verbs are very specific to systems. They may be different for you even if you have the same Audio Codec but a different laptop model. I suggest you write your own verbs if the attached kexts don't work

If you want to understand verbs look here : The King's post
If you want to get verbs from Vista look here : MadTux's Guide

ConfigData for M1530:
CODE
<00a71c10 00a71d10 00a71e21 00a71f02 00b71cf0 00b71d00 00b71ef0 00b71f40 00c71cf0 00c71d00 00c71ef0 00c71f40 00d71c10 00d71d01 00d71e17 00d71f90 00e71c20 00e71d10 00e71ea1 00e71f02 00f71c30 00f71d10 00f71e01 00f71f02 01071cf0 01071d00 01071ef0 01071f40 01171cf0 01171d00 01171ef0 01171f40 01271cf0 01271d00 01271ef0 01271f40 01371c20 01371d01 01371ea6 01371f90 01471cf0 01471d00 01471ef0 01471f40 02171ca0 02171d10 02171e56 02171f98 02271cf0 02271d00 02271ef0 02271f40>


ConfigData for M1330: (Yehor Lvivski)(EDITED)
CODE
<00A71C10 00A71D10 00A71E21 00A71F02 00B71CF0 00B71D00 00B71EF0 00B71F40 00C71CF0 00C71D00 00C71EF0 00C71F40 00D71C10 00D71D01 00D71E17 00D71F90 00E71C30 00E71D10 00E71EA1 00E71F02 00F71C20 00F71D10 00F71E01 00F71F02 01071CF0 01071D00 01071EF0 01071F40 01171CF0 01171D00 01171EF0 01171F40 01271CF0 01271D00 01271EF0 01271F40 01371C40 01371D00 01371EA6 01371F90 01471CF0 01471D00 01471EF0 01471F40 02171CA0 02171D10 02171E56 02171F18 02271CF0 02271D00 02271EF0 02271F40>


Problem: Headphone Autoswitching Does Not Work at all / Does Not Work After Sleep
Solution: The first problem is solved in the M1530 by the kext below: AppleHDA.kext.STAC9228.M1530.ConfigDataFix.zip

The second problem seems to have a solution and will be posted soon. (Chrysaor might have a fix)

Problem: Internal Mic Does not Work
Solution: We are working very hard to resolve this. Chrysaor, gbonilla, wingrunr21, macgirl are the some of the names that come to my mind amongst the people who are working on it. Have patience and we might have a New Year's Gift for you!!

Help Needed: I am posting two kexts:

1. M1530: AppleHDA.kext.STAC9228.M1530.IntMic19.zip
M1330: AppleHDA.kext.STAC9228.M1330.IntMic19.zip

These have the internal mic set to pin 19 (0x13).
The current pin map is : 8 28 19.
Other Possibilities: 7 27 19 or 9 29 19

2. M1530: AppleHDA.kext.STAC9228.M1530.IntMic12.zip
M1330: AppleHDA.kext.STAC9228.M1330.IntMic12.zip

These has the internal mic set to pin 12 (0x0c). This works in an Inspiron 1525 with STAC 9228 (Details)
The current pin map is : 8 28 25 22 12.
Other Possibilities: 7 27 24 21 12 or 9 29 26 23 12

Let me know if any combination works. All you have to do is edit the Internal Mic section in AppleHDA.kext/Contents/Info.plist

Problem: The sound crackles on initialization as if it has a caught a cold
Solution: You are probably using PC_EFI V8 and a vanilla kernel. Not a good combinaltion. Upgrade to PC_EFI V9 (Netkas).

Problem: The sound does not work at all even after installing these kexts.

M1530 only: You do not need the HDAEnabler anymore if you use the Brandon2004/Chrysaor DSDT.aml .

Solution: Check if you have HDAEnabler.kext (Kabyl) installed. If not do so. You will find it attached below.
Check if you have AppleAzaliaAudio.kext in your Extensions folder. If you do, delete it because its stops the AppleHDA from working (thanks Urthwhyte for reminding me)

If you have any other Problems:

1. Check you Sound pane in System Preferences to see if the default output and input are set correctly.
2. Google around and if you don't find anything then post here.

How To:

1. How to get codec dump from Linux:

In terminal type:
sudo cat /proc/asound/card0/codec#0 >> codecdump.txt
Note: The 0 might have to be replaced by 1 or 2

2. How to get Verbs from Vista?
Click on:
START
RUN
and write: regedit (this will start registry explorer)
Search for PinConfig

OR

Find it here with regedit:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E96C-E325-11CE-BFC1-08002BE10318}000\PinConfigOverrideVerbs]

The number in {} and the 000 might be different for you!!

3. How to make a Codec Graph.

In a Linux Machine:
Download: CodecGraph
Install: Graphvix (sudo yum install graphviz)
Run: ./codecgraph from the Codecgraph Directory

In Mac:
See Here

You can also use the mandriva-linux-one-2009-KDE4-int-cdrom-i586 live CD to get the codec dump. Apparantly the Ubuntu live CD has an older version of ALSA

The output of the CodecGraph is a .svg file. You can open it with Safari or convert it to jpg using GIMP

Files you might find useful:

stac9228_M1530.txt is the codec dump
The Codec Graph for M1530:
Yehor Lvivski
XPS M1330 PinConfig
CODE
<00A71C1F 00A71D10 00A71E21 00A71F02 00B71CF0 00B71D00 00B71EF0 00B71F40 00C71CF1 00C71D00 00C71EF0 00C71F40 00D71C10 00D71D01 00D71E17 00D71F90 00E71C30 00E71D10 00E71EA1 00E71F02 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>
macgirl
Thanks for this, Talisman.

I tried some mods to the pathmap and the pin-config before without success, now I see more clearly.
joe611
I have downloaded both AppleHDA.kext and HDAEnabler.kext, installed them and repaired permission, I have the sound icon and I am still not getting sound, no matter what i set as output in the sound option. Some help please?
talisman
QUOTE (joe611 @ Dec 24 2008, 06:20 AM) *
I have downloaded both AppleHDA.kext and HDAEnabler.kext, installed them and repaired permission, I have the sound icon and I am still not getting sound, no matter what i set as output in the sound option. Some help please?


I need to know what system configuration you have.... if possible please put the details in your signature... it will be easier to help you...

QUOTE (macgirl @ Dec 24 2008, 01:11 AM) *
Thanks for this, Talisman.

I tried some mods to the pathmap and the pin-config before without success, now I see more clearly.


Do these kexts solve any problems you had before.. please let me know so that I can post it...
Urthwhyte
QUOTE (joe611 @ Dec 24 2008, 07:20 AM) *
I have downloaded both AppleHDA.kext and HDAEnabler.kext, installed them and repaired permission, I have the sound icon and I am still not getting sound, no matter what i set as output in the sound option. Some help please?


Have you also deleted the AppleAzaliaAudio.kext and then repaired permissions? For some reason that kext stops the sound from working even if you have the correct kexts installed.

wrt talisman's original post, the kext that was recently released for the Inspiron 1525's with the autoswitching will work even after sleep and does list what it sees as two seperate microphones, which could be due to the 1x30's arrays. I think the fact that we have two mics is what's tripping us up, rather than the pin map which seems to have been nailed down.
wingrunr21
talisman, none of the 1330 kexts work correctly. The configdata one still doesn't have audio working upon first boot and neither internal mic one works correctly. I'm burning a mandriva disk right now to see what I can get figured out today.

BTW Yehor gave the M1330's pin config not the 1530's

Small problem: Mandriva does not find a codec when the LiveCD loads ALSA. I'm downloading the alpha of Ubuntu 9.10 and we'll see. This one has ALSA 1.0.17 instead of 1.0.18 but doesn't do me much good if it won't load a codec. If worse comes to worse I'll pull out an external HD and install Gentoo on it.
macgirl
Talisman I tested two of the M1330 and din't work, the one I got working is from jbonilla.

wingrunr21 I already have Kubuntu 8.x isntalled in a partition, do you know if it has the new ALSA, I can make the codec dump it it has the latest.
talisman
QUOTE (wingrunr21 @ Dec 24 2008, 03:43 PM) *
talisman, none of the 1330 kexts work correctly. The configdata one still doesn't have audio working upon first boot and neither internal mic one works correctly. I'm burning a mandriva disk right now to see what I can get figured out today.

BTW Yehor gave the M1330's pin config not the 1530's

Small problem: Mandriva does not find a codec when the LiveCD loads ALSA. I'm downloading the alpha of Ubuntu 9.10 and we'll see. This one has ALSA 1.0.17 instead of 1.0.18 but doesn't do me much good if it won't load a codec. If worse comes to worse I'll pull out an external HD and install Gentoo on it.


Sorry... typo.... it is the 1330 pin config verbs..... thats why I posted it.....

Can you or Macgirl post the most recent kext which is working....

QUOTE (macgirl @ Dec 24 2008, 06:18 PM) *
Talisman I tested two of the M1330 and din't work, the one I got working is from jbonilla.

wingrunr21 I already have Kubuntu 8.x isntalled in a partition, do you know if it has the new ALSA, I can make the codec dump it it has the latest.


You dont really need anything latest.... just do an update of the ALSA .... I think you can use yum to do that....
wingrunr21
If it is a default Kubuntu 8.10 then it has ALSA 1.0.16. Yum may have it otherwise you may have to install from source. Sorry I'm not very familiar with Ubuntu since I'm normally a Gentoo user.
gbonilla
Hey I still can't seem to get auto-switching to both headphone ports, I can get autoswitching to one and an indepoendent headphone port that you have to manually switch to but I cant get both autoswitched to. Do you guys have any ideas on how to do this? I'm fresh out of ideas, I've been beating myself up over this.
Urthwhyte
I'm currently using the working Inspiron 1525 kext with the autoswitching, but upon reboot I have no audio until I sleep the laptop and wake it up., other than that the kext works wonderfully, right now I'm working on a diff to between gbonilla's and Chryasor's to see if there's a verb difference that could be causing the lack of sound after reboot.
ukhan
Yeah I tried the m1330 kext and it doesn't work. Macgirl can you please post the working kext that you said was working?
macgirl
QUOTE (gbonilla @ Dec 24 2008, 11:10 PM) *
Hey I still can't seem to get auto-switching to both headphone ports, I can get autoswitching to one and an indepoendent headphone port that you have to manually switch to but I cant get both autoswitched to. Do you guys have any ideas on how to do this? I'm fresh out of ideas, I've been beating myself up over this.

Could you make one of the jacks auto-switchable and the other manually?

QUOTE (ukhan @ Dec 25 2008, 10:18 AM) *
Yeah I tried the m1330 kext and it doesn't work. Macgirl can you please post the working kext that you said was working?

Sure, the one is working (auto-switch and external mic) is here on gbonilla's thread: http://forum.insanelymac.com/index.php?showtopic=141033
Urthwhyte
Talisman (or anyone else using gbonilla's autoswitching Inspiron 1525 kext on the M1530), after you reboot do you have working audio without having to sleep the laptop first?
macgirl
First times I tried the kext it worked right away, then after I test some of the hexts posted here I put back the original from gbonilla's but now I need to make either sleep or insert a headphones in first jack at least for a second.
Urthwhyte
Seems the same here, on the first reboot after I install the kext everything works correctly, and after that nothing until I sleep or insert a headphone. I think part of this problem is differing config data between the various laptop models, but I'm not sure where it goes or how to edit it. IF anyone could point me towards a tutorial I could see if it's something I can fix, otherwise I'll let someone with a bit more Unix experience take a look at it.
macgirl
Weird weird weird, just rebooted and got sound without sleep/plug
gbonilla
QUOTE (macgirl @ Dec 25 2008, 08:31 AM) *
Could you make one of the jacks auto-switchable and the other manually?
Sure, the one is working (auto-switch and external mic) is here on gbonilla's thread: http://forum.insanelymac.com/index.php?showtopic=141033


Mac girl, Yes I can get the other manual, look in the sound preferences and you'll see the other headphone port and if you switch to it you can use it.

Click to view attachment

I wish I had the sleep problem you guys are having so I could help fix it but on my 1525 I'm working fine after reboot. You guys can test out the above kext, Maybe it will help. Good Luck!
macgirl
Thanks it is working perfectly, Left jack is the selectable, the center is the auto-swhitch.

I guess it can be reversible, I mean left jack = auto, center jack selectable.
gbonilla
I got auto-switching to both although I can't get it to show in sound preferences but other than that it works perfectly! Have fun everyone! and Merry Christmas.
Click to view attachment
macgirl
So with this we can have two headphones attached, or one of them has greater priority?


EDIT:
Did you attach the correct one, because it has the same modification time as the prevoious, an also when tested I have the same manual selection of the second headphones
talisman
QUOTE (Urthwhyte @ Dec 25 2008, 05:09 PM) *
Seems the same here, on the first reboot after I install the kext everything works correctly, and after that nothing until I sleep or insert a headphone. I think part of this problem is differing config data between the various laptop models, but I'm not sure where it goes or how to edit it. IF anyone could point me towards a tutorial I could see if it's something I can fix, otherwise I'll let someone with a bit more Unix experience take a look at it.


The tutotrial to make verbs is listed in the first post. It is under the How To section. If you have Vista, that is the easiest way. However, you might not find the data in vista at all (my case), but give it a try. I would like to know if the config data is different in different machines of the same Model and Make. I personally do not feel so, because I got the Vista PinConfigVerbs dump from one of my XPS M1530 and am using it on the other. It can be different between revisions though. If it is, then I will write a script to extract that from a dump.

You need to put the Config data in the Info.plist in the AppleHDA.kext/Contents/Plugins/AppleHDAController.kext/Contents

QUOTE (macgirl @ Dec 26 2008, 01:06 AM) *
Thanks it is working perfectly, Left jack is the selectable, the center is the auto-swhitch.

I guess it can be reversible, I mean left jack = auto, center jack selectable.


I have always had left auto-switchable and middle Manual. I guess you can do that by making the middle one a Line-out and the left one a headphone in the PathMap in AppleHDA.kext/Contents/Info.plist

QUOTE (gbonilla @ Dec 26 2008, 01:21 AM) *
I got auto-switching to both although I can't get it to show in sound preferences but other than that it works perfectly! Have fun everyone! and Merry Christmas.
Click to view attachment


Can you post a ChangeLog or something so that we can follow the modifications that you made??
macgirl
QUOTE (talisman @ Dec 26 2008, 01:25 AM) *
I have always had left auto-switchable and middle Manual. I guess you can do that by making the middle one a Line-out and the left one a headphone in the PathMap in

With Taruga's I had sound in both at the same time (Int Speakers, Left jack) but once I put the M1330 to sleep I lose that so I need to select manually on the Sound Panel.
gbonilla
Macgirl what happened is in sound preferences it still shows up as there is another headphone port but for some reason with the arrangement in the plist both headphone ports work with the internal speaker selected but nothing changes. Just try it and you'll see that both headphone ports should work under the Internal Speaker setting just with one of the ports it wont change it but you will get sound.

As it is the middle headphone port has priority, I'm attempting to get both headphone ports working at the same time but it is kicking my butt.

Talisman, I would post a change log but as it is it would take quite a bit of time, you can just look at my previous AppleHDA.kext and my newest one. The one thing I did was I used node 11 instead of the usual node 10. Once I did that it seemed to work but I couldnt get it to auto-switch to it in the sound preference pane.
macgirl
Sadly no, I plug the headphones in the left jack and no sound unless I select it on the Sound Pane, just center Jack works with auto-switch.
gbonilla
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.

Click to view attachment
macgirl
Download, testing... BRB

EDIT:

Bad news, although auto-switch works on both jacks there is no sound from speakers, even after unplug or sleep sad.gif
gbonilla
QUOTE (macgirl @ Dec 26 2008, 07:24 PM) *
Download, testing... BRB

EDIT:

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


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
macgirl
It worked with the first pinconfig my bad sad.gif I pasted the pinconfig of the M1330.

So the internal Mic could work moving the pinconfig data?
gbonilla
Does your internal mic not work? It works through the pathmap and through the ConfigData.
macgirl
No, the internal Mic is not working sad.gif only thru external (jack)
gbonilla
QUOTE (macgirl @ Dec 26 2008, 08:41 PM) *
No, the internal Mic is not working sad.gif 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?

CODE
<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>
macgirl
Sure, testing... BRB

EDIT:
Int Mic not working
Speakers Not working
talisman
QUOTE (gbonilla @ Dec 27 2008, 04:59 AM) *
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?

CODE
<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??
gbonilla
QUOTE (talisman @ Dec 26 2008, 11:29 PM) *
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.
macgirl
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.
talisman
QUOTE (macgirl @ Dec 28 2008, 01:26 AM) *
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.....
gbonilla
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.
wingrunr21
I believe with any ALSA versions require the snd_hda_intel module to load with the parameters "model=3stack".
macgirl
QUOTE (gbonilla @ Dec 28 2008, 04:53 AM) *
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.

QUOTE (wingrunr21 @ Dec 28 2008, 08:04 AM) *
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?
macgirl
I use the kexts THe KiNG created here to make it work with Vanilla AppleHDA
QUOTE (THe KiNG @ Dec 8 2008, 10:23 PM) *
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
macgirl
Indeed I found some proof that the microphone on the M1330 use node 19 and there is pinconfig override

Here are 2 vista REGs:
CODE
[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



CODE
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.
macdanny
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
talisman
QUOTE (macgirl @ Dec 28 2008, 10:20 PM) *
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.

QUOTE (macdanny @ Dec 30 2008, 03:07 AM) *
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
macgirl
QUOTE (talisman @ Dec 29 2008, 10:42 PM) *
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.

QUOTE (talisman @ Dec 29 2008, 10:42 PM) *
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

QUOTE (talisman @ Dec 29 2008, 10:42 PM) *
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.
gbonilla
Hmm that actually sounds really interesting, I wonder if it takes longer to initialize or fixes the problems people have with PinCofigs?
talisman
QUOTE (THe KiNG @ Dec 29 2008, 09:05 AM) *
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.....
Urthwhyte
QUOTE (talisman @ Dec 31 2008, 05:08 AM) *
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.
Chrysaor
QUOTE (Urthwhyte @ Dec 31 2008, 07:04 AM) *
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.