Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sof-v2.4.1 for TGL and TGL-H #114

Merged
merged 1 commit into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/community/sofz-adl-s.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/community/sofz-adl.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/community/sofz-rpl-s.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/community/sofz-rpl.ri
Binary file added v2.4.x/sof-v2.4.1/community/sofz-tgl-h.ri
Binary file not shown.
Binary file added v2.4.x/sof-v2.4.1/community/sofz-tgl.ri
Binary file not shown.
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/intel-signed/sofz-rpl-s.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/intel-signed/sofz-rpl.ri
Binary file added v2.4.x/sof-v2.4.1/intel-signed/sofz-tgl-h.ri
Binary file not shown.
Binary file added v2.4.x/sof-v2.4.1/intel-signed/sofz-tgl.ri
Binary file not shown.
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-adl-s.ldc
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-adl-s.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-adl.ldc
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-adl.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-rpl-s.ldc
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-rpl-s.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-rpl.ldc
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-rpl.ri
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-tgl-h.ldc
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-tgl-h.ri
Binary file added v2.4.x/sof-v2.4.1/sofz-tgl.ldc
Binary file not shown.
1 change: 1 addition & 0 deletions v2.4.x/sof-v2.4.1/sofz-tgl.ri
38 changes: 38 additions & 0 deletions v2.4.x/tools-v2.4.1/mtrace-reader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: BSD-3-Clause
#
# Copyright (c) 2022, Intel Corporation. All rights reserved.

#pylint:disable=mixed-indentation

# Tool to stream data from Linux SOF driver "mtrace" debugfs
# interface to standard output. Plain "cat" is not sufficient
# as each read() syscall returns log data with a 32bit binary
# header, containing the payload length.

import struct
import os
import sys

READ_BUFFER = 16384
MTRACE_FILE = "/sys/kernel/debug/sof/mtrace/core0"

fd = os.open(MTRACE_FILE, os.O_RDONLY)
while fd >= 0:
# direct unbuffered os.read() must be used to comply with
# debugfs protocol used. each non-zero read will return
# a buffer containing a 32bit header and a payload
read_bytes = os.read(fd, READ_BUFFER)

# handle end-of-file
if len(read_bytes) == 0:
continue

if len(read_bytes) <= 4:
continue

header = struct.unpack('I', read_bytes[0:4])
data_len = header[0]
data = read_bytes[4:4+data_len]

os.write(sys.stdout.fileno(), data)