Skip to content

Releases: cb-linux/breath-resources

πŸ“¦ Package Rebuild - Update README

20 Jul 15:56
0f6472a
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/README.md b/README.md
index 136f222..5f98227 100644
--- a/README.md
+++ b/README.md
@@ -16,5 +16,5 @@ Distro-specific packages to port the userspace functionality of Breath to other
 ## breath-skylake
 - `etc/modprobe.d/snd-hda-intel.conf`: `snd_hda_intel` conflicts with `snd_soc_skl`
 - `lib/firmware/`: Firmware files - some unnecessary, such as `iwlwifi` files
-- `usr/share/alsa/ucm2/kblda7219max/`: UCM Files modified to use standard UCM commands. Differences are minimal but allow for jack switching in Pipewire and Wireplumber.
-- `usr/share/wireplumber/main.lua.d/50-breath-config.lua`: Make Wireplumber use automatically Alsa Card Profile and make audio format S16_LE to prevent bad select by Pipewire.
\ No newline at end of file
+- `usr/share/alsa/ucm2/sklnau8825[max|adi]/`: UCM Files modified to use standard UCM commands. Differences are minimal but allow for jack switching in Pipewire and Wireplumber.
+- `usr/share/wireplumber/main.lua.d/50-breath-config.lua`: Make Wireplumber use automatically Alsa Card Profile and make audio format S16_LE to prevent bad select by Pipewire.

🚚 Package Delivery System - Triggered by 0f6472a at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - for bouble to zip all folder starting with breaeth*

20 Jul 07:46
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/.github/workflows/build-pkg.yml b/.github/workflows/build-pkg.yml
index 89c0e98..7051d14 100644
--- a/.github/workflows/build-pkg.yml
+++ b/.github/workflows/build-pkg.yml
@@ -26,10 +26,10 @@ jobs:
         run: mkdir -v output
       - name: Building all packages
         run: |
-          for folder in "breath*"
+          for folder in breath*
           do
             folderName=$(basename $folder)
-            cd folder && zip -r $folderName.zip $folderName && cd ../
+            cd $folderName; zip -r ../output/$folderName.zip *; cd ..
           done
       - name: Release Breath packages to GitHub
         uses: softprops/action-gh-release@v1

🚚 Package Delivery System - Triggered by ae25a3e at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - Clean

20 Jul 07:14
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/breath-base/etc/sysctl.d/20-breath.conf b/breath-base/etc/sysctl.d/20-breath.conf
index ad7183b..73aa214 100644
--- a/breath-base/etc/sysctl.d/20-breath.conf
+++ b/breath-base/etc/sysctl.d/20-breath.conf
@@ -1,4 +1,4 @@
-#Optimizations for chromebooks/boxes
+# Optimizations for chromebooks/boxes
 
 vm.dirty_background_bytes = 0
 vm.dirty_bytes = 0
diff --git a/breath-kabylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua b/breath-kabylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua
deleted file mode 100644
index e1f66cf..0000000
--- a/breath-kabylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua
+++ /dev/null
@@ -1,32 +0,0 @@
-
---alsa_monitor.properties = {
---  ["alsa.reserve"] = true,
---  ["alsa.midi"] = true,
---  ["alsa.midi.monitoring"] = true,
---}
-
-alsa_monitor.rules = {
-  {
-    matches = {
-      {
-        { "device.name", "matches", "alsa_card.*" },
-      },
-    },
-    apply_properties = {
-      ["api.alsa.use-acp"] = true,
-      ["api.acp.auto-profile"] = false,
-      ["api.acp.auto-port"] = false,
-    },
-  },
-  {
-    matches = {
-      {
-        { "node.name", "matches", "alsa_input.platform-skl_n88l25_m98357a.HiFi__hw_sklnau8825max_1__source" },
-      },
-    },
-    apply_properties = {
-      ["audio.format"]           = "S16LE",
-    },
-  },
-}
-  
\ No newline at end of file
diff --git a/breath-skylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua b/breath-skylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua
index e1f66cf..fe77926 100644
--- a/breath-skylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua
+++ b/breath-skylake/usr/share/wireplumber/main.lua.d/50-breath-config.lua
@@ -1,10 +1,3 @@
-
---alsa_monitor.properties = {
---  ["alsa.reserve"] = true,
---  ["alsa.midi"] = true,
---  ["alsa.midi.monitoring"] = true,
---}
-
 alsa_monitor.rules = {
   {
     matches = {

🚚 Package Delivery System - Triggered by 32b30a0 at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - Create README.md

20 Jul 03:09
4841a11
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..85f20c9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,17 @@
+# Breath Resources
+
+Distro-specific packages to port the userspace functionality of Breath to other distros. This effort is spearheaded by @runcros.
+
+## breath-kabylake
+- `etc/modprobe.d/snd-hda-intel.conf`: Commented line has no significance, `snd_hda_intel` conflicts with `snd_soc_skl`
+- `lib/firmware/`: Firmware files - some unnecessary, such as `iwlwifi` files
+- `usr/share/alsa/ucm2/kblda7219max/`: UCM Files modified to use standard UCM commands. Differences are minimal but allow for jack switching in PulseAudio/Pipewire.
+- `usr/share/wireplumber/main.lua.d/50-breath-config.lua`: Unknown as of now, has to do with Pipewire compat
+
+## breath-skylake
+- `etc/modprobe.d/snd-hda-intel.conf`: Commented line has no significance, `snd_hda_intel` conflicts with `snd_soc_skl`
+- `lib/firmware/`: Firmware files - some unnecessary, such as `iwlwifi` files
+- `usr/share/alsa/ucm2/kblda7219max/`: UCM Files modified to use standard UCM commands. Differences are minimal but allow for jack switching in PulseAudio/Pipewire.
+- `usr/share/wireplumber/main.lua.d/50-breath-config.lua`: Unknown as of now, has to do with Pipewire compat
+
+TODO: Document breath-base

🚚 Package Delivery System - Triggered by 4841a11 at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - vide

19 Jul 19:11
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release


🚚 Package Delivery System - Triggered by bcf1ede at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - update HiFi.conf

19 Jul 18:04
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf
index 44d5691..e03c8f0 100644
--- a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf
@@ -90,7 +90,8 @@ SectionDevice."Mic" {
 	Value {
 		CapturePriority 100
 		CaptureChannelMap "0 1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
-		CapturePCM "hw:kblda7219max,3"
+		CapturePCM "hw:kblda7219max,1"
+		DependentPCM "hw:kblda7219max,3"
 	}
 }
 

🚚 Package Delivery System - Triggered by 73675dd at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - update Hdmi1.conf, Hdmi2.conf, HiFi.conf and postinst

19 Jul 18:00
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi1.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi1.conf
new file mode 100644
index 0000000..491d473
--- /dev/null
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi1.conf
@@ -0,0 +1,20 @@
+SectionDevice."HDMI1" {
+        Comment "HDMI/Display Port 1 Stereo"
+
+        Value {
+		PlaybackPriority 300
+                PlaybackPCM "hw:kblda7219max,4"
+		If.1 {
+			Condition {
+				Type ControlExists
+				Control "iface=CARD,name='HDMI/DP,pcm=4 Jack'"
+			}
+			True {
+				JackControl "HDMI/DP,pcm=4 Jack"
+			}
+			False {
+				JackControl "HDMI/DP, pcm=4 Jack"
+			}
+		}
+	}
+}
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi2.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi2.conf
new file mode 100644
index 0000000..991048b
--- /dev/null
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi2.conf
@@ -0,0 +1,20 @@
+SectionDevice."HDMI2" {
+        Comment "HDMI/Display Port 2 Stereo"
+
+        Value {
+		PlaybackPriority 400
+                PlaybackPCM "hw:kblda7219max,5"
+		If.1 {
+			Condition {
+				Type ControlExists
+				Control "iface=CARD,name='HDMI/DP,pcm=5 Jack'"
+			}
+		 	True {
+		                JackControl "HDMI/DP,pcm=5 Jack"
+			}
+			False {
+		                JackControl "HDMI/DP, pcm=5 Jack"
+			}
+		}
+        }
+}
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi3.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi3.conf
new file mode 100644
index 0000000..de09e3f
--- /dev/null
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/Hdmi3.conf
@@ -0,0 +1,20 @@
+SectionDevice."HDMI2" {
+        Comment "HDMI/Display Port 3 Stereo"
+
+        Value {
+		PlaybackPriority 400
+                PlaybackPCM "hw:kblda7219max,6"
+		If.1 {
+			Condition {
+				Type ControlExists
+				Control "iface=CARD,name='HDMI/DP,pcm=6 Jack'"
+			}
+		 	True {
+		                JackControl "HDMI/DP,pcm=6 Jack"
+			}
+			False {
+		                JackControl "HDMI/DP, pcm=6 Jack"
+			}
+		}
+        }
+}
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf
new file mode 100644
index 0000000..44d5691
--- /dev/null
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/HiFi.conf
@@ -0,0 +1,99 @@
+SectionVerb {
+	EnableSequence [
+		cdev "hw:kblda7219max"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='Out DACL Mux' DAIL"
+		cset "name='Out DACR Mux' DAIR"
+		cset "name='Mixer Out FilterL DACL Switch' 1"
+		cset "name='Mixer Out FilterR DACR Switch' 1"
+		cset "name='ST Mixer Out FilterL Out FilterL Switch' 1"
+		cset "name='ST Mixer Out FilterR Out FilterR Switch' 1"
+		cset "name='Mixin Switch' 1"
+		cset "name='Out DAIL Mux' ADC"
+		cset "name='Out DAIR Mux' ADC"
+		cset "name='Pin5-Port0 Mux' 1"
+		cset "name='Pin5-Port1 Mux' 2"
+		cset "name='Pin5-Port2 Mux' 3"
+		cset "name='Pin6-Port0 Mux' 2"
+		cset "name='Pin6-Port1 Mux' 3"
+		cset "name='Pin6-Port2 Mux' 1"
+		cset "name='Pin7-Port0 Mux' 1"
+		cset "name='Pin7-Port1 Mux' 1"
+		cset "name='Pin7-Port2 Mux' 1"
+		cset "name='Gain Ramp Rate' 1"
+	]
+
+	Value {
+		TQ "HiFi"
+	}
+}
+
+SectionDevice."Headphones" {
+	Comment "Headphones"
+
+	ConflictingDevice [
+		"Speaker"
+	]
+
+	EnableSequence [
+		cdev "hw:kblda7219max"
+		cset "name='codec0_out mo media0_in mi Switch' off"
+		cset "name='codec1_out mo media0_in mi Switch' on"
+		cset "name='Headphone Jack Switch' on"
+		cset "name='Headphone Switch' 1"
+		cset "name='Spk Switch' off"
+	]
+
+	Value {
+		PlaybackPriority 200
+        	PlaybackPCM "hw:kblda7219max,0"
+	}
+}
+
+SectionDevice."Speaker" {
+	Comment "Speaker"
+	ConflictingDevice [
+		"Headphones"
+	]
+	
+	EnableSequence [
+		cdev "hw:kblda7219max"
+		cset "name='codec0_out mo media0_in mi Switch' on"
+		cset "name='codec1_out mo media0_in mi Switch' off"
+		cset "name='Spk Switch' on"
+		cset "name='Headphone Jack Switch' off"
+		cset "name='Headphone Switch' 0"
+	]
+
+	Value {
+		PlaybackPriority 100
+		PlaybackPCM "hw:kblda7219max,0"
+	}
+}
+
+SectionDevice."Mic" {
+	Comment "Digital Stereo Microphone"
+
+	EnableSequence [
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' 1"
+		cset "name='media0_out mo codec0_in mi Switch' 0"
+        cset "name='Headset Mic Switch' 0"
+		
+	]
+
+	DisableSequence [
+		cset "name='media0_out mo codec0_in mi Switch' 1"
+		cset "name='media0_out mo dmic01_hifi_in mi Switch' 0"
+        cset "name='Headset Mic Switch' 1"
+	]
+	Value {
+		CapturePriority 100
+		CaptureChannelMap "0 1 -1 -1 -1 -1 -1 -1 -1 -1 -1"
+		CapturePCM "hw:kblda7219max,3"
+	}
+}
+
+Include.hdmi1.File "Hdmi1.conf"
+Include.hdmi2.File "Hdmi2.conf"
+Include.hdmi3.File "Hdmi2.conf"
\ No newline at end of file
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/kblda7219max.conf b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/kblda7219max.conf
new file mode 100644
index 0000000..4cc3906
--- /dev/null
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/kblda7219max/kblda7219max.conf
@@ -0,0 +1,6 @@
+Syntax 3
+
+SectionUseCase."HiFi" {
+	File "HiFi.conf"
+	Comment "Speaker Profile"
+}
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi1.conf b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi1.conf
index a6b97f6..fd32e32 100644
--- a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi1.conf
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi1.conf
@@ -3,7 +3,7 @@ SectionDevice."HDMI1" {
 
         Value {
 		PlaybackPriority 300
-                PlaybackPCM "hw:sklnau8825max,4"
+                PlaybackPCM "hw:sklnau8825adi,4"
 		If.1 {
 			Condition {
 				Type ControlExists
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi2.conf b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi2.conf
index 47c0cae..09bd483 100644
--- a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi2.conf
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/Hdmi2.conf
@@ -3,7 +3,7 @@ SectionDevice."HDMI2" {
 
         Value {
 		PlaybackPriority 400
-                PlaybackPCM "hw:sklnau8825max,5"
+                PlaybackPCM "hw:sklnau8825adi,5"
 		If.1 {
 			Condition {
 				Type ControlExists
diff --git a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/HiFi.conf b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/HiFi.conf
index d29f0c9..93e4f44 100644
--- a/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/HiFi.conf
+++ b/breath-skl-kbl/usr/share/alsa/ucm2/sklnau8825adi/HiFi.conf
@@ -1,6 +1,6 @@
 SectionVerb {
 	EnableSequence [
-		cdev "hw:sklnau8825max"
+		cdev "hw:sklnau8825adi"
 		cset "name='codec1_out mo media0_in mi Switch' off"
 		cset "name='codec0_out mo media0_in mi Switch' on"
 		cset "name='DAC Oversampling Rate' 128"
@@ -30,7 +30,7 @@ SectionDevice."Headphones" {
 	]
 
 	EnableSequence [
-		cdev "hw:sklnau8825max"
+		cdev "hw:sklnau8825adi"
 		cset "name='codec0_out mo media0_in mi Switch' off"
 		cset "name='codec1_out mo media0_in mi Switch' on"
 		cset "name='Spk Switch' off"
@@ -39,7 +39,7 @@ SectionDevice."Headphones" {
 
 	Value {
 		PlaybackPriority 200
-        	PlaybackPCM "hw:sklnau8825max,0"
+        	PlaybackPCM "hw:sklnau8825adi,0"
 	}
 }
 
@@ -58,7 +58,7 @@ SectionDevice."Speaker" {
 
 	Value {
 		PlaybackPriority 100
-		PlaybackPCM "hw:sklnau8825max,0"
+		PlaybackPCM "hw:sklnau8825adi,0"
 	}
 }
 
@@ -79,7 +79,7 @@ SectionDevice."Mic" {
 	]
 	Value {
 		CapturePriority 100
-		CapturePCM "hw:sklnau8825max,1"
+		CapturePCM "hw:sklnau8825adi,1"
 	}
 }
 
diff --git a/debian/DEBIAN/postinst b/debian/DEBIAN/postinst
index a34932f..82eb0b5 100755
--- a/debian/DEBIAN/postinst
+++ b/debian/DEBIAN/postinst
@@ -14,11 +14,3 @@ sudo cp /usr/share/doc/pipewire/examples/alsa.conf.d/99-pipewire-default.conf /e
 # rebuild initramfs due to /etc/modprobe.d/* changes in re: sdhci
 update-initramfs -u -k all
 
-# If sound card is found by kernel, reset system ALSA config.
-# This will only work if an appropriate kernel version is in place.
-CARD0_ID_FILE="/proc/asound/card0/id"
-
-if [ -r "$CARD0_ID_FILE" ]; then
-  HOME=/tmp alsaucm -c $(cat $CARD0_ID_FILE) reset
-fi
-

🚚 Package Delivery System - Triggered by 3d884a3 at 2022-07-19T12:48:23Z

πŸ“¦ Package Rebuild - update postinst

19 Jul 12:48
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/debian/DEBIAN/postinst b/debian/DEBIAN/postinst
index dd57171..a34932f 100755
--- a/debian/DEBIAN/postinst
+++ b/debian/DEBIAN/postinst
@@ -22,4 +22,3 @@ if [ -r "$CARD0_ID_FILE" ]; then
   HOME=/tmp alsaucm -c $(cat $CARD0_ID_FILE) reset
 fi
 
-exit 0

🚚 Package Delivery System - Triggered by 3878971 at 2022-07-18T23:48:33Z

πŸ“¦ Package Rebuild - chore: delete evdev and pc

19 Jul 12:06
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/breath-base/usr/share/breath-base/xkb/evdev b/breath-base/usr/share/breath/xkb/evdev
similarity index 100%
rename from breath-base/usr/share/breath-base/xkb/evdev
rename to breath-base/usr/share/breath/xkb/evdev
diff --git a/breath-base/usr/share/breath-base/xkb/pc b/breath-base/usr/share/breath/xkb/pc
similarity index 100%
rename from breath-base/usr/share/breath-base/xkb/pc
rename to breath-base/usr/share/breath/xkb/pc

🚚 Package Delivery System - Triggered by 0da634e at 2022-07-18T23:48:33Z

πŸ“¦ Package Rebuild - ci: update build-pkg.yml

19 Jul 11:35
Compare
Choose a tag to compare

πŸ›ˆ General Changes since the last release

diff --git a/.github/workflows/build-pkg.yml b/.github/workflows/build-pkg.yml
index 64ad1a5..3670aef 100644
--- a/.github/workflows/build-pkg.yml
+++ b/.github/workflows/build-pkg.yml
@@ -25,7 +25,7 @@ jobs:
       - name: Create output folder
         run: mkdir -v output
       - name: Building breath-base
-        run: zip -r output/breath-base.zip breath-base/*
+        run: cd breath-base; zip -r ../output/breath-base.zip *; cd ../
       - name: Building breath-skylake
         run: dpkg-deb -Z gzip -b breath-skylake/debian output/breath-skylake.deb
       - name: Release Breath-Skylake to GitHub

🚚 Package Delivery System - Triggered by 9a4bdcf at 2022-07-18T23:48:33Z