-
Notifications
You must be signed in to change notification settings - Fork 349
probe-app: add support for non-audio probe buffers #6130
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
probe-app: add support for non-audio probe buffers #6130
Conversation
|
Converting to a draft while debugging a possible bug. |
106cacb to
8c305b4
Compare
|
Ready for review. Turns out we also need to add support for non-aligned sync words and payloads. Added this as a separate patch, retested and uploaded. |
|
The checkpatch issues around memcpy and function tab levels, are present in existing code, and I did not want to start refactoring surrounding code in this PR. |
abonislawski
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good update to probe-app
jsarha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to.
tools/probes/probes_main.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return *((uint32_t *)buf) == PROBE_EXTRACT_SYNC_WORD; or even...
tools/probes/probes_main.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love C. I guess here both memset(&data...) and memset(data...) would work and mean the same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lyakh Well, true, but this isn't really part of my PR. If you change the style, you should change across the file and better done in a separate patch.
tools/probes/probes_main.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here - and subjectively fread(data,...) seems clearer to me, but it's just me
|
@lyakh found a bug in finalize wave header function. Turning to draft to block merge until bug is fixed. |
8c305b4 to
e7ab5c1
Compare
Don't assume buffer-id of zero is an invalid value. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Do not blindly call fwrite without checking whether file open succeeded or not. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Modify code to correctly handle probe streams where sync word can occur at any byte boundary, and where probe packet size may not be aligned to 32bit word size. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Identify non-audio probe streams and write them out with ".bin" extension and without the RIFF WAVE header. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
|
Bug found by @lyakh fixed, pushed a new version. Ready for review and merge again. |
Series of patches to add non-audio probe buffer support (and few minor fixes).