From 27b8121fd6a16e3e2dc3f33bfbabdd290380f2b9 Mon Sep 17 00:00:00 2001 From: Jiahe Liu <13152231833@163.com> Date: Fri, 27 Feb 2026 15:44:22 +0800 Subject: [PATCH] spa: add "Line Out" element to headphones and lineout profiles Some audio hardware reports output jacks as "Line Out" rather than "Headphone" or generic analog outputs. Without an explicit "Line Out" element in the SPA configuration, these ports may be ignored or misidentified, leading to missing output options in desktop settings. This change adds "Line Out" as a recognized element in both the headphones and lineout SPA configuration files, improving compatibility with a wider range of audio devices. --- src/modules/alsa/mixer/paths/analog-output-headphones.conf | 4 ++++ src/modules/alsa/mixer/paths/analog-output-lineout.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/modules/alsa/mixer/paths/analog-output-headphones.conf b/src/modules/alsa/mixer/paths/analog-output-headphones.conf index 3c62c5e67..641e28381 100644 --- a/src/modules/alsa/mixer/paths/analog-output-headphones.conf +++ b/src/modules/alsa/mixer/paths/analog-output-headphones.conf @@ -137,6 +137,10 @@ volume = zero switch = off volume = off +[Element Line Out] +switch = off +volume = off + [Element Surround] switch = off volume = off diff --git a/src/modules/alsa/mixer/paths/analog-output-lineout.conf b/src/modules/alsa/mixer/paths/analog-output-lineout.conf index 1ffce2225..39f84d680 100644 --- a/src/modules/alsa/mixer/paths/analog-output-lineout.conf +++ b/src/modules/alsa/mixer/paths/analog-output-lineout.conf @@ -155,6 +155,10 @@ volume = merge override-map.1 = all-rear override-map.2 = rear-left,rear-right +[Element Line Out] +switch = mute +volume = merge + [Element Surround] switch = mute volume = merge