nixos-hardware icon indicating copy to clipboard operation
nixos-hardware copied to clipboard

What is a proper way to create ALSA device mode patch on NixOS?

Open Anton-Latukha opened this issue 5 years ago • 0 comments

Regularly, to bind hardware ID ports to proper devices, if there are no ALSA mode supported - there can be a patch supplied.


(unwrap) 1. Patch, for example, `/lib/firmware/asus-g752vt.fw`:

[codec]
0x10ec0668 0x10431ced 0

[pincfg]
#Pin 12 is Internal Mic
0x12 0x90a60160
#Pin 14 is Internal "front" speakers
0x14 0x90170110
#Pin 15 is "Line Out" according to the manual, But Pin 15 won't work
#Trying to use this as an output will have a constant tone too.
#Using this as an output breaks the front speakers working correctly with detection
0x15 0x40f000f0
#Pin 16 is the headphone jack.
0x16 0x0321403f
#Pin 18 is the external Microphone jack.
0x18 0x03a19020
#Pin 19 is nothing.
0x19 0x411111f0
#Pin 1a is the internal subwoofer.  (Set the sound system to Stereo 2.1)
0x1a 0x90170151
#Pin 1b is nothing.
0x1b 0x411111f0
#Pin 1d is nothing.
0x1d 0x40c6852d
#Pin 1e is the internal SPDIF out.
0x1e 0x014b1180
#Pin 1f is nothing.
0x1f 0x411111f0

  1. And then (/etc/modprobe.d/alsa-base.conf) sound.extraConfig =
options snd-hda-intel enable=1 index=0 enable_msi=1 model=asus-mode5 patch=asus-g752vt.fw

When I would get the setup working - I would submit it here.

But I do not know how to properly supply a patch, so I am asking in the best place possible - here.

Anton-Latukha avatar Mar 19 '20 16:03 Anton-Latukha