Skip to content

Commit 402f4bd

Browse files
committed
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 <hariprasad.rajendra@intel.com>
1 parent 057fbe8 commit 402f4bd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test-case/check-sof-logger.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@ sof_alsa_card_found()
7171
# note: assumes SOF card names to start with "sof", e.g.
7272
# - /proc/asound/sofsoundwire/id
7373
# - /proc/asound/sofhdadsp/id
74-
test -e /proc/asound/sof*/id
74+
# - https://github.com/thesofproject/sof-test/issues/1243
75+
# Designed to support multiple SOF instances with SOF probes
76+
for i in /proc/asound/sof*/id; do
77+
if test -e "$i"; then return 0; fi
78+
done
79+
return 1
7580
}
7681

7782
wait_for_sof_alsa_card()

0 commit comments

Comments
 (0)