Hello there,
To override the pins, I used a method similar to what hdajackretask does, which is to write a firmware patch, as shown below:
The second action, dac_fixup, is a two-step process, inferred from the actions.py subroutine:
(a). Create a /lib/firmware/clevo-audio-patch with the following entry:
[codec] 0x{vendor_id:08x} 0x{subsystem_id:08x} 0
[pincfg] 0x1b 0x01111060 0x19 0x23A11040
[verb] 0x1b 0x707 0x0004
(b). Create an /etc/modprobe.d/clevo-alsa-base.conf file with the following entries:
options snd-hda-intel patch=clevo-audio-patch
Then reboot the system. Confirm the successful override by grepping dmesg on boot:
dmesg | grep clevo
Here are my pin configs:
sudo cat /sys/devices/pci0000:00/0000:00:1f.3/sound/card0/hwC0D0/init_pin_configs
list:
0x11 0x4004d000 0x12 0x90a60140 0x14 0x90170110 0x15 0x411111f0 0x16 0x411111f0 0x17 0x01011050 0x18 0x01a11030 0x19 0x411111f0 0x1a 0x0181103f 0x1b 0x411111f0 0x1c 0x411111f0 0x1d 0x40350d29 0x1e 0x01441120 0x1f 0x411111f0
As at the moment, I'm running the latest kernel available to Ubuntu 16.04LTS.
On 17 January 2018 at 12:13, Takashi Iwai tiwai@suse.de wrote:
On Tue, 16 Jan 2018 23:33:06 +0100, Dennis Mungai wrote:
Cool, thanks!
Rewiring the pins via hdajack retask tool fixes the detection, but still no sound from the headphones jack is heard.
And what exactly did you change, i.e. which pin config has to be modified?
Only the temporary click off the audio jack when plugged in.
Did you try with the latest Linus kernel?
Takashi
On Jan 12, 2018 11:11, "Takashi Iwai" tiwai@suse.de wrote:
On Thu, 11 Jan 2018 19:21:03 +0100, Dennis Mungai wrote:
Hello there,
I have Ubuntu 16.04LTS installed on the Clevo P751DM2-G, also marketed as the Origin Eon 15-X (Late 2016 model), the System76's Serval WS (2017 model), the Eurocom Sky X4E2, among others.
The sound card is the Realtek ALC898 with the following output
configuration:
- One SPDIF/headphone combo jack (to the right)
- One Line Out.
- One Line-In.
- One Mic-In.
Background information:
On Windows, one can use the Realtek HD Audio control panel pop-up menu on jack detection to set the output type when an audio device is plugged in to an appropriate jack, combined with Sound Blaster X-Fi MB5 software to enable post-processing effects such as Bass, noise cancellation, etc.
What I have tried so far:
- Setting the model definition at /etc/modprobe.d/sound.conf with the
following entries:
options snd-hda-intel model=no-primary-hp enable=1 index=0
Using such a line worked before on an MSI GS43VR 6RE Phantom Pro that also has the same (or a similar) ESS Sabre Audio DAC component.
Expected behavior:
When plugged into the microphone jack, the ESS Sabre DAC should be activated and sound should be routed to the headset.
Observed anomaly:
Sound comes out through the speakers instead.
However, the line-out output works. In that case, when plugged into the line out, Audio works as expected.
Judging from alsa-info.sh output, BIOS doesn't seem to give the proper headphone pin (or the headset output), and that's the culprit. It's a bug of BIOS. You can try to figure out the pin and override the pin config via hdajackretask or such a tool.
Takashi