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

Audio: Dcblock: Optimize dcblock read/write frags #5871

Merged
merged 1 commit into from Jun 1, 2022

Conversation

andrula-song
Copy link
Contributor

Optimize the read/write frags of dcblock processingg functions.
By using audio_stream_bytes_without_wrap, this optimization can
decrease about 14% MCPS.

Signed-off-by: Andrula Song xiaoyuan.song@intel.com

@andrula-song
Copy link
Contributor Author

The audio processing times for a 15s long stereo 48 kHz clip on GLK device are shown in next plot. The saving is in average 2 us or 0.77 MCPS, decrease about 14%. Upper row is after optimization, averi, lower row is before optimization.
compare

@andrula-song andrula-song requested review from singalsu and lgirdwood and removed request for lgirdwood May 31, 2022 07:01
Optimize the read/write frags of dcblock processingg functions.
By using audio_stream_bytes_without_wrap, this optimization can
decrease about 14% MCPS.

Signed-off-by: Andrula Song <xiaoyuan.song@intel.com>
@singalsu
Copy link
Collaborator

I'd expect the MCPS saving from this patch to be larger in current CML, TGL platforms. The penalty from read/write frag API usage was a lot lower in APL and I think GLK is similar with APL.

@andrula-song andrula-song marked this pull request as ready for review May 31, 2022 10:12
@andrula-song andrula-song requested a review from a team as a code owner May 31, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants