samples: i2s_codec: Factorise initial loop count
Replace hard-wired constant "2" with CONFIG_I2S_INIT_BUFFERS in the loop
where audio data is read and written.
Signed-off-by:
Vit Stanicek <vit.stanicek@nxp.com>
Loading
Please sign in to comment