Skip to content

Commit

Permalink
amixer: add amixer files for LNL platforms
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
keqiaozhang committed Dec 1, 2023
1 parent 2504bd6 commit 9d945d0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
11 changes: 11 additions & 0 deletions alsa_settings/LNLM_RVP_HDA.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
set -e

# enable headset playback
amixer -c sofhdadsp cset name='Master Playback Switch' 1
amixer -c sofhdadsp cset name='Master Playback Volume' 87
amixer -c sofhdadsp cset name='Headphone Playback Switch' 1
amixer -c sofhdadsp cset name='Headphone Playback Volume' 60

# enable headset capture
amixer -c sofhdadsp cset name='Capture Switch' on
amixer -c sofhdadsp cset name='Capture Volume' 30
12 changes: 12 additions & 0 deletions alsa_settings/LNLM_SDW_AIOC.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
set -e

# enable headset playback
amixer -c sofsoundwire cset name='Headphone Switch' on
amixer -c sofsoundwire cset name='rt711 FU05 Playback Volume' 80

# enable headset capture
amixer -c sofsoundwire cset name='Headset Mic Switch' on
amixer -c sofsoundwire cset name='rt711 FU0F Capture Switch' on
amixer -c sofsoundwire cset name='rt711 FU1E Capture Switch' on
amixer -c sofsoundwire cset name='rt711 FU0F Capture Volume' 30
amixer -c sofsoundwire cset name='rt711 FU1E Capture Volume' 30
2 changes: 1 addition & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ set_alsa_settings()
# common nocodec_ci alsa settings
"$SCRIPT_HOME"/alsa_settings/CAVS_NOCODEC_CI.sh
;;
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)
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)
dlogi "Use reset_sof_volume function to set amixer setting."
;;
*)
Expand Down

0 comments on commit 9d945d0

Please sign in to comment.