Skip to content

hw/drivers/i2s: Fix sample count for nrfx in i2s buffers#3118

Merged
kasjer merged 1 commit intoapache:masterfrom
kasjer:kasjer/i2s_nrfx-fix-sample_count-for-mic
Dec 11, 2023
Merged

hw/drivers/i2s: Fix sample count for nrfx in i2s buffers#3118
kasjer merged 1 commit intoapache:masterfrom
kasjer:kasjer/i2s_nrfx-fix-sample_count-for-mic

Conversation

@kasjer
Copy link
Contributor

@kasjer kasjer commented Dec 11, 2023

For i2s in (microphone) sample_count was never set. It resulted in buffers returned to i2s client with no data. Now capacity is copied to sample_count as it is actual number of samples that were captured.

Same fix was applied long time ago to STM32F4 driver.

For i2s in (microphone) sample_count was never set.
It resulted in buffers returned to i2s client with no data.
Now capacity is copied to sample_count as it is actual number
of samples that were captured.

Same fix was applied long time ago to STM32F4 driver.
@kasjer kasjer merged commit 30fc00a into apache:master Dec 11, 2023
@kasjer kasjer deleted the kasjer/i2s_nrfx-fix-sample_count-for-mic branch December 11, 2023 14:28
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.

2 participants