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