]> granicus.if.org Git - esp-idf/commit
I2S: fixed support for 24 and 32-bits, fixed tx/rx at the same time and others in...
authorTuan PM <tuanpm@live.com>
Mon, 6 Feb 2017 06:11:11 +0000 (13:11 +0700)
committerTuan PM <tuanpm@live.com>
Thu, 27 Apr 2017 03:00:10 +0000 (10:00 +0700)
commitfc1ee2666ae462de9991c8ea7a707d5717c90995
treeae3fa920a582ee537785d46171340efc5dd9a71d
parent1324e565fa8fef0fc2ed6a1c5e985af4bfc1d28b
I2S: fixed support for 24 and 32-bits, fixed tx/rx at the same time and others in log:

Add support 24, 32 bits

@jxmao optimize i2s_zero_buffer

@jxmao correct config support slave mode

@jxmao correct setup pin support tx/rx at the same time

Enhance pin power

@jxmao add dynamic change number of channels

remove nvs_init

remove start log and enhance power pin setup

using enum for i2s_channel and i2s_bits_per_sample, return ESP_ERR_INVALID_ARG when check params

validate i2s_bits_per_sample and channel

check tx & rx buffer before fill zero

remove checking channel as @jxmao suggest

limit dma buffer

modify i2s pin back to gpio mux before configure gpio matrix, resolve github issue #512

Add support 24, 32 bits

reduce push function

Modify sample can test with 24, 32-bits

Add i2s sample README

Fixed i2s_set_clk got reset sometime

can changes bit-wide while running

Fix sample rate calculation for DAC mode from @jeroen

modify example can change bits per sample every 5 seconds

cleanup

add comment for bytes_per_sample

update as @angus suggestions

Add i2s_set_clk api

I2S driver bug fixed as following log:

@jxmao optimize i2s_zero_buffer

@jxmao correct config support slave mode

@jxmao correct setup pin support tx/rx at the same time

Enhance pin power

@jxmao add dynamic change number of channels

remove nvs_init

remove start log and enhance power pin setup

using enum for i2s_channel and i2s_bits_per_sample, return ESP_ERR_INVALID_ARG when check params

validate i2s_bits_per_sample and channel

check tx & rx buffer before fill zero

remove checking channel as @jxmao suggest

limit dma buffer

modify i2s pin back to gpio mux before configure gpio matrix, resolve github issue #512

limit dma buffer to 4092

change gpio_matrix_*_check to inline function, remove some comments and rename test_i2s function to setup_triangle_sine_waves

for change commit title
components/driver/i2s.c
components/driver/include/driver/i2s.h
examples/peripherals/i2s/README.md [new file with mode: 0644]
examples/peripherals/i2s/main/i2s_example_main.c