Skip to content

Conversation

@iganakov
Copy link
Contributor

@iganakov iganakov commented Jun 5, 2024

When aggregating streams using dai_zephyr_multi_endpoint_copy() multiple glitches observed in audio streams with odd number of channels. Use audio_stream_avail_frames_aligned() for every dai in a loop to correctly calculate processing frames.

@iganakov iganakov force-pushed the iganakov/multi_endpoint_copy_fix branch from fc9ad55 to 6bdc7d4 Compare June 7, 2024 09:09
@iganakov iganakov force-pushed the iganakov/multi_endpoint_copy_fix branch 2 times, most recently from 2f8bcfd to 26e362a Compare June 11, 2024 10:32
@iganakov iganakov force-pushed the iganakov/multi_endpoint_copy_fix branch from 26e362a to 31bf254 Compare June 19, 2024 14:17
@iganakov iganakov force-pushed the iganakov/multi_endpoint_copy_fix branch from 31bf254 to 04cc408 Compare June 19, 2024 14:29
When aggregating streams using dai_zephyr_multi_endpoint_copy()
multiple glitches observed in audio streams with odd number of channels.
Use audio_stream_avail_frames_aligned() for every dai in a loop
to correctly calculate processing frames.

Signed-off-by: Ievgen Ganakov <ievgen.ganakov@intel.com>
@iganakov iganakov force-pushed the iganakov/multi_endpoint_copy_fix branch from 04cc408 to 25fbae0 Compare June 19, 2024 15:57
@kv2019i
Copy link
Collaborator

kv2019i commented Jun 20, 2024

This doesn't look good in the CI results https://sof-ci.01.org/sofpr/PR9196/build5811/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-playback-10sec I don't think we have this in baseline.

@lgirdwood
Copy link
Member

This doesn't look good in the CI results https://sof-ci.01.org/sofpr/PR9196/build5811/devicetest/index.html?model=LNLM_SDW_AIOC&testcase=check-playback-10sec I don't think we have this in baseline.

@iganakov I dont think any of the CI tests are doing odd number of channels wrt the number of test failures, this looks like we have impact on even channel numbers too.

@lgirdwood lgirdwood added this to the v2.11 milestone Jun 25, 2024
@iganakov
Copy link
Contributor Author

@kv2019i @lgirdwood I'm able to reproduce the issue with Windows driver also. Looks like something has changed in FW since I implemented this fix some time ago. Let me find the root cause.

Copy link
Contributor

@dnikodem dnikodem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As CI is failing please do not merge this PR.

@iganakov iganakov changed the title dai-zephyr: use frames aligned for multi-endpoint copy [DNM] dai-zephyr: use frames aligned for multi-endpoint copy Jul 3, 2024
@kv2019i
Copy link
Collaborator

kv2019i commented Sep 6, 2024

Release reminder - one week to v2.11-rc1.

frames_aligned =
audio_stream_avail_frames_aligned(&dd[i]->dma_buffer->stream,
&multi_endpoint_buffer->stream);
frames = MIN(frames, frames_aligned);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't stat be used? If not - do we still need dma_get_status()?

@kv2019i kv2019i modified the milestones: v2.11, v2.12 Sep 13, 2024
@lgirdwood
Copy link
Member

@iganakov any update ?

@kv2019i
Copy link
Collaborator

kv2019i commented Dec 13, 2024

Feature cutoff for v2.12 today, @iganakov any update? This is a bugfix, so we can still take it to the release, but at minimum needs a rebase.

@kv2019i kv2019i modified the milestones: v2.12, v2.13 Jan 3, 2025
@kv2019i
Copy link
Collaborator

kv2019i commented Jan 3, 2025

Stable v2.13 branched, moving this forward.

@kv2019i
Copy link
Collaborator

kv2019i commented Apr 23, 2025

No update in two releases, moving to TBD milesotne. FYI @iganakov @abonislawski

@kv2019i kv2019i modified the milestones: v2.13, TBD Apr 23, 2025
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.

6 participants