Skip to content

Commit

Permalink
lib.sh: add is_sof_used function
Browse files Browse the repository at this point in the history
This patch adds is_sof_used function to check
we are running test on SOF platform or legacy
HDA platform.

Signed-off-by: Amery Song <chao.song@intel.com>
  • Loading branch information
Amery Song committed Oct 28, 2020
1 parent 2f9eb1b commit 7af5c7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions case-lib/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,8 @@ sudo sync -f || true
if [ ! "$DMESG_LOG_START_LINE" ]; then
DMESG_LOG_START_LINE=$(wc -l /var/log/kern.log|awk '{print $1;}')
fi

is_sof_used()
{
grep -q "sof" /proc/asound/cards;
}

0 comments on commit 7af5c7c

Please sign in to comment.