Skip to content

Commit ac221cc

Browse files
golowanowlgirdwood
authored andcommitted
lib.sh: set_alsa: Log ALSA state difference
Log difference between the current ALSA state and the restored ALSA state. Signed-off-by: Dmitrii Golovanov <dmitrii.golovanov@intel.com>
1 parent 788ff63 commit ac221cc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

case-lib/lib.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,6 +1313,10 @@ set_alsa()
13131313

13141314
alsactl store -f "${asound_state}.txt" 2>&1 || rc=$?
13151315
[[ "${rc}" -ne 0 ]] && dlogw "alsactl store error=${rc}"
1316+
1317+
printf '%s\n' '-vv------- Check ALSA state difference -------vv-' >> "${alsa_log}"
1318+
diff -u --report-identical-files "${asound_state}_old.txt" "${asound_state}.txt" >> "${alsa_log}" 2>&1 || rc=$?
1319+
dlogi "ALSA state difference check result=${rc}"
13161320
}
13171321

13181322
DO_PERF_ANALYSIS=0

0 commit comments

Comments
 (0)