Skip to content

Commit 6a55123

Browse files
committed
lib.sh: fix debugfs fw_path in get_ldc_subdir() and missing sudo
One more fix for commit 992efad ("case-lib: lib.sh: use debugfs for fw_path when available"). There are so many fallbacks in the code that these ones were kept hidden for long time. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent 4114012 commit 6a55123

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

case-lib/lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,11 @@ get_ldc_subdir()
309309
{
310310
local subdir='intel/sof' # default
311311
local fw_path
312-
local fw_path_info='/sys/kernel/debug/sof/fw_path'
312+
local fw_path_info='/sys/kernel/debug/sof/fw_profile/fw_path'
313313

314314
# either $fw_path_info exists, OR we redefine $fw_path_info with
315315
# the backwards-compatible alternative based on kernel parameter
316-
test -e $fw_path_info ||
316+
sudo test -e $fw_path_info ||
317317
fw_path_info='/sys/module/snd_sof_pci/parameters/fw_path'
318318

319319
if fw_path=$(sudo cat $fw_path_info); then

0 commit comments

Comments
 (0)