diff --git a/ports/psoc6/machine_i2s.c b/ports/psoc6/machine_i2s.c index a0947202d9fe3..61a0c2878d78f 100644 --- a/ports/psoc6/machine_i2s.c +++ b/ports/psoc6/machine_i2s.c @@ -230,13 +230,14 @@ static void i2s_dma_from_ringbuf_to_dmabuf(machine_i2s_obj_t *self) { } static void fill_app_buffer(machine_i2s_obj_t *self) { - for (uint16_t i = 0; i < SIZEOF_HALF_DMA_BUFFER; i++) + for (uint16_t i = 0; i < SIZEOF_HALF_DMA_BUFFER_IN_BYTES; i++) { // uint32_t value = i | (i + 1) << 8 | (i + 2) << 16 | (i + 3) << 24; // self->dma_idle_buf_p[i] = value; - for (uint8_t j = 0; j < 4; j++) { - ringbuf_push(&self->ring_buffer, i + j); - } + // for (uint8_t j = 0; j < 4; j++) { + // ringbuf_push(&self->ring_buffer, i + j); + ringbuf_push(&self->ring_buffer, i); + // } } }