From 0d7d9691a7634f25a9e4d1e32905d038cbf9bf53 Mon Sep 17 00:00:00 2001 From: Gerald Pinder <4626052+gmpinder@users.noreply.github.com> Date: Thu, 15 Jun 2023 14:02:56 -0400 Subject: [PATCH] Setup desktop audio to allow headphones and speakers to play at the same time --- recipe-desktop.yml | 3 ++- scripts/setup-desktop-audio.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 scripts/setup-desktop-audio.sh diff --git a/recipe-desktop.yml b/recipe-desktop.yml index dea81c8..1837476 100644 --- a/recipe-desktop.yml +++ b/recipe-desktop.yml @@ -7,6 +7,7 @@ scripts: - autorun.sh post: - autorun.sh + - setup-desktop-audio.sh rpm: # A list of urls of ".repo" files that should be added to your system. # This is the proper way to add custom COPR repos to your image. @@ -27,7 +28,7 @@ rpm: - neofetch - docker - virt-manager - - alsa-tools + # - alsa-tools remove: # Remove the native firefox (from Fedora) in favor of the Flatpak. - firefox diff --git a/scripts/setup-desktop-audio.sh b/scripts/setup-desktop-audio.sh new file mode 100644 index 0000000..d983a84 --- /dev/null +++ b/scripts/setup-desktop-audio.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash +set -euo pipefail + +echo "# This file was added by the program 'hda-jack-retask'. +# If you want to revert the changes made by this program, you can simply erase this file and reboot your computer. +options snd-hda-intel patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw" > /etc/modprobe.d/hda-jack-retask.conf + +echo "[codec] +0x10ec0b00 0x10438797 0 + +[pincfg] +0x11 0x411111f0 +0x14 0x01014010 +0x15 0x01011012 +0x16 0x01016011 +0x17 0x40170000 +0x18 0x01a19050 +0x19 0x02a19060 +0x1a 0x0181305f +0x1b 0x01014010 +0x1e 0x01456140" > /lib/firmware/hda-jack-retask.fw \ No newline at end of file