zephyr/samples/drivers/i2s
Vit Stanicek fe11acc21c 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: Vit Stanicek <vit.stanicek@nxp.com>
2025-07-02 03:52:35 -10:00
..
echo samples: i2s echo: guard audio_codec configuration 2025-07-01 10:15:14 -05:00
i2s_codec samples: i2s_codec: Fix i2s API misuse 2025-07-02 03:52:35 -10:00
output samples: i2s: Add support for i2s SSIE on Renesas RA boards 2025-06-26 11:12:21 +02:00
README.rst

.. zephyr:code-sample-category:: i2s
   :name: I2S
   :show-listing:

   These samples demonstrate how to use the I2S driver API.