From: Arnaud Ferraris Date: Sun, 18 Jun 2023 17:26:46 +0000 (+0200) Subject: ucm2: PinePhone: use "Mix Mono" routing for earpiece X-Git-Tag: v1.2.10~16 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=00eb2cfe2ee24c80e4f8bb493aa741c2450bc29d;p=alsa-ucm-conf.git 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 --- 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 {