Jump to content

ATI AC 97 Sounds (SB400) effort


  • This topic is locked This topic is locked
695 replies to this topic

#641
scousi

scousi

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 308 posts

Alright, I took a look at the ALSA driver as of Linux kernel 2.6.20, and here's a list of features that I should be able to get working that weren't:

* Multi-channel sound. I'm not sure WHAT causes this not to work, but I'm going to try to get it to do so.
* S/PDIF output. I don't know if anyone has this or uses it, or its relation to multi-channel sound, but it should also be working.
* Input. It appears that some things were incorrect in the way I set up input. I'm going to try to fix these.

Here is a list of features that do not work and will NOT be worked on:

* MSI motherboard support. I do not have the money to purchase and set up a board, and remote testing is infeasible. You are welcome to research the issue and attempt it yourself.


Thanks everyone that have taken over my "abandonware" project. I had to stop because of other matters. I realize that the code was a mess. My original goal was to reverse engineer the Linux drivers and map it to OSX. I have managed to get the latest driver working on 10.4.8 on my Toshiba with x200. I do get a kernel panic once in a while but it's stable 95% of the time. I have other expiremental drivers that could be causing that. Good work!

Can someone post the source code of the latest so I can take a look at it if I have a chance?

#642
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
If you can give me a couple of days, there's a development version that I quick-hacked that I'd like to test building and installing if I can ever get OS X loaded back on the laptop.

#643
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Well, at any rate, I just got OS X reinstalled on the laptop. Now I have to download XCode and my development driver and get the next build to compile. In the meantime, scousi, here's the base code from which the next version will be developed: clicky

#644
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Quick update. I'm working on the new 1.1.0 build, as I will call it when it is released. The problem, surprisingly enough, does not appear to lie in the ATI driver, but in the AC '97 subsystem. The audio core comes up with some config error and refuses to hand off the configuration to my driver. I am 99.8% certain this is also the same problem as we have with multi-channel sound, so if I can fix this, then there is a hope of being able to fix that as well.

EDIT: Actually, although the trace led through the AC '97 drivers, it led right back to a specific spot in my code. I fixed it up, and the software now recognizes the input lines, although I don't seem to be able to actually get data input. I'll keep working on it, but this much was a major breakthrough - at least it shows the devices. As for multi-channel output, that's not something I can test because my laptop is limited to 2-channel sound only. I'll put debug traces into the code path that does multi-channel sound and ask for logs.

EDIT 2: I also found the "inverted EAPD" bit in the Linux AC97 subsystem. I have a bit of work to do before I can figure out how to apply inverted EAPD only to computers that need it, though.

#645
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Good news, everyone! A quick update - I worked a little bit on this driver, and I finally figured out how to put options in the Info.plist file that gets built with the project. I now have the ability to add an InvertedEAPD flag to the Info.plist entry for those machines that require it. I'm still working on sound capture; all I get is static from the mic, but at least I get that much! On my chipset, I know there is a "mic boost" mixer control under Linux that does not appear under Mac OS. I'm wondering if enabling that will allow me to hear the input on the mic channel. I'll work on getting that enabled, and if I can get real sound coming from my microphone, then I will release version 1.1 beta 1 for those of you who would like to test it.

#646
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Okay, here's beta 1. Mic input does not appear to work; however, the input controls are enabled, and it could just be my setup. Features to test include multi-channel output and inverted EAPD bit. For those who want to test the inverted EAPD bit, you will need to know how to edit the Info.plist file. Find the section appropriate to your PCI ID (mine is 0x43701002) and, under "InvertedEAPD", change <false/> to <true/>. There are three ZIP files:
1) AppleAC97AudioATIIXP-1.1b1-project.zip contains the complete AppleAC97Audio XCode project, with source.
2) AppleAC97AudioATIIXP-1.1b1-code.zip contains ONLY the changed source code for the AppleAC97AudioATIIXP kernel extension.
3) AppleAC97AudioATIIXP-1.1b1-binary.zip contains a compiled kext file.

Installation instructions for the binary:
1) Unzip the file
2) As root, copy AppleAC97Audio.kext to /System/Library/Extensions
3) Open a root terminal
4) Run kextcache -k /System/Library/Extensions
5) Run kextcache -a i386 -z -m /System/Library/Extensions.mkext /System/Library/Extensions
6) Reboot

Installation instructions for the project (XCode required):
1) Unzip the file
2) Open the project file in the extracted folder
3) Make sure the target is set to AppleAC97Audio
4) Select Build->Clean All, and confirm any dialogs that appear
5) Select Build->Build
6) The compiled kext can be found in <folder>/build/Development

EDIT: I discovered, using Audacity, that capture does work after a fashion. I set it to record in 48K stereo, and discovered that the left channel is empty noise and the right channel is real data. I now know that it is capturing real data, now to figure out how to get it to Just Work ™...

Attached Files



#647
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
*bump* I see people are downloading this, do I get any feedback?

#648
philtr

philtr

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 posts
Just installing the binary didn't work for me. Trying to build from source. Will update.

UPDATE: The driver built from source didn't work for me either. But seeing as how the driver that came installed with the JaS 10.4.8 DVD works as good as this one does (it might even BE this one--I don't know), I think I'm going to stick with that.

Also, I tried your Audacity trick for input, and it works great! It would be nice if there was a way to swap the channels in the system settings somehow... :|

And I'm not really sure if my hardware situation is even what these drivers are for. I have an HP Pavillion dv5217cl

#649
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Thanks for the feedback - I've always had problems with people installing my code. Could you define what you mean by "didn't work", perchance?

Also, I know that this driver is distributed at least with the Tubgirl DVD. I'm not sure about any others. However, that was with non-working input controls, so I dunno.

#650
Unkwntech

Unkwntech

    InsanelyMac Protégé

  • Members
  • PipPip
  • 50 posts
  • Gender:Male
I just finished downloading the kext... i'm gonna reboot into OS X and give it a try if there is anything (like logs) that could help please let me know and I will do my best.

UPDATE: Well if failed... I actually lost my output devices... Grrr. I backed-up my old one so i'm up and running fine now. Once again if you would like any logs or the such just say so...

Edited by Unkwntech, 19 May 2007 - 08:23 AM.


#651
chrs2021

chrs2021

    InsanelyMac Protégé

  • Members
  • PipPip
  • 69 posts
Dope long time man... multi channel doesn't work in the 6ch configuration if you would like to work on it some more pm me i will glady be a testbed for your driver... considering how we got the sound to work i think we can get this to work as well even though i do i have a slight system change (new processor) it shouldn't effect the sound. so yeah lets get this going again like old times

#652
nenad5

nenad5

    InsanelyMac Protégé

  • Members
  • Pip
  • 38 posts
Hi,

I have my sound card recognised correctly both with Beta drivers and even with original 10.4.8 drivers. Problem is that i can not get any sound from it. Speakers plugged in the green output from the sound card. (I have only blue, green and red outputs from the soundcard).That is on my HP machine.
One thing that I have noticed on my other machine Dell Dimension 8400 (Fully working hackintosh) that Intel AC 97 ICH6 sound card (works 100%) but i get sound only if I plug speakers in the black output on the sound card. The green jack does not give any sound as it should.
My question is if sound (output) from ATIIXP AC97 is wrongly directed as it seems to be in the case with Dell dimension.

Regards Nenad

P.S I have tried to play with all possible settings that You recommended but without any success.

#653
Beatrice

Beatrice

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts

*bump* I see people are downloading this, do I get any feedback?


It didn't work for me. System Profiler says "No Built-in Audio." Volume slider appears as well as Line Out in the Sound application. I just don't get any sound out of any of the jacks. The driver linked in post #532 by Mohd Yusuf did work, sound comes out of the jack. System Profiler still says no built-in audio but the sound works!

Motherboard is an ECS RS400-A, audio is Realtek ALC655 with ATI SB400 South Bridge.

#654
chrs2021

chrs2021

    InsanelyMac Protégé

  • Members
  • PipPip
  • 69 posts

It didn't work for me. System Profiler says "No Built-in Audio." Volume slider appears as well as Line Out in the Sound application. I just don't get any sound out of any of the jacks. The driver linked in post #532 by Mohd Yusuf did work, sound comes out of the jack. System Profiler still says no built-in audio but the sound works!

Motherboard is an ECS RS400-A, audio is Realtek ALC655 with ATI SB400 South Bridge.



The reason it says ytou don't have built in audio is the fact you don't own an official mac. Only official macs report built in audio.

#655
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
For those whose sound doesn't work, please attach your dmesg output. After a fresh boot, run the following in a Terminal window:
sudo dmesg > dmesg.txt
then attach dmesg.txt to your post.

chrs, if you could do the same for me, that would help a lot.

#656
Beatrice

Beatrice

    InsanelyMac Protégé

  • Members
  • Pip
  • 21 posts
Here's a dmesg.txt attachment, produced with thedopefishlives driver installed, checked all the ports for audio, nothing there. Tried playing an audio CD, Quicktime movies, youtube, and system sounds. Nothing. The other audio driver I mentioned in a previous post does work, just some of the controls are grayed out. But all audio works for the earlier driver.

the second dmesg.txt is for the earlier AppleAC97Audio.kext that works.

Attached Files



#657
chrs2021

chrs2021

    InsanelyMac Protégé

  • Members
  • PipPip
  • 69 posts
hey, dopefish here are my logs i did some different stuff in apple's midi utility i changed the channels from 2 to four but i am still getting that kp when i switch to 6 channels, i also did the channel test i tests the working channels (front) and the non working (rear)


Attached File  chrs2021_logs.zip   1.6KB   34 downloads

#658
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
I'm afraid these logs don't tell me anything... Anyone know how to increase the size of the dmesg output to include every message since the kernel booted?

#659
chrs2021

chrs2021

    InsanelyMac Protégé

  • Members
  • PipPip
  • 69 posts
if you want i can go in to the console and grab the init process on my end for you....

#660
thedopefishlives

thedopefishlives

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 205 posts
Basically, what I need is a complete log from the time the kernel boots until the user gets dumped into the graphical environment. What I'm looking for, specifically, is a _complete_ trace of the driver's debug output; the logs that you guys uploaded are chopped. I'm not sure how to get that, though.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

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