From 8d963480f6e8f3e08ec914a6a0415e73f12246ef Mon Sep 17 00:00:00 2001 From: badbl0cks <4161747+badbl0cks@users.noreply.github.com> Date: Tue, 29 Apr 2025 16:13:04 -0700 Subject: [PATCH] Add pin_overrides for sound card via modprobe.d and /lib/firmware to use additional inputs as surround sound outputs instead --- files/system/etc/.gitkeep | 1 - files/system/etc/modprobe.d/hda-jack-retask.conf | 1 + files/system/lib/firmware/hda-jack-retask.fw | 14 ++++++++++++++ files/system/usr/.gitkeep | 0 recipes/recipe.yml | 8 ++++++-- 5 files changed, 21 insertions(+), 3 deletions(-) delete mode 100644 files/system/etc/.gitkeep create mode 100644 files/system/etc/modprobe.d/hda-jack-retask.conf create mode 100644 files/system/lib/firmware/hda-jack-retask.fw delete mode 100644 files/system/usr/.gitkeep diff --git a/files/system/etc/.gitkeep b/files/system/etc/.gitkeep deleted file mode 100644 index 8b13789..0000000 --- a/files/system/etc/.gitkeep +++ /dev/null @@ -1 +0,0 @@ - diff --git a/files/system/etc/modprobe.d/hda-jack-retask.conf b/files/system/etc/modprobe.d/hda-jack-retask.conf new file mode 100644 index 0000000..619cb2c --- /dev/null +++ b/files/system/etc/modprobe.d/hda-jack-retask.conf @@ -0,0 +1 @@ +options snd-hda-intel patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw diff --git a/files/system/lib/firmware/hda-jack-retask.fw b/files/system/lib/firmware/hda-jack-retask.fw new file mode 100644 index 0000000..c2ab6d6 --- /dev/null +++ b/files/system/lib/firmware/hda-jack-retask.fw @@ -0,0 +1,14 @@ +[codec] +0x10ec0b00 0x18491204 0 + +[pincfg] +0x11 0x40000000 +0x14 0x01014010 +0x15 0x411111f0 +0x16 0x411111f0 +0x17 0x411111f0 +0x18 0x01014011 +0x19 0x02a19040 +0x1a 0x01014012 +0x1b 0x02214020 +0x1e 0x411111f0 diff --git a/files/system/usr/.gitkeep b/files/system/usr/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/recipes/recipe.yml b/recipes/recipe.yml index ab3ff1b..935d7c3 100644 --- a/recipes/recipe.yml +++ b/recipes/recipe.yml @@ -14,8 +14,12 @@ modules: - download_install_rpms.sh - type: files files: - - source: system - destination: / + - source: system/lib/firmware/ + destination: /lib/firmware/ + - type: files + files: + - source: system/etc/modprobe.d/ + destination: /etc/modprobe.d/ - type: rpm-ostree repos: - https://packages.microsoft.com/yumrepos/vscode/config.repo