8000 buffer: init channels to 2 by cujomalainey · Pull Request #9528 · thesofproject/sof · GitHub
[go: up one dir, main page]

Skip to content

buffer: init channels to 2#9528

Merged
lgirdwood merged 1 commit intothesofproject:mainfrom
cujomalainey:buff
Oct 1, 2024
Merged

buffer: init channels to 2#9528
lgirdwood merged 1 commit intothesofproject:mainfrom
cujomalainey:buff

Conversation

@cujomalainey
Copy link
Contributor

On initialization we use rzalloc which 0s out all fields. We later call audio_stream_recalc_align which uses the frame_bytes to align the buffer. This is problematic as clz() is passed the size of the frame size which is 0 since channel is 0 and passing 0 to clz is undefined behaviour.

On initialization we use rzalloc which 0s out all fields. We later call
audio_stream_recalc_align which uses the frame_bytes to align the buffer.
This is problematic as clz() is passed the size of the frame size which
is 0 since channel is 0 and passing 0 to clz is undefined behaviour.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
@lgirdwood lgirdwood merged commit 31e22e6 into thesofproject:main Oct 1, 2024
@cujomalainey cujomalainey deleted the buff branch October 1, 2024 13:58
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.

3 participants

0