everywhere: fix typos
Fix a lot of typos Signed-off-by: Nazar Kazakov <nazar.kazakov.work@gmail.com>
This commit is contained in:
parent
210ed711a3
commit
9713f0d47c
331 changed files with 478 additions and 478 deletions
|
@ -24,6 +24,6 @@ config I2S_EDMA_BURST_SIZE
|
|||
int "I2S EDMA BURST SIZE"
|
||||
default 2
|
||||
help
|
||||
I2S EDMA burse size in byte.
|
||||
I2S EDMA burst size in bytes.
|
||||
|
||||
endif # I2S_MCUX_SAI
|
||||
|
|
|
@ -147,7 +147,7 @@ static void i2s_dma_tx_callback(const struct device *dma_dev, void *arg,
|
|||
/*
|
||||
* DMA encountered an error (status != 0)
|
||||
* or
|
||||
* No bufers in input queue
|
||||
* No buffers in input queue
|
||||
*/
|
||||
LOG_ERR("DMA status %08x channel %u k_msgq_get ret %d",
|
||||
status, channel, ret);
|
||||
|
@ -588,7 +588,7 @@ static void i2s_tx_stream_disable(struct i2s_cavs_dev_data *dev_data,
|
|||
unsigned int key;
|
||||
|
||||
/*
|
||||
* Enable transmit undderrun interrupt to allow notification
|
||||
* Enable transmit underrun interrupt to allow notification
|
||||
* upon transmit FIFO being emptied.
|
||||
* Defer disabling of TX to the underrun processing in ISR
|
||||
*/
|
||||
|
|
|
@ -157,7 +157,7 @@ static void i2s_clear_pending_irq(uintptr_t reg)
|
|||
*
|
||||
* @param dst memory destination where fifo data will be copied to
|
||||
* @param size amount of data to be copied
|
||||
* @param sample_width width of signle sample in bits
|
||||
* @param sample_width width of single sample in bits
|
||||
* @param channels number of received channels
|
||||
*/
|
||||
static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width,
|
||||
|
@ -169,7 +169,7 @@ static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width,
|
|||
if (channels == 2) {
|
||||
for (size_t i = 0; i < size / chan_size; i += 4) {
|
||||
/* using sys_read function, as fifo is not a csr,
|
||||
* but a contignous memory space
|
||||
* but a contiguous memory space
|
||||
*/
|
||||
*(dst + i) = sys_read32(I2S_RX_FIFO_ADDR);
|
||||
}
|
||||
|
@ -210,7 +210,7 @@ static void i2s_copy_from_fifo(uint8_t *dst, size_t size, int sample_width,
|
|||
*
|
||||
* @param src memory from which data will be copied to fifo
|
||||
* @param size amount of data to be copied in bytes
|
||||
* @param sample_width width of signle sample in bits
|
||||
* @param sample_width width of single sample in bits
|
||||
* @param channels number of received channels
|
||||
*/
|
||||
static void i2s_copy_to_fifo(uint8_t *src, size_t size, int sample_width,
|
||||
|
@ -369,7 +369,7 @@ static int i2s_litex_configure(const struct device *dev, enum i2s_dir dir,
|
|||
(cfg->fifo_depth * (i2s_cfg->word_size / 8)) / channel_div;
|
||||
|
||||
if (i2s_cfg->block_size < req_buf_s) {
|
||||
LOG_ERR("not enough space to allocate signle buffer");
|
||||
LOG_ERR("not enough space to allocate single buffer");
|
||||
LOG_ERR("fifo requires at least %i bytes", req_buf_s);
|
||||
return -EINVAL;
|
||||
} else if (i2s_cfg->block_size != req_buf_s) {
|
||||
|
|
|
@ -453,7 +453,7 @@ static void i2s_mcux_dma_tx_callback(const struct device *dma_dev, void *arg,
|
|||
/*
|
||||
* DMA encountered an error (status != 0)
|
||||
* or
|
||||
* No bufers in input queue
|
||||
* No buffers in input queue
|
||||
*/
|
||||
LOG_DBG("DMA status %08x channel %u k_msgq_get ret %d",
|
||||
status, channel, ret);
|
||||
|
@ -591,7 +591,7 @@ static int i2s_mcux_rx_stream_start(const struct device *dev)
|
|||
num_of_bufs = k_mem_slab_num_free_get(stream->cfg.mem_slab);
|
||||
|
||||
/*
|
||||
* Need at least two bffers on the RX memory slab for
|
||||
* Need at least two buffers on the RX memory slab for
|
||||
* reliable DMA reception.
|
||||
*/
|
||||
if (num_of_bufs <= 1) {
|
||||
|
|
|
@ -232,7 +232,7 @@ static void i2s_dma_tx_callback(const struct device *dma_dev,
|
|||
if (ret || status) {
|
||||
/*
|
||||
* DMA encountered an error (status != 0)
|
||||
* or No bufers in input queue
|
||||
* or No buffers in input queue
|
||||
*/
|
||||
LOG_ERR("DMA status %08x chan %u get ret %d",
|
||||
status, channel, ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue