Jump to content

Creative CA0132 (G1.Sniper M3) patch for AppleHDA or VoodooHDA


wern apfel
 Share

801 posts in this topic

Recommended Posts

17 hours ago, Muteb said:

Hey @wern apfel any update?

Not too much time right now. I don't have a Z card, but the Recon 3D with the same controller. So if you hear over the speakers when you speak into the microphone, the CA0132 works and the CA0113 is the issue. I'ill upload an SSDT later, please give me the ACPI path from the card.

Link to comment
Share on other sites

7 hours ago, wern apfel said:

Not too much time right now. I don't have a Z card, but the Recon 3D with the same controller. So if you hear over the speakers when you speak into the microphone, the CA0132 works and the CA0113 is the issue. I'ill upload an SSDT later, please give me the ACPI path from the card.

Hey @wern apfel , The ACPI path is :IOACPIPlane:/_SB/PCI0@0/RP14@1d0005/PXSX@0

No i do not hear any thing in the form the speakers for the card, but i do hear form the speaker of my monitor.

the microphone works fine.  

Edited by Muteb
Link to comment
Share on other sites

  • 3 weeks later...

After dumping the verbs and region writes from the Windows driver and adding them to VoodooHDA, it still doesn't work. But when I add it to AudioDXE, it works, so the issue seems to be VoodooHDA.

My guess is a DMA position issue. 

Link to comment
Share on other sites

On 3/13/2020 at 2:58 PM, wern apfel said:

After dumping the verbs and region writes from the Windows driver and adding them to VoodooHDA, it still doesn't work. But when I add it to AudioDXE, it works, so the issue seems to be VoodooHDA.

My guess is a DMA position issue. 

Okay, if you can sand a sample to test it if works in my card it would be better, also I looked for AudioDXE there isn’t any documents for who it’s working or how to add hda verb codes.

Link to comment
Share on other sites

23 hours ago, Muteb said:

Okay, if you can sand a sample to test it if works in my card it would be better, also I looked for AudioDXE there isn’t any documents for who it’s working or how to add hda verb codes.

Here is VoodooHDA, try it 1st without the SSDT and make a dump (getdump) and then with the SSDT, with the SSDT you should see the config space in the registry (IORegistryExplorer)

 

VoodooHDA.kext.zip

SSDT-EXT_HDA_PCIE.aml.zip

Edited by wern apfel
Link to comment
Share on other sites

9 hours ago, wern apfel said:

Here is VoodooHDA, try it 1st without the SSDT and make a dump (getdump) and then with the SSDT, with the SSDT you should see the config space in the registry (IORegistryExplorer)

 

VoodooHDA.kext.zip

SSDT-EXT_HDA_PCIE.aml.zip

here is the two dumps you ask for , also I did not  understand what do you mean about config space in the registry (IORegistryExplorer).

dump-1.rtf

dump-2.rtf

Just now, Muteb said:

here is the two dumps you ask for , also I did not  understand what do you mean about config space in the registry (IORegistryExplorer).

dump-1.rtf

dump-2.rtf

but I did also dump (IORegistryExplorer) for you may be it can help you.

DarkZoro’s iMac.zip

Link to comment
Share on other sites

1 hour ago, wern apfel said:

PCI configuration space 

Oh, I forgot to remove PXSX. Try the new SSDT.

According to the dump, the streams are configured correctly. 

 

SSDT-EXT_HDA_PCIE.aml.zip

By the way there something wired, I cannot see the headphone jack in sound preferences but it’s present in the (IORegistryExplorer) , I will try the new SSDT tomorrow.

Link to comment
Share on other sites

8 hours ago, Muteb said:

By the way there something wired, I cannot see the headphone jack in sound preferences but it’s present in the (IORegistryExplorer) , I will try the new SSDT tomorrow.

I did try it still no out put but the microphone there something wired about it when it try to grab it shock me with electric .

I do not why . 

also I checked the VoodooHDA info.plist there is not any node to patch , you can correct me if I am wrong about it .

Link to comment
Share on other sites

On 3/19/2020 at 5:23 AM, Muteb said:

I did try it still no out put but the microphone there something wired about it when it try to grab it shock me with electric .

It could be because VoodooHDA always sets the reference voltage to 100%, but should be 80%. Try this, it doen't change anything on the outputs, it just sets the microphone VREF to 80%.

On 3/19/2020 at 5:23 AM, Muteb said:

also I checked the VoodooHDA info.plist there is not any node to patch , you can correct me if I am wrong about it .

I'm not sure what you mean, you can change the nodes from the plist. Do you need a 5.1 channel device? If so, I can change it for you, but it still won't work.

 

You can also try AudioDXE, it should work in the Clover menu.

VoodooHDA.kext.zip

AudioDxe.efi.zip

Link to comment
Share on other sites

7 hours ago, wern apfel said:

It could be because VoodooHDA always sets the reference voltage to 100%, but should be 80%. Try this, it doen't change anything on the outputs, it just sets the microphone VREF to 80%.

I'm not sure what you mean, you can change the nodes from the plist. Do you need a 5.1 channel device? If so, I can change it for you, but it still won't work.

 

You can also try AudioDXE, it should work in the Clover menu.

VoodooHDA.kext.zip

AudioDxe.efi.zip

thanks for your reply  , still no out put and I did try AudioDXE in the Clover menu but when I try it the pc Strat to freeze and not responding .

Link to comment
Share on other sites

16 hours ago, Muteb said:

thanks for your reply  , still no out put and I did try AudioDXE in the Clover menu but when I try it the pc Strat to freeze and not responding .

At that point, the SSDT is not yet loaded. If you want, you can try RU.EFI. Select the audio card, change the two values. 30 to 40, 40 to C9 and try again.

CA0132_CSpace.png

  • Like 1
Link to comment
Share on other sites

10 hours ago, wern apfel said:

At that point, the SSDT is not yet loaded. If you want, you can try RU.EFI. Select the audio card, change the two values. 30 to 40, 40 to C9 and try again.

CA0132_CSpace.png

okay I did try it but still no out put , also i have different values check the screen shot that I got.

 

 

 

20200323004856.png

Edited by Muteb
Link to comment
Share on other sites

On 3/23/2020 at 2:05 AM, Muteb said:

okay I did try it but still no out put , also i have different values check the screen shot that I got.

 

 

 

20200323004856.png

The other values don't matter. At offset 0x80 is ASPM, RCB. If enabled, it does not freeze. 

Link to comment
Share on other sites

10 hours ago, wern apfel said:

The other values don't matter. At offset 0x80 is ASPM, RCB. If enabled, it does not freeze. 

okay now it does not freeze but still no out put , also I want to know if you have the card and if it working ?

and did you install the driver in windows or did you have to run linux first ?

also I am in Mojave 10.14.6 and I deleted AppleHDA and repair kextcache and install the driver in windows.

and does the PCI-E slot matter ? 

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
On 3/26/2020 at 5:16 AM, Muteb said:

okay now it does not freeze but still no out put , also I want to know if you have the card and if it working ?

and did you install the driver in windows or did you have to run linux first ?

I'm sorry for the delay, I replaced the mainboard and did't reinstall the PCIe card, but will do it again.

It is the Recon3D PCIe. It doesn't work on macOS, only with AudioDXE. You don't have to run Linux or Windows.

 

On 3/26/2020 at 5:16 AM, Muteb said:

also I am in Mojave 10.14.6 and I deleted AppleHDA and repair kextcache and install the driver in windows.

and does the PCI-E slot matter ? 

AppleHDA does not have to be deleted. The PCIe slot only matters if you are using the SSDT.

 

Since it also works with the edited Linux generic driver, VoodooHDA seems to have issues recognizing the card.

  • Like 1
  • Thanks 1
Link to comment
Share on other sites

@wern apfel thanks a lot for your work! I've tested your PR https://github.com/acidanthera/AppleALC/pull/566 on a GA-Z170X-Gaming 7 using layout 4 (I don't have DSDT and SSDT that I know of) and with the switcher tools linked in the first post I got mic/speakers/headphones working great!
The only issue so far is the microphone levels, the other people barely hear me, just to show the difference I've used a tool like https://online-voice-recorder.com to see the audio levels and with an 8$ usb audio I get normal levels

 

1197677584_ScreenShot2020-06-10at2_55_58PM.png.90915f76802029a1890d78de660a5bd8.png

 

with the rear microphone input I get instead much lower levels

 

1360573155_ScreenShot2020-06-10at2_56_14PM.thumb.png.5860a561a8444344dfd85b06dd2ef4de.png

 

I've tried on windows and the microphone input is very loud (probably also due the fact that it adds some amplification to it).

Is there anything that can be done for this issue?

 

(I can't use the USB audio card because many times there's some lagging and other issues)

 

Update: Forgot to mention that I have CC in the clover folder

 

Edited by 4l3x88
  • Thanks 1
Link to comment
Share on other sites

9 hours ago, 4l3x88 said:

@wern apfel thanks a lot for your work! I've tested your PR https://github.com/acidanthera/AppleALC/pull/566 on a GA-Z170X-Gaming 7 using layout 4 (I don't have DSDT and SSDT that I know of) and with the switcher tools linked in the first post I got mic/speakers/headphones working great!
The only issue so far is the microphone levels, the other people barely hear me, just to show the difference I've used a tool like https://online-voice-recorder.com to see the audio levels and with an 8$ usb audio I get normal levels

 

1197677584_ScreenShot2020-06-10at2_55_58PM.png.90915f76802029a1890d78de660a5bd8.png

 

with the rear microphone input I get instead much lower levels

 

1360573155_ScreenShot2020-06-10at2_56_14PM.thumb.png.5860a561a8444344dfd85b06dd2ef4de.png

 

I've tried on windows and the microphone input is very loud (probably also due the fact that it adds some amplification to it).

Is there anything that can be done for this issue?

 

(I can't use the USB audio card because many times there's some lagging and other issues)

 

Update: Forgot to mention that I have CC in the clover folder

 

Thanks for testing. Here is an applet for changing the microphone gain. More levels are possible.

Microphone-Gain.zip

Link to comment
Share on other sites

16 minutes ago, wern apfel said:

Thanks for testing. Here is an applet for changing the microphone gain. More levels are possible.

Microphone-Gain.zip

 

Thanks a lot that works!

Just out of curiosity, this tools and those to switch audio output/input from the original post are open source? Do they just send a custom command to the audio card?

I was thinking in checking those out to change the default one to the headphones and other things.

Link to comment
Share on other sites

2 hours ago, 4l3x88 said:

 

Thanks a lot that works!

Just out of curiosity, this tools and those to switch audio output/input from the original post are open source? Do they just send a custom command to the audio card?

I created the tool at a time when I had less experience with this codec. The plan is for all tools to be rewritten and published on GitHub, but all need time that I don't have.

And yes, the tools send commands to the codec.

3 hours ago, 4l3x88 said:

I was thinking in checking those out to change the default one to the headphones and other things.

What exactly do you want to achieve ? You can try layout 2, where I changed the behaviour of the rear headphone jack and don't need any tools. The front HP can be selected via the sound panel.

Link to comment
Share on other sites

20 minutes ago, wern apfel said:

I created the tool at a time when I had less experience with this codec. The plan is for all tools to be rewritten and published on GitHub, but all need time that I don't have.

And yes, the tools send commands to the codec.

What exactly do you want to achieve ? You can try layout 2, where I changed the behaviour of the rear headphone jack and don't need any tools. The front HP can be selected via the sound panel.

Oh so that's what codec commander is for? Do you mind sharing just the custom commands?

What I wanted to do is, since I start the jack selector at boot, to start with headphone selected and not speakers.

Link to comment
Share on other sites

18 minutes ago, 4l3x88 said:

Oh so that's what codec commander is for? Do you mind sharing just the custom commands?

What I wanted to do is, since I start the jack selector at boot, to start with headphone selected and not speakers.

If you don't need a multichannel, layout 2 should do it for the rear HPs when connected, I'm not sure if the front HP's are still selected after a restart.

You should also use the Switcher from the attachment for the forked AppleALC. 

R3DiSwitcher.zip

Link to comment
Share on other sites

9 hours ago, wern apfel said:

If you don't need a multichannel, layout 2 should do it for the rear HPs when connected, I'm not sure if the front HP's are still selected after a restart.

You should also use the Switcher from the attachment for the forked AppleALC. 

R3DiSwitcher.zip

Yes that's the one I'm using (dowloaded from the first post). I'll keep it as it is for now as it's working great and I'll wait for the open source version to play with it, very interesting!

Thanks again for your work!

Link to comment
Share on other sites

On 6/11/2020 at 11:39 PM, 4l3x88 said:

Yes that's the one I'm using (dowloaded from the first post). I'll keep it as it is for now as it's working great and I'll wait for the open source version to play with it, very interesting!

Thanks again for your work!

The code doesn't contain any comments at the moment, so it's probably not really useful for testing. If you tell me which HP should be enabled by default, I give you the commands. In general, you need to run more than one command to do this.

Link to comment
Share on other sites

22 hours ago, wern apfel said:

The code doesn't contain any comments at the moment, so it's probably not really useful for testing. If you tell me which HP should be enabled by default, I give you the commands. In general, you need to run more than one command to do this.

 

I always turn on rear Headphones and mid microphone gain, thank you!

Edited by 4l3x88
Link to comment
Share on other sites

 Share

×
×
  • Create New...