From 402f4bd6fe24e7ffd8e44d1b9643e5bccfbaea9d Mon Sep 17 00:00:00 2001 From: harajend Date: Wed, 18 Dec 2024 00:10:48 +0530 Subject: [PATCH] check-sof-logger.sh: Designed to support multiple SOF instances with SOF probes We have multiple sof* devices whenever SOF probes are enabled Signed-off-by: Hariprasad, Rajendra --- test-case/check-sof-logger.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test-case/check-sof-logger.sh b/test-case/check-sof-logger.sh index 00cd8ee5..23c9a5d5 100755 --- a/test-case/check-sof-logger.sh +++ b/test-case/check-sof-logger.sh @@ -71,7 +71,12 @@ 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 + # - https://github.com/thesofproject/sof-test/issues/1243 + # Designed to support multiple SOF instances with SOF probes + for i in /proc/asound/sof*/id; do + if test -e "$i"; then return 0; fi + done + return 1 } wait_for_sof_alsa_card()