From 950f2ff69d7752e591e246112cde997f15adf037 Mon Sep 17 00:00:00 2001 From: coolneng Date: Tue, 29 Mar 2022 12:43:45 +0200 Subject: [PATCH] Enable internal mic when headphones are plugged in --- configuration.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/configuration.nix b/configuration.nix index c45f1cc..049e169 100644 --- a/configuration.nix +++ b/configuration.nix @@ -100,6 +100,28 @@ with pkgs; identityPaths = [ "/etc/ssh/id_ed25519" ]; }; + # Enable internal microphone when headphones are plugged in + hardware.firmware = [ + (writeTextDir "/lib/firmware/hda-jack-retask.fw" '' + [codec] + 0x10ec0293 0x17aa2233 0 + + [pincfg] + 0x12 0x90a60130 + 0x13 0x40000000 + 0x14 0x90170110 + 0x15 0x03211040 + 0x16 0x21211010 + 0x18 0x411111f0 + 0x19 0x21a11010 + 0x1a 0x40f000f0 + 0x1b 0x411111f0 + 0x1d 0x40738105 + 0x1e 0x411111f0 + '') + ]; + boot.extraModprobeConfig = "options snd-hda-intel patch=hda-jack-retask.fw"; + # Import other configuration modules imports = [ ./modules/hardware-configuration.nix