From 359acb71542b51dc64bdd5486ec99f7660b6a017 Mon Sep 17 00:00:00 2001 From: Jiahe Liu <13152231833@163.com> Date: Fri, 27 Feb 2026 14:42:58 +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. --- spa/plugins/alsa/mixer/paths/analog-output-headphones.conf | 4 ++++ spa/plugins/alsa/mixer/paths/analog-output-lineout.conf | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/spa/plugins/alsa/mixer/paths/analog-output-headphones.conf b/spa/plugins/alsa/mixer/paths/analog-output-headphones.conf index 3c62c5e67..641e28381 100644 --- a/spa/plugins/alsa/mixer/paths/analog-output-headphones.conf +++ b/spa/plugins/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/spa/plugins/alsa/mixer/paths/analog-output-lineout.conf b/spa/plugins/alsa/mixer/paths/analog-output-lineout.conf index 1ffce2225..39f84d680 100644 --- a/spa/plugins/alsa/mixer/paths/analog-output-lineout.conf +++ b/spa/plugins/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