Skip to content

Commit 99883f7

Browse files
authored
Update check-sof-logger.sh
Updated the test script with suggested changes Signed-off-by: harajend <hariprasad.rajendra@intel.com>
1 parent 59ef8e0 commit 99883f7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test-case/check-sof-logger.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ 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/sofsoundwire/id ||
75-
test -e /proc/asound/sofhdadsp/id
74+
for i in /proc/asound/sof*/id; do
75+
if test -e "$i"; then return 0; fi
76+
done
77+
return 1
7678
}
7779

7880
wait_for_sof_alsa_card()

0 commit comments

Comments
 (0)