wern apfel Posted June 20, 2020 Author Share Posted June 20, 2020 On 6/15/2020 at 8:18 AM, 4l3x88 said: I always turn on rear Headphones and mid microphone gain, thank you! The microphone gain can be changed by this commands: Address: 0x0018b098 Data: 0x000000XX left channel Address: 0x0018b09c Data: 0x000000XX right channel Where xx is the value that needs to be changed. If you copy hda-verb to /usr/local/bin, this command sequence changes the MIC gain. For the left channel: hda-verb 0x15 0x0b0 0x98 hda-verb 0x15 0x100 0x18 hda-verb 0x15 0x300 0xXX hda-verb 0x15 0x400 0x00 For the right channel: hda-verb 0x15 0x0b0 0x9c hda-verb 0x15 0x100 0x18 hda-verb 0x15 0x300 0xXX hda-verb 0x15 0x400 0x00 I don't use a microphone. Is the "mid" value the same as on Windows, is it OK? If so, I can add the values to CodecCommander Have you tried layout 2? does it not work as expected? Link to comment Share on other sites More sharing options...
4l3x88 Posted June 23, 2020 Share Posted June 23, 2020 On 6/20/2020 at 3:17 AM, wern apfel said: The microphone gain can be changed by this commands: Address: 0x0018b098 Data: 0x000000XX left channel Address: 0x0018b09c Data: 0x000000XX right channel Where xx is the value that needs to be changed. If you copy hda-verb to /usr/local/bin, this command sequence changes the MIC gain. For the left channel: hda-verb 0x15 0x0b0 0x98 hda-verb 0x15 0x100 0x18 hda-verb 0x15 0x300 0xXX hda-verb 0x15 0x400 0x00 For the right channel: hda-verb 0x15 0x0b0 0x9c hda-verb 0x15 0x100 0x18 hda-verb 0x15 0x300 0xXX hda-verb 0x15 0x400 0x00 I don't use a microphone. Is the "mid" value the same as on Windows, is it OK? If so, I can add the values to CodecCommander Have you tried layout 2? does it not work as expected? The mid value yes it's the same as on Windows for me, high doesn't change too much compared to mid and has some background noise sometimes. Regarding layout 2, I did try it in the past but without using the audio switcher tool. without it the rear headphone was detected as an audio output but there was no sound. Link to comment Share on other sites More sharing options...
4l3x88 Posted June 25, 2020 Share Posted June 25, 2020 On 6/20/2020 at 3:17 AM, wern apfel said: Have you tried layout 2? does it not work as expected? I just tried layout 2 and I see no difference from 4 (I've only tested rear microphone/speakers/headphones). I gave it a try because after restarting from windows with audio muted there was no audio on mac. Link to comment Share on other sites More sharing options...
wern apfel Posted June 27, 2020 Author Share Posted June 27, 2020 On 6/24/2020 at 12:32 AM, 4l3x88 said: The mid value yes it's the same as on Windows for me, high doesn't change too much compared to mid and has some background noise sometimes. I think the max values are miscalculated. On 6/25/2020 at 7:38 AM, 4l3x88 said: I just tried layout 2 and I see no difference from 4 (I've only tested rear microphone/speakers/headphones). You should see Internal Speakers instead LineOut. I don't know where you set the layout ID. Add alcid=2 as a boot argument, it will be overwritten. On 6/25/2020 at 7:38 AM, 4l3x88 said: I gave it a try because after restarting from windows with audio muted there was no audio on mac. I don't use Windows. If not already done, copy hda-verb to /usr/local/bin and show me the output of the script after restarting Windows. R3Di_params.sh.zip Link to comment Share on other sites More sharing options...
4l3x88 Posted July 18, 2020 Share Posted July 18, 2020 On 6/27/2020 at 9:34 AM, wern apfel said: I don't use Windows. If not already done, copy hda-verb to /usr/local/bin and show me the output of the script after restarting Windows. The mute thing doesn't happen every time, right now it happened and this is the output: Channel StreamID: DAC 1 = 10 DAC 2 = 00 DAC 3 = 00 S/PDIF = 40 ADC 1 = 10 ADC 2 = 00 Pin Control: Speakers = 00 C/Sub,FHP = c0 Rears = 44 Headphone = c0 Digital = 40 Microphone = 24 GPIO: Find GPIOs = 00 Num GPIOs = 00 Direction = 1e Enable = 1f Data = 10 Extensions: Status = 00 Param 0xD = 21 latest ID = 0d last Value = 21 Stream 0x14: Source = 48 Destination = 70 Enable = 01 Stream 0x15: Source = 49 Destination = 71 Enable = 00 Stream 0x16: Source = 4a Destination = 72 Enable = 00 Flags: Value = 01d31fdd Link to comment Share on other sites More sharing options...
wern apfel Posted August 22, 2020 Author Share Posted August 22, 2020 On 7/18/2020 at 10:09 PM, 4l3x88 said: The mute thing doesn't happen every time, right now it happened and this is the output: Channel StreamID: DAC 1 = 10 DAC 2 = 00 DAC 3 = 00 S/PDIF = 40 ADC 1 = 10 ADC 2 = 00 Pin Control: Speakers = 00 C/Sub,FHP = c0 Rears = 44 Headphone = c0 Digital = 40 Microphone = 24 GPIO: Find GPIOs = 00 Num GPIOs = 00 Direction = 1e Enable = 1f Data = 10 Extensions: Status = 00 Param 0xD = 21 latest ID = 0d last Value = 21 Stream 0x14: Source = 48 Destination = 70 Enable = 01 Stream 0x15: Source = 49 Destination = 71 Enable = 00 Stream 0x16: Source = 4a Destination = 72 Enable = 00 Flags: Value = 01d31fdd It appears you've already used the Switcher. The values should be different after Windows was started. Regarding the HPs that should be enabled by default, you can use the Switcher from the attachment, which can be added to Startup Items. R3DiSwitcher.zip 1 Link to comment Share on other sites More sharing options...
4l3x88 Posted August 25, 2020 Share Posted August 25, 2020 (edited) On 8/22/2020 at 6:06 AM, wern apfel said: It appears you've already used the Switcher. The values should be different after Windows was started. Regarding the HPs that should be enabled by default, you can use the Switcher from the attachment, which can be added to Startup Items. R3DiSwitcher.zip Thank you!! Btw right now I'm just using custom hda-verb commands for that too as I was able to get the arguments myself Edited August 25, 2020 by 4l3x88 Link to comment Share on other sites More sharing options...
wern apfel Posted August 27, 2020 Author Share Posted August 27, 2020 (edited) On 8/25/2020 at 5:55 PM, 4l3x88 said: Thank you!! Btw right now I'm just using custom hda-verb commands for that too as I was able to get the arguments myself You can run the script before and after using the Switcher to see what values are changed. Then make the changes in the CodecCommnder plist so that you have configured it according to your requirements. You can also compare the values after losing audio while Windows was previously loaded. Edited August 27, 2020 by wern apfel Link to comment Share on other sites More sharing options...
4l3x88 Posted August 31, 2020 Share Posted August 31, 2020 (edited) On 8/27/2020 at 1:19 PM, wern apfel said: You can run the script before and after using the Switcher to see what values are changed. Then make the changes in the CodecCommnder plist so that you have configured it according to your requirements. You can also compare the values after losing audio while Windows was previously loaded. Oh nice! Good to know! Edited August 31, 2020 by 4l3x88 Link to comment Share on other sites More sharing options...
wern apfel Posted February 26, 2021 Author Share Posted February 26, 2021 On 2/23/2021 at 10:55 AM, MikeSantos said: Hi, I have seen you are using the same motherboard than me. How can I set the 5.1 multichannel outputs in macos audio devices? For 5.1 change the layout-id to 4 Link to comment Share on other sites More sharing options...
wern apfel Posted March 3, 2021 Author Share Posted March 3, 2021 3 hours ago, MikeSantos said: Thanks for answer.... I have tried with many ids but in my case didn't work because I lost sound. As you can see, I got the multichannel outputs but without sound outputs. If you try different IDs it could mess up the values. Turn the Computer for a minute and then it should work again. If it still doesn't work, use this CodecCommander and the Switcher Applet from the attachment, where you can also have sound through all speakers while playing MP3s or simply stereo. R3DiSwitcher.zip Link to comment Share on other sites More sharing options...
wern apfel Posted March 4, 2021 Author Share Posted March 4, 2021 (edited) 5 hours ago, MikeSantos said: Thanks a lot for you help. I have downloaded you CodecCommander, but I think it is for Clover, isnt' it? I am using OpenCore. Where may I put the codecCommander? Sorry my knowledge are limited. CodecCommander is not only for Clover! I also use OpenCore. Copy CC to the Kexts folder and add a new entry to your config.plist, like on the screenshot. Spoiler Edited March 4, 2021 by wern apfel Link to comment Share on other sites More sharing options...
wern apfel Posted March 5, 2021 Author Share Posted March 5, 2021 20 hours ago, MikeSantos said: Hi, thanks for help I have followed you intructions and I got sound only after the Switcher was activated. But I only have headphone sound output. I lost HDMI sound and not multichannel sound too. I show the screen to check. Spoiler That's weird. Are you using the latest AppleALC? Which layout-id worked before? What is your subsystem-id? Spoiler Link to comment Share on other sites More sharing options...
wern apfel Posted March 6, 2021 Author Share Posted March 6, 2021 (edited) @MikeSantos Layout 4 should work with subsystem-id "0xa036". Are you sure that you use the right connectors? The speaker symbol on the back panel is confusing, it's the headphone jack. If it's properly connected, also try it after sleep, CodecCommander should restore the values. If it still doesn't work, copy hda-verb to /usr/local/bin run the script and show me the output. Spoiler Spoiler hda-verb.zip R3Di_params.sh.zip Edited March 7, 2021 by wern apfel 1 Link to comment Share on other sites More sharing options...
wern apfel Posted March 10, 2021 Author Share Posted March 10, 2021 On 3/8/2021 at 11:12 PM, MikeSantos said: -microphone does not works in any way Oh, didn't know that I configured the Mic differently. I'll check that. On 3/8/2021 at 11:12 PM, MikeSantos said: -HDMI works but It is necessary to select it. This is an AppleHDA feature that only works on devices configured as switchable. I think they calling it "Hog Mode" If you use it often I can make the 1st output as switchable like ID 1. What about the Mic level? Do you think it's to quiet? Link to comment Share on other sites More sharing options...
wern apfel Posted March 13, 2021 Author Share Posted March 13, 2021 On 3/12/2021 at 11:41 AM, MikeSantos said: Yes, the idea would be to have all multichannel outputs(5.1) with the characteristics of the layout_id=1. When disconnect HP sound output goes to HDMI. If that were possible. Ok, try this kext. But keep in mind it only works for rear headphones, the front HP jack shares the pin with C/Stub where we need more than only a change of the pin control. That's the reason why I built the Switcher. I wonder how many times you get up to plug the headphones in and off on the back of your computer? AppleALC.kext_1.5.9.zip Link to comment Share on other sites More sharing options...
wern apfel Posted April 25, 2021 Author Share Posted April 25, 2021 On 3/15/2021 at 12:24 PM, MikeSantos said: Thanks... I always use the rear HP plug, and it is because the front plug after Catalina I think stop working for me (even mic), and also I remember that it made much more noise anyway. Respecting the new AppleALC.kext it does not make any change respect the previous, no multichannel outputs, but still work HP to HDMI when plug out HP. I am thinking that my MB has something different :/ Thanks a lot Ok, try this one. Also you can try the script to see if pin sense is working for all ports. AppleALC.kext_1.6.0.zip pinsense.sh.zip 1 Link to comment Share on other sites More sharing options...
wern apfel Posted May 1, 2021 Author Share Posted May 1, 2021 If you use the ZxRi codec and have no sound after Windows was loaded before, use the attached Switcher. I also recommend to add it to the startup items. ZxRiSwitcher.zip Link to comment Share on other sites More sharing options...
wern apfel Posted May 5, 2021 Author Share Posted May 5, 2021 2 hours ago, MikeSantos said: Hi, thanks a lot. I would like to inform you that AppleALC.kext v.1.6 does not works for me. No audio recognition. I had tried when updated OpenCore I had to use the v.1.59 again. I do not know whats is wrong with v.1.6 but for me it does not work. Thanks for you help for people with our audio chip Do you use the latest Lilu? For the script to work, CodecCommander must be loaded and hda-verb at /usr/local/bin Link to comment Share on other sites More sharing options...
wern apfel Posted May 6, 2021 Author Share Posted May 6, 2021 20 hours ago, MikeSantos said: Other weird thing when I use you script(now works with Codecommander loaded) is that although the front HP is detected it does not have sound output(same with front mic) Do you mean no sound or no pinsense (with the script)? Does layout 4 not work like layout 1 HP/Speaker related? Link to comment Share on other sites More sharing options...
wern apfel Posted May 6, 2021 Author Share Posted May 6, 2021 2 hours ago, MikeSantos said: Hi, Yes pinsense is ok. But no sound although I can hear some noise of audio.(Much more than the normal HP noise) No, any louyout get sound from front connectors(front pc case) And with AppleALC.kext V. 1.6 no HDMI audio. That is very weird, ins't? Thanks a lot Try this CodecCommander CodecCommander.kext.zip Link to comment Share on other sites More sharing options...
wern apfel Posted May 7, 2021 Author Share Posted May 7, 2021 3 hours ago, MikeSantos said: Hi... No, I have tried with layout 1 and 4, but front connectors no sound, only a bit of noise :/ With layout 1 you can select the front HP in the Prefpane. With layout 4, select the first device and use the switcher, where both headphones should work at the same time. 3 hours ago, MikeSantos said: What do you think the problem of HDMI with the new AppleALC? Does it work with 1.5.9? according to this comment it was not working before 1.5.9 3 hours ago, MikeSantos said: My z170x gaming 7 seems to be a bit different because it has some issues with compatibilities..... I still own the Z170X gaming 7, I will try it tomorrow. Link to comment Share on other sites More sharing options...
wern apfel Posted May 8, 2021 Author Share Posted May 8, 2021 On 5/7/2021 at 8:44 PM, wern apfel said: I still own the Z170X gaming 7, I will try it tomorrow. I was wrong it's the Z270X gaming7 but the codec is the same. To See if pin sense works on each jack, disconnect them all and run the script, all jacks should output zero. Then connect one by on and see if the value changes to 80 Watch the video. Is it that what you mean? Screen Recording.mov Link to comment Share on other sites More sharing options...
wern apfel Posted May 10, 2021 Author Share Posted May 10, 2021 6 hours ago, MikeSantos said: Thanks a lot for you help... Well, I have done everything you said, all pin are ok, are detected and it is switchable HP/Rear Speakers like you video ( in you video show HP/HDMI I think because you do not have speakers plug in. Some time it change like you too) Also with the Switcher I can have front HP.(good...!!!) But what I lost with Id-layout 4 is Mic, both rear and front using the switch, no way to have signal and the pin senser show a value of 80.... :/ P.S: All this is done with AppleALC.kext V 1.59 because if I use V.1.6 I lose HDMI sound output. It is very weird what happen with AppleALC V.1.6, ins't? and with the Mic input. Thanks This is AppleALC 1.6 without that patch, try it. AppleALC.kext.zip Link to comment Share on other sites More sharing options...
wern apfel Posted May 13, 2021 Author Share Posted May 13, 2021 On 5/10/2021 at 11:11 PM, MikeSantos said: Also, the rear speakers have change to the second line. When I disconnect HP no sound from that line, I need to select de second line to get sound.( I checked the rear connectors panel) The switcher does not work well with headphones in switch mode, I'll try to correct that. On 5/10/2021 at 11:11 PM, MikeSantos said: Maybe the connectors can be redirected ..? and mic is broken with layout 4. The outputs can be redirected. So far I know, in a 5.1 system C/Sub is the last device? Is it that what you want to change? The microphone works on a Z270X G7, which I think has the same codec. Does the switcher affect the microphone. Are you sure that the front panel is HD and not AC97? Link to comment Share on other sites More sharing options...
Recommended Posts