From 05ffcc02d821a4ea68ae1ff7301788fefeffe34c Mon Sep 17 00:00:00 2001 From: harajend Date: Wed, 18 Dec 2024 00:10:48 +0530 Subject: [PATCH] Added support multiple sof* Added #1243 bug reference for new code change Signed-off-by: harajend --- test-case/check-sof-logger.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test-case/check-sof-logger.sh b/test-case/check-sof-logger.sh index 00cd8ee5..67e14376 100755 --- a/test-case/check-sof-logger.sh +++ b/test-case/check-sof-logger.sh @@ -71,7 +71,14 @@ sof_alsa_card_found() # note: assumes SOF card names to start with "sof", e.g. # - /proc/asound/sofsoundwire/id # - /proc/asound/sofhdadsp/id - test -e /proc/asound/sof*/id + # test -e /proc/asound/sof*/id + # - https://github.com/thesofproject/sof-test/issues/1243 + # Internal issue #615 + # Designed to support multiple sof* + for i in /proc/asound/sof*/id; do + if test -e "$i"; then return 0; fi + done + return 1 } wait_for_sof_alsa_card()