Repository navigation
Audio: ASRC: Code reorganization - #8514
Conversation
andrula-song
commented
Nov 23, 2023
- Move all ASRC related header files into src/audio/asrc folder.
- split IPC version related code to asrc_ipc3.c and asrc_ipc4.c.
|
SOFCI TEST |
100cd0b to
17291ee
Compare
17291ee to
764500f
Compare
lgirdwood
left a comment
There was a problem hiding this comment.
We can make the Cmake/Kconfig changes later as there are other PRs that need to be merged 1st.
There was a problem hiding this comment.
@singalsu @andrula-song @btian1 These should really be in src/audio/module_name/CMakefile.txt (same rule applies to Kconfig too)
There was a problem hiding this comment.
I agree, shall we use a separate pr to do the clean up once we finished all module converter.
this is because the in-complete of Cmakelist in module, some does not have, some does not used.
There was a problem hiding this comment.
@lgirdwood , this change is based on search, so I request use a separate PR to track clean up src/audio/cMakeList.txt
There was a problem hiding this comment.
Hmm, "asrc_sources" was not set before this PR, so why do it now. It seems we already go to the asrc subdirectory, so I don't see why we need to add individual source files here.
There was a problem hiding this comment.
actually, it is first set in line 196 as "set(asrc_sources asrc/asrc.c asrc/asrc_farrow.c asrc/asrc_farrow_generic.c)". Adding here is just to keep the asrc_sources right after I refine ASRC code.
There was a problem hiding this comment.
Ack @andrula-song . I still don't understand why we set the module sources list twice, but clearly this was not added in this PR, so should not block this one. Let's handle separately.
There was a problem hiding this comment.
I still don't understand why we set the module sources list twice,
Same "LIBRARY" explanation as in #8595 (comment), isn't it?
|
SOFCI TEST |
lgirdwood
left a comment
There was a problem hiding this comment.
LGTM, needs the cleanups in a different patch.
764500f to
232dde8
Compare
lyakh
left a comment
There was a problem hiding this comment.
I like it much better with the typedef!
232dde8 to
0e3f1f2
Compare
RanderWang
left a comment
There was a problem hiding this comment.
Why we need to move it to ASRC folder ? Thanks!
|
SOFCI TEST |
There was a problem hiding this comment.
This is a code change (I know, no impact), but should come in another patch.
There was a problem hiding this comment.
This is fine for now. We can incrementally update if needed.
There was a problem hiding this comment.
Fine for now, we can split this further later if needed.
0e3f1f2 to
b91436d
Compare
b91436d to
79b9546
Compare
|
ALSA plugin build failure https://github.com/thesofproject/sof/actions/runs/7081524859/job/19272763291?pr=8514 discussed in #8538 |
|
@lyakh , with typedef, there are codestyle errors, do you still insist use typedef, how about #define, or directly use # if IPC3? |
@btian1 I never insisted on that, it was my proposal. I still think it's ok to ignore code style complaints in this case, but if others disagree we can also use a |
There was a problem hiding this comment.
this isn't really a code reorganization... It's really not good practice to add such configuration changes in the middle or a code move...
This should be in a separate patch IMHO.
There was a problem hiding this comment.
add a separate commit at last.
Checkpatch is not always right: https://www.kernel.org/doc/html/latest/dev-tools/checkpatch.html
I wish people obsessed at least as much about actual test results as about checkpatch. "Do not add any new |
79b9546 to
b62e218
Compare
kv2019i
left a comment
There was a problem hiding this comment.
Mostly look good, a few minor comments inline.
There was a problem hiding this comment.
Hmm, "asrc_sources" was not set before this PR, so why do it now. It seems we already go to the asrc subdirectory, so I don't see why we need to add individual source files here.
There was a problem hiding this comment.
C-style comments would be better
Move the ASRC related header files into ASRC folder. Signed-off-by: Andrula Song <andrula.song@intel.com>
Use typedef ipc_asrc_cfg to replace the splited IPC version asrc module config structure. Signed-off-by: Andrula Song <andrula.song@intel.com>
Move IPC3 related code to asrc_ipc3.c and IPC4 related code to asrc_ipc4.c. Signed-off-by: Andrula Song <andrula.song@intel.com>
Make HiFi4 share c source files with HiFi3. Signed-off-by: Andrula Song <andrula.song@intel.com>
b62e218 to
756314f
Compare
There was a problem hiding this comment.
Ack @andrula-song . I still don't understand why we set the module sources list twice, but clearly this was not added in this PR, so should not block this one. Let's handle separately.