From 00eb2cfe2ee24c80e4f8bb493aa741c2450bc29d Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Sun, 18 Jun 2023 19:26:46 +0200 Subject: [PATCH] ucm2: PinePhone: use "Mix Mono" routing for earpiece The earpiece speaker is a mono device, using only a single channel (in our case, the left one) from the DA0 output. This causes loss of information as the right channel is completely discarded when playing stereo audio. In order to avoid this issue, set `AIF1 DA0 Stereo Playback Route` to `Mix Mono` when using the "Earpiece" output port (and only in this case). Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/324 Signed-off-by: Arnaud Ferraris Signed-off-by: Jaroslav Kysela --- ucm2/Allwinner/A64/PinePhone/HiFi.conf | 2 ++ ucm2/Allwinner/A64/PinePhone/VoiceCall.conf | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ucm2/Allwinner/A64/PinePhone/HiFi.conf b/ucm2/Allwinner/A64/PinePhone/HiFi.conf index 00779ae..83c5c43 100644 --- a/ucm2/Allwinner/A64/PinePhone/HiFi.conf +++ b/ucm2/Allwinner/A64/PinePhone/HiFi.conf @@ -26,11 +26,13 @@ SectionDevice."Earpiece" { Comment "Internal Earpiece" EnableSequence [ + cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono" cset "name='Earpiece Playback Switch' on" ] DisableSequence [ cset "name='Earpiece Playback Switch' off" + cset "name='AIF1 DA0 Stereo Playback Route' Stereo" ] Value { diff --git a/ucm2/Allwinner/A64/PinePhone/VoiceCall.conf b/ucm2/Allwinner/A64/PinePhone/VoiceCall.conf index fb3cb58..ef3f364 100644 --- a/ucm2/Allwinner/A64/PinePhone/VoiceCall.conf +++ b/ucm2/Allwinner/A64/PinePhone/VoiceCall.conf @@ -31,11 +31,13 @@ SectionDevice."Earpiece" { Comment "Internal Earpiece" EnableSequence [ + cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono" cset "name='Earpiece Playback Switch' on" ] DisableSequence [ cset "name='Earpiece Playback Switch' off" + cset "name='AIF1 DA0 Stereo Playback Route' Stereo" ] Value { -- 2.47.1