Skip to content

Commit

Permalink
lib.sh: switch to use reset_sof_volume funtion to adjust
Browse files Browse the repository at this point in the history
amixer settings for IPC4 nocodec platforms

Signed-off-by: Keqiao Zhang <[email protected]>
  • Loading branch information
keqiaozhang committed Mar 28, 2023
1 parent 1011701 commit a6520b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -808,14 +808,17 @@ set_alsa_settings()
local PNAME="${1%_ZEPHYR}"
dlogi "Run alsa setting for $PNAME"
case $PNAME in
APL_UP2_NOCODEC | CML_RVP_NOCODEC | JSL_RVP_NOCODEC | TGLU_RVP_NOCODEC | ADLP_RVP_NOCODEC | TGLH_RVP_NOCODEC | MTLP_RVP_NOCODEC)
APL_UP2_NOCODEC | CML_RVP_NOCODEC | JSL_RVP_NOCODEC | TGLU_RVP_NOCODEC | ADLP_RVP_NOCODEC | TGLH_RVP_NOCODEC)
# common nocodec alsa settings
"$SCRIPT_HOME"/alsa_settings/CAVS_NOCODEC.sh
;;
TGLU_RVP_NOCODEC_CI | ADLP_RVP_NOCODEC_CI)
# common nocodec_ci alsa settings
"$SCRIPT_HOME"/alsa_settings/CAVS_NOCODEC_CI.sh
;;
TGLU_RVP_NOCODEC_IPC4ZPH | ADLP_RVP_NOCODEC_IPC4ZPH | MTLP_RVP_NOCODEC)
dlogi "Use reset_sof_volume function to set amixer setting."
;;
*)
# if script name is same as platform name, default case will handle all
if [ -f "$SCRIPT_HOME"/alsa_settings/"$PNAME".sh ]; then
Expand Down

0 comments on commit a6520b0

Please sign in to comment.