Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Realtek ALC256 Layout-ID 48/49 for Asus X515JF-EJ012 #930

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nikich768
Copy link

@nikich768 nikich768 commented Jan 10, 2025

Layout-ID 48:
Features:

  1. Automatic switching between Internal Speakers/Headphones and Internal Microphone/Line-In(headset).
  2. Works after reboot from Windows with Realtek drivers installed.
  3. Fixed amplifier loud pops on HP jack, when turned on/off.
  4. Changed idle timeout to 5000ms(~7s actually) when input or output is not in use.

DSPs:
Internal Speaker: custom DSP from Layout-ID 16 without EQ and 2.1 crossover, only DspVirtualization, DspMultiBandCompressor, DspLimiter and DspLoudness.
Internal Microphone/Line-In: only DspNoiseReduction from Layout-ID 5.

Problem: sometimes HP amp still makes slight pops when turned on, but at least I don’t get scared every time I start play something.

Layout-ID 49:
Features:
1.1. Implements full functionality of Combo-jack in this laptop.
1.2. Headset pins and L/R pins on the jack can be used as input at the same time, so entire jack can function as a 3 mono inputs or 1 mono and 1 stereo.
2. Manual switching between Internal Speakers/Headphones.
3. Second and third feature in Layout-ID 48.

DSPs: none.

Problem: since two ADCs already in use, internal mic is unavailable. ADC at node 7 can’t be used because it only has paths 7->36->18/19 which this laptop does not use, and node of internal mic is 27; Problem from Layout-ID 48.

Note: for properly working second Line-In on node 26, 0x21 0x707 0x00 needs to be executed through alc-verb, not needed when using as a loop-back.

Overall typical problem:

  1. Needs a helper like ComboJack or ALCPlugFix-Swift(which doesn’t work for some reasons, or I doing something wrong). For myself, I forked another fork of original ComboJack.
  2. After sleep, audio can randomly disappear. After some experiments, I found that it is related to 0x01 "AFG Function" node, and if always check that it is in D0, the problem disappears. Implemented this function in my fork, maybe not very optimized, but if it works, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant