Skip to content

Commit 6000b4e

Browse files
committed
amixer: add amixer files for LNL platforms
Add new amixer files for LNLM_RVP_HDA and LNLM_SDW_AIOC. For LNLM_RVP_NOCODEC, use reset_sof_volume function for amixer settings. Signed-off-by: Keqiao Zhang <keqiao.zhang@intel.com>
1 parent 696b00e commit 6000b4e

3 files changed

Lines changed: 24 additions & 1 deletion

File tree

alsa_settings/LNLM_RVP_HDA.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
9+
# enable headset capture
10+
amixer -c sofhdadsp cset name='Capture Switch' on
11+
amixer -c sofhdadsp cset name='Capture Volume' 30

alsa_settings/LNLM_SDW_AIOC.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
set -e
2+
3+
# enable headset playback
4+
amixer -c sofsoundwire cset name='Headphone Switch' on
5+
amixer -c sofsoundwire cset name='rt711 FU05 Playback Volume' 80
6+
7+
# enable headset capture
8+
amixer -c sofsoundwire cset name='Headset Mic Switch' on
9+
amixer -c sofsoundwire cset name='rt711 FU0F Capture Switch' on
10+
amixer -c sofsoundwire cset name='rt711 FU1E Capture Switch' on
11+
amixer -c sofsoundwire cset name='rt711 FU0F Capture Volume' 30
12+
amixer -c sofsoundwire cset name='rt711 FU1E Capture Volume' 30

case-lib/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ set_alsa_settings()
927927
# common nocodec_ci alsa settings
928928
"$SCRIPT_HOME"/alsa_settings/CAVS_NOCODEC_CI.sh
929929
;;
930-
TGLU_RVP_NOCODEC_IPC4ZPH | ADLP_RVP_NOCODEC_IPC4ZPH | MTLP_RVP_NOCODEC |ADLP_RVP_NOCODEC-ipc4 | TGLU_RVP_NOCODEC-ipc4 | MTLP_RVP_NOCODEC | MTLP_RVP_NOCODEC-multicore-2cores | MTLP_RVP_NOCODEC-multicore-3cores)
930+
TGLU_RVP_NOCODEC_IPC4ZPH | ADLP_RVP_NOCODEC_IPC4ZPH | MTLP_RVP_NOCODEC |ADLP_RVP_NOCODEC-ipc4 | TGLU_RVP_NOCODEC-ipc4 | MTLP_RVP_NOCODEC | MTLP_RVP_NOCODEC-multicore-2cores | MTLP_RVP_NOCODEC-multicore-3cores | LNLM_RVP_NOCODEC)
931931
dlogi "Use reset_sof_volume function to set amixer setting."
932932
;;
933933
*)

0 commit comments

Comments
 (0)