-
Notifications
You must be signed in to change notification settings - Fork 50
Refactor: Generalize Code by Removing Vendor and Android-Specific Elements #154
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
base: development
Are you sure you want to change the base?
Changes from all commits
3f3d24c
b1d98fe
e7ff063
f83c16d
e26a068
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we are removing the support for /vendor/dsp, where is shell expected to be pushed for android targets ? if it is /usr/lib/dsp/ like other LE targets, is /usr partition available on android targets ? how is this change tested on android targets ?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have to check where the shell should be placed if /vendor/dsp support is removed, or if we actually need to remove it in the first place. Regarding testing: earlier, the daemons were already running (opened the shell) and the tests passed. After killing and updating with new daemons, the tests are now failing. I will check this further and update.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The shell is loaded from the same folder as all other DSP libraries. What's the question?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
All DSP binaries are located in the subdirs of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Android systems you can reuse the same approach, changing /usr/share/qcom/ to /vendor or its subdir. All config files should be relative to that path, |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,16 +39,9 @@ | |
| #endif | ||
| #endif /* ENABLE_UPSTREAM_DRIVER_INTERFACE */ | ||
|
|
||
| #ifndef VENDOR_DSP_LOCATION | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How are these two changes related to each other?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are unrelated; I will update the PR. |
||
| #define VENDOR_DSP_LOCATION "/vendor/dsp/" | ||
| #endif | ||
| #ifndef VENDOR_DOM_LOCATION | ||
| #define VENDOR_DOM_LOCATION "/vendor/dsp/xdsp/" | ||
| #endif | ||
|
|
||
| // Search path used by fastRPC to search skel library, .debugconfig and .farf files | ||
| #ifndef DSP_SEARCH_PATH | ||
| #define DSP_SEARCH_PATH ";/usr/lib/rfsa/adsp;/vendor/lib/rfsa/adsp;/vendor/dsp/;/usr/lib/dsp/;" | ||
| #define DSP_SEARCH_PATH ";/usr/lib/rfsa/adsp;/usr/lib/dsp/;" | ||
| #endif | ||
|
|
||
| // Search path used by fastRPC for acdb path | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,9 +4,6 @@ | |
| #ifndef FASTRPC_TRACE_H | ||
| #define FASTRPC_TRACE_H | ||
|
|
||
| #if ((defined _ANDROID) || (defined ANDROID)) || (defined DISABLE_ATRACE) && !defined(LE_ENABLE) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, totally unrelated changes
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These changes are unrelated; I will update the PR. |
||
| //TODO: Bharath #include "cutils/trace.h" //for systrace support | ||
| #endif | ||
| #include "HAP_farf.h" | ||
|
|
||
| //for systrace support | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,7 @@ LIBDSPRPC_SOURCES = \ | |
| dspsignal.c \ | ||
| dspqueue/dspqueue_cpu.c \ | ||
| dspqueue/dspqueue_rpc_stub.c \ | ||
| listener_android.c \ | ||
| listener.c \ | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sould this be a part of the previous commit?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right, I'll do that. |
||
| apps_std_imp.c \ | ||
| apps_mem_imp.c \ | ||
| apps_mem_skel.c \ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.