Skip to content

Commit 4fb2d67

Browse files
committed
lib.sh: Add log at reset_sof_volume
Add log message to `reset_sof_volume()`. Stop with `die` on incorrect ALSA tool the same way, as at the other places. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
1 parent b0d4855 commit 4fb2d67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

case-lib/lib.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,13 +1236,13 @@ reset_sof_volume()
12361236
get_sof_controls "0" | sed -e "s/^.*'\(.*\)'.*/\1/" |grep -E 'PGA|gain' |
12371237
while read -r mixer_name
12381238
do
1239+
dlogi "Reset volume to ${level_db} on ${mixer_name}"
12391240
if [[ "$SOF_ALSA_TOOL" = "alsa" ]]; then
12401241
amixer -Dhw:0 -- sset "$mixer_name" "$level_db"
1241-
elif [[ "$SOF_ALSA_TOOL" = "tinyalsa" ]]; then
1242+
elif [[ "$SOF_ALSA_TOOL" = "tinyalsa" ]]; then
12421243
tinymix -D0 set "$mixer_name" "$level_db"
12431244
else
1244-
echo "Unknown alsa tool $SOF_ALSA_TOOL"
1245-
break
1245+
die "Unknown ALSA tool ${SOF_ALSA_TOOL}"
12461246
fi
12471247
done
12481248
}

0 commit comments

Comments
 (0)