Jump to content

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


  • Please log in to reply
200 replies to this topic

#21
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California
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.
Attached File  AppleHDA.kext.zip   312.01KB   104 downloads

#22
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
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

#23
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

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

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

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.
Attached File  AppleHDA.kext.zip   312.01KB   104 downloads


Can you post a ChangeLog or something so that we can follow the modifications that you made??

#24
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets

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.

#25
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California
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.

#26
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
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.

#27
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California
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.

Attached File  AppleHDA.kext.zip   312.01KB   48 downloads

#28
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
Download, testing... BRB

EDIT:

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

#29
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California

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

#30
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
It worked with the first pinconfig my bad :) I pasted the pinconfig of the M1330.

So the internal Mic could work moving the pinconfig data?

#31
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California
Does your internal mic not work? It works through the pathmap and through the ConfigData.

#32
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
No, the internal Mic is not working :( only thru external (jack)

#33
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California

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>


#34
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
Sure, testing... BRB

EDIT:
Int Mic not working
Speakers Not working

#35
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

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

#36
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California

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.

#37
macgirl

macgirl

    Stargate's Pharaoh

  • Retired
  • 7,612 posts
  • Gender:Female
  • Location:Mexico City
  • Interests:Techie gadgets
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.

#38
talisman

talisman

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 380 posts

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

#39
gbonilla

gbonilla

    InsanelyMac Protégé

  • Members
  • PipPip
  • 67 posts
  • Gender:Male
  • Location:Los Angeles, California
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.

#40
wingrunr21

wingrunr21

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 496 posts
I believe with any ALSA versions require the snd_hda_intel module to load with the parameters "model=3stack".





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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