]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: PinePhone: use "Mix Mono" routing for earpiece
authorArnaud Ferraris <aferraris@debian.org>
Sun, 18 Jun 2023 17:26:46 +0000 (19:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Jun 2023 10:50:05 +0000 (12:50 +0200)
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 <aferraris@debian.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Allwinner/A64/PinePhone/HiFi.conf
ucm2/Allwinner/A64/PinePhone/VoiceCall.conf

index 00779aeb9d1a079de85e1bad0204558fda8ca311..83c5c4303a81a7506cebd828298d4e2f4234d1d1 100644 (file)
@@ -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 {
index fb3cb58e023e9d77dede9a1f982fa8ff4175efc6..ef3f36451ebfe0291d7d3b1b3170c0e2c6a50a0e 100644 (file)
@@ -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 {