Skip to content
Commit fe11acc2 authored by Vit Stanicek's avatar Vit Stanicek Committed by Dan Kalowsky
Browse files

samples: i2s_codec: Fix i2s API misuse



Replace i2s_write invocation with i2s_buf_write invocation for test sine
wave playback.

When CONFIG_USE_DMIC=n, this sample attempts to play back a test sine
wave encoded in sine.h. As the i2s_write treats the given buffer as a
memory slab, it overwrites parts of it, resulting in data corruption and
improper playback. i2s_buf_write accepts a buffer existing outside the
playback queue (heap).

Manually tested on mimxrt595_evk/mimxrt595s/cm33 where it was first
observed.

Signed-off-by: default avatarVit Stanicek <vit.stanicek@nxp.com>
parent b93dec92
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment