Home
last modified time | relevance | path

Searched refs:chan_size (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/drivers/i2s/
Di2s_litex.c169 int chan_size = sample_width / 8; in i2s_copy_from_fifo() local
172 for (size_t i = 0; i < size / chan_size; i += 4) { in i2s_copy_from_fifo()
179 for (size_t i = 0; i < size / chan_size; i += 2) { in i2s_copy_from_fifo()
185 int max_off = chan_size - 1; in i2s_copy_from_fifo()
187 for (size_t i = 0; i < size / chan_size; ++i) { in i2s_copy_from_fifo()
191 *(dst + i * chan_size + (max_off - off)) = in i2s_copy_from_fifo()
194 *(dst + i * chan_size + off) = data >> 8 * off; in i2s_copy_from_fifo()
221 int chan_size = sample_width / 8; in i2s_copy_to_fifo() local
224 for (size_t i = 0; i < size / chan_size; i += 4) { in i2s_copy_to_fifo()
231 for (size_t i = 0; i < size / chan_size; i += 2) { in i2s_copy_to_fifo()
[all …]
/Zephyr-Core-3.5.0/drivers/audio/
Dmpxxdtyy-i2s.c99 uint8_t chan_size = cfg->streams->pcm_width; in mpxxdtyy_i2s_configure() local
127 i2s_cfg.word_size = chan_size; in mpxxdtyy_i2s_configure()
132 i2s_cfg.frame_clk_freq = audio_freq * factor / chan_size; in mpxxdtyy_i2s_configure()
133 i2s_cfg.block_size = data->pcm_mem_size * (factor / chan_size); in mpxxdtyy_i2s_configure()