From b6caac401cde8247baea5688acb9f7c1c25f0873 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 0e698bd9c..3e321cf02 100644 --- a/spa/plugins/alsa/mixer/paths/analog-output-headphones.conf +++ b/spa/plugins/alsa/mixer/paths/analog-output-headphones.conf @@ -143,6 +143,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 a6fcfcb83..430f3d7da 100644 --- a/spa/plugins/alsa/mixer/paths/analog-output-lineout.conf +++ b/spa/plugins/alsa/mixer/paths/analog-output-lineout.conf @@ -168,6 +168,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