1# Copyright 2023 NXP
2# SPDX-License-Identifier: Apache-2.0
3
4config AUDIO_DMIC_MCUX
5	bool "DMIC driver for MCUX"
6	default y
7	depends on DT_HAS_NXP_DMIC_ENABLED
8	select DMA
9	help
10	  Enable support for DMIC on NXP MCUX SoC's
11
12if AUDIO_DMIC_MCUX
13
14config DMIC_MCUX_DMA_BUFFERS
15	int "Number of buffers to reserve for DMIC DMA"
16	default 2
17	range 2 16
18	help
19	  This determines how many buffers the driver should allocate and
20	  reserve for the DMA engine. The memory slab used with the DMIC
21	  API should provide at least one more buffer than this value, since
22	  a buffer will always be in the RX queue.
23
24config DMIC_MCUX_QUEUE_SIZE
25	int "Size of DMIC buffer queue"
26	default 8
27	help
28	  This sets the size of the RX buffer queue for the DMIC. Up to this
29	  many buffers may be queued by the DMIC once it is triggered, before
30	  the application must read buffers to avoid data being dropped.
31
32endif # AUDIO_DMIC_MCUX
33