]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: MediaTek: mt8391-evk: Fix channels and add volume controls
authorZoran Zhan <zoran.zhan@mediatek.com>
Thu, 25 Jun 2026 06:54:31 +0000 (14:54 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 9 Oct 2026 08:44:48 +0000 (10:44 +0200)
Set Speaker to stereo and add PlaybackVolume/CaptureVolume controls
for Speaker, Headphones, Headset and Mic1.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/797
Signed-off-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/MediaTek/mt8391-evk/HiFi.conf

index 4a1aee9f97308e8510e5409278a843b1fd9902c7..180941a3b4e4ab72ca267171973218a3ed98f8ac 100644 (file)
@@ -15,8 +15,9 @@ SectionDevice."Speaker" {
 
        Value {
                PlaybackPriority 300
-               PlaybackChannels 1
+               PlaybackChannels 2
                PlaybackPCM "hw:${CardId},${var:PlayDevN}"
+               PlaybackVolume "Lineout Volume"
        }
 }
 
@@ -39,6 +40,7 @@ SectionDevice."Headphones" {
                PlaybackPriority 400
                PlaybackChannels 2
                PlaybackPCM "hw:${CardId},${var:PlayDevN}"
+               PlaybackVolume "Headset Volume"
                JackControl "Headphone Jack"
        }
 }
@@ -65,6 +67,7 @@ SectionDevice."Headset" {
                CapturePriority 500
                CaptureChannels "${var:CapChanN}"
                CapturePCM "hw:${CardId},${var:CapDevN}"
+               CaptureVolume "PGA1 Volume"
                JackControl "Headset Mic Jack"
        }
 }
@@ -96,6 +99,7 @@ SectionDevice."Mic1" {
                CapturePriority 400
                CaptureChannels 2
                CapturePCM "hw:${CardId},${var:CapDevN}"
+               CaptureVolume "PGA1 Volume"
        }
 }