PDA

View Full Version : Any Luck with The Mac Mini Audio??


Snub_Fighter
21st March 2006, 02:19 AM
Just been looking around trying different drivers, I haven't had any luck though...

fatflock222
21st March 2006, 03:05 AM
no luck here, bricked it once w/ video, all im missing now is audio and video

Snub_Fighter
21st March 2006, 03:27 AM
well thats to bad, i got the video working basicly id say try disabling the vga and adapter then use the intel drivers and install them, and then reboot rebless the xom.efi with the orginal xom.efi and im thinking that should work.. cause i tryed all the stuff on wiki and just ended up doing that and works for me but im only using vga, haven't tryed dvi...

dgranda
21st March 2006, 11:38 AM
Optical works on my mini using the driver from the wiki (although the light is on continuosly). I haven't tried the analog connection.

My mini is at work now and I burned all the working drivers to disk. If you are still having problems with optical I can send/post the driver I used in case they changed the link on the wiki. I'll also try analog as soon as I get in.

VaiOSX
21st March 2006, 03:24 PM
All the Dell drivers for the Sigmatel STAC9220 (Dev_8483 Ven_7680) are not working for the Analog output.

For the moment only the Digital (optical) output is working.

I modified the registry and i was able to select (STAC in config panels) the headphone jack or line out, without any noticeable effects.

The drivers are working, but i'm sure the problem is coming from apple, because the mini's ioreg result is giving me :

IOHDACodecVendorID = 18446744071621080704 (it is decimal)

If you convert this to hexa you'll get FFFFFFFF83847800

83847800 ???? it's confusing because the codec is 7680, not 7800.

The codec is responsible for handling audio channels and input/output.

i'll continue to investigate.

Maaij
21st March 2006, 04:56 PM
All the Dell drivers for the Sigmatel STAC9220 (Dev_8483 Ven_7680) are not working for the Analog output.

For the moment only the Digital (optical) output is working.

I modified the registry and i was able to select (STAC in config panels) the headphone jack or line out, without any noticeable effects.

The drivers are working, but i'm sure the problem is coming from apple, because the mini's ioreg result is giving me :

IOHDACodecVendorID = 18446744071621080704 (it is decimal)

If you convert this to hexa you'll get FFFFFFFF83847800

83847800 ???? it's confusing because the codec is 7680, not 7800.

The codec is responsible for handling audio channels and input/output.

i'll continue to investigate.

Good work. Keep us posted :)

dgranda
21st March 2006, 07:08 PM
Screwing with the video windows doesn't boot anymore so I haven't checked analog, but it looks like only optical is working. Those that have the hardware probably already know but you can optical audio in to a minidisc recorder and hold the recorder on pause to use it as your D/A converter for headphones.

VaiOSX
22nd March 2006, 09:24 AM
Ok, i finally found a way to reassign the audio output to the jack.

The problem is that the Sigmatel STAC9220 codec is able to handle 8 jack plugs (7.1) while the macmini has only 2 jacks.

I tried to reassign to all of them, but it still doesn't work.

I now have a selector in the stacgui.cpl and i can choose the output (headphones, stereo, 5.1, 7.1....)

The AppleHDADriver in ioreg reports a codec id number > 2206496386 which is 8384 7682 in hexa. (should have been 7680).

I'm still checking...

ClamXavMan
22nd March 2006, 11:09 AM
ViaOSX, that sounds very promising indeed. Have you seen this thread (only one post for the time being) http://forum.onmac.net/showthread.php?t=363 in the Drivers forum?

VaiOSX
22nd March 2006, 12:05 PM
http://www.sigmatel.com/products/consumer/theater/stac9220.asp

here is the specs, with a very interesting information.

Universal Jacks™ Functionality for jack retasking
Headphone, Line Out, Line In & Mic
Pins 35/36
Pins 39/41
Line Out, Line In and Mic Support
Pins 16/17 (with strong line out)
Pins 23/24
Pins 21/22
Pins 14/15 with Line In/MIC Support

The ini file used by the dell drivers for the mac mini sigmatel codec is 92xxd8-2.ini

Inside you can find inside the pin's assignment in decimal and hexa.

I'm gonna try to modify it the registry.

Frischluft
22nd March 2006, 12:50 PM
Intel support will not help out btw. Not that i expected it, but i gave it a shot. Got a reply today they don't do support for Macs and i should contact the 'System Manufactor'. Well why not. I guess one could give it a shot with Apple and Sigmatel. Maybe I'll mail them later... gglikâ„¢I somebody already did, please let me know.

Frischluft
22nd March 2006, 02:39 PM
I was looking at the registry as well. For example I found an entry name DisableSpdifControl which was set to 1. After setting it to 0 there is an extra control in the advanced prefs in the volume controls tha lets your turn on/off digital out. Much like in the sigmatel control pane.

Only for some reason the advanced menu item is now grayed out for me so i can't check the influence of other settings there.

VaiOSX
22nd March 2006, 03:06 PM
Ok, 1 more step forward. ;)

(don't try this until you know what you are doing !)

start regedit and search for STacGUI string.

Change the following key's datas :

Config_Spk > 7

Config_Tab > ff

EQpreset > 1

in the XML subfolder change the key :

Nconfigs > 1

Then search (you'll find it 2 times) for EnableHwSpeakerConfigurationSupport and change its datas to 1

Then search (you'll find it 2 times) for CPL_EnableJacksPage and change its datas to 1

Now you'll have all the functions activated in the Stac control panel.

[EDIT] i found the pin's registry keys to be modified, just search for this string CfgDflt the sound problem is very near to be solved ;)

bhagiratha
22nd March 2006, 04:18 PM
I was trying your instructions, but when I did a search for "EnableHwSpeakerConfigurationSupport"
the registry came up with northing.

can your provide the exact registry path for those, please.

thanks

VaiOSX
22nd March 2006, 07:17 PM
I was trying your instructions, but when I did a search for "EnableHwSpeakerConfigurationSupport"
the registry came up with northing.

can your provide the exact registry path for those, please.

thanks

If you can't find it, it means you did not installed the same driver.

anyway you will probably find it with this string > SPDIFControl

It is in the same key folder.

bhagiratha
23rd March 2006, 07:40 AM
Then search (you'll find it 2 times) for EnableHwSpeakerConfigurationSupport and change its datas to 1

Then search (you'll find it 2 times) for CPL_EnableJacksPage and change its datas to 1

In the value data file, do I enter 1 or 01.
I presently reads "0000 00"

Frischluft
23rd March 2006, 12:20 PM
VaiOSX found a solution and posted it here:

http://forum.osx86project.org/index.php?showtopic=12853

Thank you VaiOSX!!!

Great Job! Finally i can setup my mini to actually work with it.
To bad the Micro doesn't work either but i guess I'll get a UBS one.
Not a big deal.

*edit*
btw Vai. It works for me obviously. I was just not allowed to reply in the other forum for some reason.

VaiOSX
23rd March 2006, 04:05 PM
I'm working on a fix for the recording option.

Keep you informed asap. ;)

Maaij
23rd March 2006, 04:43 PM
Good work VaiOSX. Does is also work with the internal speakers? Are there any drivers for the internal speakers?

Maaij
23rd March 2006, 05:24 PM
I tried the Dell drivers you posted in the other forum but I get an error code. Something about the system and wrong drivers? Do I got the wrong drivers or am I doing something wrong?
I just DL the drivers. Setup will install and ask for a restart. After restart I got the error code.

VaiOSX
23rd March 2006, 06:08 PM
For the internal speaker i must find its hexa address. (will check in the OS X kext)

Maaij : try to completely uninstall the soundcard drivers and reinstall it.
I got the same problem while debugging, i just did like this to solve it.

(Speaker test, Dolby, SPDIF and ASIO in Stac control panel are working now)

I'm rewriting the jack's configuration. (it takes time to figure out how it works) ;)

Maaij
23rd March 2006, 06:13 PM
For the internal speaker i must find its hexa address. (will check in the OS X kext)

Maaij : try to completely uninstall the soundcard drivers and reinstall it.
I got the same problem while debugging, i just did like this to solve it.

(Speaker test, Dolby, SPDIF and ASIO in Stac control panel are working now)

I'm rewriting the jack's configuration. (it takes time to figure out how it works) ;)

Did you installed it with the Dell setup or in the device manager?

inferno10
23rd March 2006, 06:15 PM
Vaio, if you're ever in my neck of the woods, I'm going to buy you a drink. Great work!!!

VaiOSX
23rd March 2006, 06:40 PM
Did you installed it with the Dell setup or in the device manager?

If anything goes wrong, i just uninstall it in the device manager, and before restarting, i reinstall the Dell R114282 drivers. (sometimes it works without restarting)

VaiOSX
23rd March 2006, 06:42 PM
Inferno10 :

It depends on where you are ;P

Actually, i'm a Guinness lover, but where it's quiet hard to find some. (China)

VaiOSX
23rd March 2006, 07:50 PM
Ok, i have made some progress

The sound don't turn off anymore when you plug something to the other jack at the same time.

Frischluft
23rd March 2006, 09:21 PM
I'm fiddeling around with the registry and controls. My greatest success so far was freezing everything by changing the input source 0_o
Could you please give me some details how you managed to do that (having the other jack not influence the output)?

VaiOSX
23rd March 2006, 09:48 PM
Check out the Linux source for the patched sigmatel.

http://cvs.sourceforge.net/viewcvs.py/alsa/alsa-kernel/pci/hda/patch_sigmatel.c?rev=1.12

The audio out is stuck on Centre (left) and Low Frequency (right) output which is linked to the microphone plug. (jack retasking from the sigmatel codec chip).

I was not able to move the audio output to the correct jack plug yet.

Search and change in the registry:

Config_Spk FF (to get the speaker test to work)
Config_Tab FF (to get full access to the Stac panel)

Also, the driver file to be hacked is 92xxD8-2.INI (keep a copy on side) if something is wrong, i just replace with this original and restart setup (can fix in 10 sec without restarting).

Frischluft
23rd March 2006, 10:10 PM
Thanx for the hint! I will try to make some sense out of that right now :). If you want to contact me please do so. I sent you a private messge with my contact details.

VaiOSX
23rd March 2006, 10:26 PM
In OS X the Mac mini built-in speaker is driven by the AudioIPCDriver.kext

I'm not sure if we can use it in Windows.

Maaij
23rd March 2006, 10:45 PM
I uninstall the drivers and run dell setup. But I get the same problem?
Weird. Is it because I use WinXP media Center?

Maaij
23rd March 2006, 11:15 PM
Ok it works now.

Tried it a few times and finally it worked :)

There is still red light comping out the MIC line right?

VaiOSX
23rd March 2006, 11:33 PM
Congrats,

You Can turn off the light in :

STAC control panel > Advanced tab > Disable SPDIF DIGITAL output

Actually, it's not the mic plug which is lighted up, the XP drivers is misinterpreting the jack plugs.

MIC JACK PLUG = ANALOG LINE OUT SIGNAL

LINE OUT JACK PLUG = DIGITAL LINE OUT or NOTHING (soon solved, i wish) ;)

Maaij
23rd March 2006, 11:41 PM
If the internal speaker is working I wil be happy ;)

But I am glad the sound is working now in XP :)

Thanx for that

ClamXavMan
23rd March 2006, 11:47 PM
I can't get this to work at all any more. I installed it on the core solo mac mini at work and it worked perfectly. Now that I'm at home, I'm trying to install the driver on my core duo mac mini and I'm being told that the hardware doesn't support the Sigmatel driver. In a fit of frenzy, I even went so far as to reinstall windows altogether so I could make sure that the Sigmatel driver was the first thing I installed, but still no luck.

Any ideas would be greatly appreciated. Thanks.

VaiOSX
24th March 2006, 12:16 AM
When the system is prompting you to choose a driver just cancel.

Then you must disable the sound card and install the driver and restart.

This should solve your issue.

ClamXavMan
24th March 2006, 12:21 AM
Thanks, but I'd already tried all that. However, through no small amount of jiggery pokery (of which probably only about half is actually required!) I've managed to get audio working :)

It suddenly dawned on me that I hadn't remembered to reinstall the Intel chipset drivers, so I did that and also the original Sigmatel drivers as I had previously burned them onto the same CD. Then, without restarting when it asked me to, I installed the Dell drivers which you got working, and hey presto!

Thanks again. As fun as this driver-search game is, it's making me increasingly glad that I'm a Mac user through and through.

bhagiratha
24th March 2006, 02:54 AM
I installed the Dell drivers and plug my speaker jack in the audio input port, lunch itunes and voila. got sound!!

How easy was that.

the problem I see having is that I have a device that I plug in the audio input port which I use when am in osx. well, no complaints here .... it's a good start.

thanks guys

VaiOSX
24th March 2006, 06:56 PM
Ok, i knocked down my mini and checked the Audio PCB.

Audio codec is SIGMATEL STAC9220X5 (http://www.sigmatel.com/documents/STAC9220-9221-pb-0-8.pdf)

Linear Regulator is TPS79501 (http://www.icbase.com/pdf/TI/TI37850408.pdf) (power supply of the PCB)

Internal Speaker's Power Amplifier is LM4991 (http://cache.national.com/ds/LM/LM4991.pdf)

Maaij
24th March 2006, 07:26 PM
Good work. Hope to see working internal speakers in the furure :)

Snub_Fighter
24th March 2006, 07:28 PM
hmm.. I still can't even get the dell drivers to install and i restored windows back to the day i had just the video drivers installed....

Frischluft
24th March 2006, 08:05 PM
I found the description of Intels High Definition Audio Standard here (ftp://download.intel.com/standards/hdaudio/pdf/HDAudio_03.pdf).
It did not help me so far as I'm still not very firm in what I'm actually looking for. But it looks intersting. Especially the last few pages when having the drivers registry values in mind.

I found some global settings in the registry (search for JackDevicePresence). These reflect the current status of the ports. JackDevicePresenceX for instance shows wether or not a device is attached to Port X. According to that the Lineout is Port A and mic in is Port F.

Now i hoped that the Pin keys further down in the registry close to DiableSPDIF, etc. would represent the port and that switching the cfgdflt values of port a and f would do the trick. But the audio codec does not activate with those settings.

Also the 'action' key for port a caught my attention. Apparently this is what happens when soething gets plugged in. According to the pinout description in the doc linked to above this is some reset sequence to adjust to the device beeing connected. Removing this key will avoid muting the 'mic out' when pluggin in the mic into the first line. It will only get slightly decrease volume. Strange enough: When adding the same action sequence to port f instead of removing it at a pluggin the mic into lineout will do nothing. Not even decreasing volume.

As for the Control Panel. It indicates that audio out channels are stuck at Centre (left) and Low Frequency (right) output. I wonder though if that is not only due to us using the control panel of the intel drivers... because playing things in media player i.e. seems to work fine.

VaiOSX: I see in the registry settings there is a link to the file 92xxD8-2.ini. But does it actually do anythign? Or is this just an indication where it was instaled from? I just twidle around witht he registry keys in the CurrentControlSet and they seem to be the ones in effect.

VaiOSX: Would be really nice if you could contact me. I send you my contact infos using board mail. Maybe it helps beeing able to share things more quickly.

VaiOSX
24th March 2006, 08:25 PM
I'm waiting for the STAC DEV KIT.

A good friend of mine (he's working with several Semicon companies) will try to provide it for me.

Keep you informed ;)

VaiOSX
25th March 2006, 04:06 AM
Freshluft and i have digged more information about the dell drivers (R114282).

After many tests, we can be sure that the drivers has an issue with the mac mini built-in sigmatel codec.

it doesn't behave as it should.

here is the result we can confirm to be helpful for anybody who would like to join us in this digging :)

The file 92xxd8-2.ini contains pins allocation addresses that we've probed and this is what we know for now (in hexa) :

ANALOG LINE OUT = 0x0A
DIGITAL LINE OUT = 0x10
MIC IN = 0x0F
DIGITAL IN = 0x0B
ANALOG LINE IN = 0x15
REAR MIC IN = 0x0E

When you disable one of these pins (replacing the dword string by 0x400001F0) the jack sensing is not detecting the disabled pin.

more to come later...

VaiOSX
31st March 2006, 11:00 AM
To get the sound with the Intel drivers :

Open the file I5_WHQL.INI

Change EnableHwSpeakerConfigurationSupport = hex: 0 to 1

Under [HKR\Settings\filter\rear\plugins\Render]
Change RegVersion = dword: 1 to 0

Save it and launch suhlp.exe (direct drivers installer without the intel audio studio who doesn't work)

VaiOSX
31st March 2006, 11:06 AM
Something very strange is that the Dell and Intel drivers are not using the same pins addresses.

But the audio routing problem is the same with both :

Lineout left is still on center and Lineout right on Low freq (sub bass) control.

I think we might have to make the Intel Audio Studio to recognize the sigmatel, because it is handling the audio channels routing.

Maaij
2nd April 2006, 01:11 PM
So which driver ie the best to use?

VaiOSX
7th April 2006, 12:44 AM
OK the solution is coming (obviously) from Apple itself.

If you want the sound to work, just use the audio driver provided in Boot Camp.


Any moderator to close this thread ? ;)