Home
last modified time | relevance | path

Searched full:i2s (Results 1 – 25 of 381) sorted by relevance

12345678910>>...16

/Zephyr-latest/drivers/i2s/
DKconfig1 # I2S (Inter-IC Sound) driver configuration options
7 # I2S Drivers
9 menuconfig I2S config
10 bool "Inter-IC Sound (I2S) bus drivers"
12 Enable support for the I2S (Inter-IC Sound) hardware bus.
14 if I2S
22 module = I2S
23 module-str = i2s
28 source "drivers/i2s/Kconfig.*"
30 endif # I2S
DKconfig.esp326 bool "ESP32 I2S driver"
12 Enables the ESP32 I2S driver (GDMA SoCs only).
17 int "ESP32 I2S RX block count"
20 Max number of blocks waiting to be read from the I2S RX channel.
23 int "ESP32 I2S TX block count"
26 Max number of blocks waiting to be transmitted by the I2S TX channel.
DKconfig.mcux1 # MCUX I2S driver configuration options
7 bool "NXP MCUX I2S controller driver"
13 Enable I2S support on the I.MX family of processors.
26 int "I2S EDMA BURST SIZE"
29 I2S EDMA burst size in bytes.
Di2s_ll_stm32.c11 #include <zephyr/drivers/i2s.h>
116 LOG_ERR("Could not enable I2S clock"); in i2s_stm32_enable_clock()
121 /* Enable I2S clock source */ in i2s_stm32_enable_clock()
126 LOG_ERR("Could not configure I2S domain clock"); in i2s_stm32_enable_clock()
176 LL_I2S_SetPrescalerLinear(cfg->i2s, i2s_div); in i2s_stm32_set_clock()
177 LL_I2S_SetPrescalerParity(cfg->i2s, i2s_odd); in i2s_stm32_set_clock()
191 * When I2S data format is selected parameter channels is ignored, in i2s_stm32_configure()
238 /* set I2S bitclock */ in i2s_stm32_configure()
257 /* set I2S Master Clock output in the MCK pin, enabled in the DT */ in i2s_stm32_configure()
259 LL_I2S_EnableMasterClock(cfg->i2s); in i2s_stm32_configure()
[all …]
Di2s_ll_stm32.h25 SPI_TypeDef *i2s; member
62 /* checks that DMA Tx packet is fully transmitted over the I2S */
63 static inline uint32_t ll_func_i2s_dma_busy(SPI_TypeDef *i2s) in ll_func_i2s_dma_busy() argument
66 return LL_SPI_IsActiveFlag_TXC(i2s) == 0; in ll_func_i2s_dma_busy()
68 /* the I2S Tx empty and busy flags are needed */ in ll_func_i2s_dma_busy()
69 return (LL_SPI_IsActiveFlag_TXE(i2s) && in ll_func_i2s_dma_busy()
70 !LL_SPI_IsActiveFlag_BSY(i2s)); in ll_func_i2s_dma_busy()
Di2s_litex.h11 #include <zephyr/drivers/i2s.h>
15 /* i2s configuration mask*/
23 /* i2s control register options*/
26 /* i2s event*/
28 /* i2s event types*/
31 /* i2s rx*/
39 /* i2s tx*/
47 /* i2s register offsets (they are the same for all i2s nodes, both rx and tx) */
/Zephyr-latest/tests/drivers/i2s/i2s_speed/
Dtestcase.yaml2 drivers.i2s.speed:
3 depends_on: i2s
6 - i2s
8 drivers.i2s.speed.gpio_loopback:
10 - i2s
14 - i2s
/Zephyr-latest/samples/drivers/i2s/output/
DREADME.rst1 .. zephyr:code-sample:: i2s-output
2 :name: I2S output
5 Send I2S output stream
10 This sample demonstrates how to use an I2S driver to send an output stream of
11 audio data. Currently, no codec is used with this sample. The I2S output can
15 The I2S TX queue will then be drained, and audio output will stop.
20 The I2S device to be used by the sample is specified by defining
28 The code can be found in :zephyr_file:`samples/drivers/i2s/output`.
33 :zephyr-app: samples/drivers/i2s/output
Dsample.yaml2 description: I2S Output Sample
6 depends_on: i2s
8 sample.drivers.i2s.output:
9 filter: dt_alias_exists("i2s-tx")
/Zephyr-latest/tests/drivers/i2s/i2s_api/boards/
Dlpcxpresso55s69_lpc55s69_cpu0.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver
3 * i2s-node1 is the transmitter
8 i2s-node0 = &i2s0;
9 i2s-node1 = &i2s1;
Dmimxrt685_evk_mimxrt685s_cm33.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver
3 * i2s-node1 is the transmitter
8 i2s-node0 = &i2s0;
9 i2s-node1 = &i2s1;
Dlitex_vexriscv.overlay1 /* i2s-node0 is the receiver
2 * i2s-node1 is the transmitter
7 i2s-node0 = &i2s_rx;
8 i2s-node1 = &i2s_tx;
Dmimxrt1170_evk_mimxrt1176_cm7_A.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver - uses SAI1 peripheral on RT1170
3 * i2s-node1 is the transmitter - uses SAI4 peripheral
8 i2s-node0 = &sai1;
9 i2s-node1 = &sai4;
/Zephyr-latest/tests/drivers/i2s/i2s_speed/boards/
Dlpcxpresso55s69_lpc55s69_cpu0.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver
3 * i2s-node1 is the transmitter
8 i2s-node0 = &i2s0;
9 i2s-node1 = &i2s1;
Dmimxrt685_evk_mimxrt685s_cm33.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver
3 * i2s-node1 is the transmitter
8 i2s-node0 = &i2s0;
9 i2s-node1 = &i2s1;
Dmimxrt595_evk_mimxrt595s_cm33.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver
3 * i2s-node1 is the transmitter
8 i2s-node0 = &i2s0;
9 i2s-node1 = &i2s1;
Dlitex_vexriscv.overlay1 /* i2s-node0 is the receiver
2 * i2s-node1 is the transmitter
7 i2s-node0 = &i2s_rx;
8 i2s-node1 = &i2s_tx;
Dmimxrt1170_evk_mimxrt1176_cm7.overlay1 /* i2s_speed with CONFIG_I2S_TEST_SEPARATE_DEVICES=y uses two I2S peripherals:
2 * i2s-node0 is the receiver - uses SAI1 peripheral on RT1170
3 * i2s-node1 is the transmitter - uses SAI4 peripheral
8 i2s-node0 = &sai1;
9 i2s-node1 = &sai4;
/Zephyr-latest/samples/subsys/usb/uac2_implicit_feedback/
DREADME.rst6 on I2S interface.
18 Target must be able to measure I2S block start (i.e. first sample from output
23 experience it is necessary to connect external I2S ADC and I2S DAC, simple echo
24 can be accomplished by shorting I2S data output with I2S data input.
27 I2S and USB interrupts, but currently neither subsystem currently provides
/Zephyr-latest/samples/boards/enjoydigital/litex/i2s/
Dsample.yaml2 description: I2S sample
4 name: i2s example
6 sample.drivers.i2s.litex:
13 - "i2s example (.*)"
/Zephyr-latest/samples/subsys/usb/uac2_explicit_feedback/
DREADME.rst5 USB Audio 2 explicit feedback sample playing audio on I2S.
11 explicit feedback. It can run on any board with USB and I2S support, but the
23 that 1 ms according to audio sink (I2S) will be either slightly longer or
33 obtain the timing information based on I2S and USB interrupts, but currently
39 The nRF5340 is capable of counting both edges of I2S LRCLK relative to USB SOF
42 provide relative timing information between I2S FRAMESTART and USB SOF.
44 This sample in both modes (direct sample counting and indirect I2S buffer output
48 counting requires external connection between I2S LRCLK output pin to GPIOTE
51 I2S device connected where I2S signals can be checked e.g. on logic analyzer.
/Zephyr-latest/boards/nxp/lpcxpresso55s69/
Dboard.c19 * sets are used to enable one I2S device to handle RX and one to handle in lpcxpresso_55s69_board_init()
23 /* Set shared signal set 0 SCK, WS from Transmit I2S - Flexcomm 7 */ in lpcxpresso_55s69_board_init()
28 /* Select Data in from Transmit I2S - Flexcomm 7 */ in lpcxpresso_55s69_board_init()
30 /* Enable Transmit I2S - Flexcomm 7 for Shared Data Out */ in lpcxpresso_55s69_board_init()
34 /* Set Receive I2S - Flexcomm 6 SCK, WS from shared signal set 0 */ in lpcxpresso_55s69_board_init()
38 /* Set Transmit I2S - Flexcomm 7 SCK, WS from shared signal set 0 */ in lpcxpresso_55s69_board_init()
43 /* Select Receive I2S - Flexcomm 6 Data in from shared signal set 0 */ in lpcxpresso_55s69_board_init()
45 /* Select Transmit I2S - Flexcomm 7 Data out to shared signal set 0 */ in lpcxpresso_55s69_board_init()
/Zephyr-latest/samples/drivers/i2s/echo/
Dsample.yaml2 name: I2S echo sample
4 sample.drivers.i2s.echo:
5 tags: i2s
16 - "I2S echo sample"
/Zephyr-latest/tests/drivers/i2s/i2s_api/src/
Dtest_i2s_errors.c9 #include <zephyr/drivers/i2s.h>
34 …"I2S configuration did not detect improper data format (I2S_FMT_DATA_FORMAT_LEFT_JUSTIFIED | I2S_F… in ZTEST_USER()
41 "I2S configuration did not detect improper stream format (I2S_FMT_DATA_ORDER_LSB)"); in ZTEST_USER()
47 "I2S configuration did not detect improper channels configuration (3)"); in ZTEST_USER()
66 zassert_equal(err, 0, "I2S interface configuration failed, err=%d", err); in ZTEST_USER()
69 zassert_equal(err, 0, "I2S buffer write unexpected error: %d", err); in ZTEST_USER()
81 "I2S configuration should not be possible in states other than I2S_STATE_READY"); in ZTEST_USER()
102 zassert_equal(err, 0, "I2S buffer write unexpected error: %d", err); in ZTEST_USER()
105 zassert_equal(err, -EINVAL, "I2S invalid trigger setting not detected: err=%d", err); in ZTEST_USER()
123 zassert_equal(err, 0, "I2S interface NOT_READY state transition failed. err=%d", err); in ZTEST_USER()
[all …]
/Zephyr-latest/tests/drivers/i2s/i2s_api/
Dtestcase.yaml2 drivers.i2s:
3 depends_on: i2s
11 drivers.i2s.gpio_loopback:
13 - i2s

12345678910>>...16