Skip to content

Commit 00eb2cf

Browse files
Arnaud Ferrarisperexg
authored andcommitted
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: #324 Signed-off-by: Arnaud Ferraris <[email protected]> Signed-off-by: Jaroslav Kysela <[email protected]>
1 parent b4f4fbc commit 00eb2cf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ucm2/Allwinner/A64/PinePhone/HiFi.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ SectionDevice."Earpiece" {
2626
Comment "Internal Earpiece"
2727

2828
EnableSequence [
29+
cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono"
2930
cset "name='Earpiece Playback Switch' on"
3031
]
3132

3233
DisableSequence [
3334
cset "name='Earpiece Playback Switch' off"
35+
cset "name='AIF1 DA0 Stereo Playback Route' Stereo"
3436
]
3537

3638
Value {

ucm2/Allwinner/A64/PinePhone/VoiceCall.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,13 @@ SectionDevice."Earpiece" {
3131
Comment "Internal Earpiece"
3232

3333
EnableSequence [
34+
cset "name='AIF1 DA0 Stereo Playback Route' Mix Mono"
3435
cset "name='Earpiece Playback Switch' on"
3536
]
3637

3738
DisableSequence [
3839
cset "name='Earpiece Playback Switch' off"
40+
cset "name='AIF1 DA0 Stereo Playback Route' Stereo"
3941
]
4042

4143
Value {

0 commit comments

Comments
 (0)