Skip to content

Commit 3e021ab

Browse files
authored
alsa_settings: add amixer settings for MTLP_RVP_HDA and MTLP_RVP_SDW (#984)
* alsa_settings: add amixer settings for MTLP_RVP_HDA and MTLP_RVP_SDW Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com> * lib.sh: add MTLP_RVP_NOCODEC to common nocodec list Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com> Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
1 parent 2423009 commit 3e021ab

3 files changed

Lines changed: 19 additions & 1 deletion

File tree

alsa_settings/MTLP_RVP_HDA.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set -e
2+
3+
# enable headset playback
4+
amixer -c sofhdadsp cset name='Master Playback Switch' 1
5+
amixer -c sofhdadsp cset name='Master Playback Volume' 87
6+
amixer -c sofhdadsp cset name='Headphone Playback Switch' 1
7+
amixer -c sofhdadsp cset name='Headphone Playback Volume' 60
8+
amixer -c sofhdadsp cset name='gain.1.1 1 2nd Playback Volume' 45
9+
amixer -c sofhdadsp cset name='gain.2.1 2 Main Playback Volume' 45
10+
amixer -c sofhdadsp cset name='gain.5.1 5 3nd Playback Volume' 45

alsa_settings/MTLP_RVP_SDW.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
set -e
2+
3+
# enable playback
4+
amixer -c sofsoundwire cset name='Headphone Switch' on
5+
amixer -c sofsoundwire cset name='rt711 FU05 Playback Volume' 60
6+
amixer -c sofsoundwire cset name='gain.1.1 1 Playback Volume 0' 45
7+
amixer -c sofsoundwire cset name='gain.2.1 2 Main Playback Volume' 45
8+
amixer -c sofsoundwire cset name='gain.5.1 5 2nd Playback Volume' 45

case-lib/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ set_alsa_settings()
799799
local PNAME="${1%_ZEPHYR}"
800800
dlogi "Run alsa setting for $PNAME"
801801
case $PNAME in
802-
APL_UP2_NOCODEC | CML_RVP_NOCODEC | JSL_RVP_NOCODEC | TGLU_RVP_NOCODEC | ADLP_RVP_NOCODEC | TGLH_RVP_NOCODEC)
802+
APL_UP2_NOCODEC | CML_RVP_NOCODEC | JSL_RVP_NOCODEC | TGLU_RVP_NOCODEC | ADLP_RVP_NOCODEC | TGLH_RVP_NOCODEC | MTLP_RVP_NOCODEC)
803803
# common nocodec alsa settings
804804
"$SCRIPT_HOME"/alsa_settings/CAVS_NOCODEC.sh
805805
;;

0 commit comments

Comments
 (0)