# Dai driver configuration options

# Copyright (c) 2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

#
# DAI Drivers
#
menuconfig DAI
	bool "Digital Audio Interface (DAI) drivers"
	help
	  Enable support for the DAI interface drivers.

if DAI

config DAI_INIT_PRIORITY
	int "Init priority"
	default 70
	help
	  Device driver initialization priority.

config DAI_USERSPACE
	bool "DAI user-space support"
	depends on USERSPACE
	help
	  Expose the DAI interface to user-space threads via syscalls.

config DAI_MAX_BESPOKE_CFG_SIZE
	int "Maximum bespoke configuration blob size"
	default 1024
	depends on DAI_USERSPACE
	range 256 4096
	help
	  Maximum size of bespoke configuration objects passed to the DAI
	  driver via syscalls. The objects are temporarily allocated on the
	  stack for validation when copied from user-space to kernel memory.

module = DAI
module-str = dai
source "subsys/logging/Kconfig.template.log_config"

comment "Device Drivers"

# zephyr-keep-sorted-start
source "drivers/dai/amd/sdw/Kconfig.acp_sdw_dai"
source "drivers/dai/amd/tdm/Kconfig.acp_tdm_dai"
source "drivers/dai/intel/alh/Kconfig.alh"
source "drivers/dai/intel/dmic/Kconfig.dmic"
source "drivers/dai/intel/hda/Kconfig.hda"
source "drivers/dai/intel/ssp/Kconfig.ssp"
source "drivers/dai/intel/uaol/Kconfig.uaol"
source "drivers/dai/nxp/esai/Kconfig.esai"
source "drivers/dai/nxp/micfil/Kconfig.micfil"
source "drivers/dai/nxp/sai/Kconfig.sai"
# zephyr-keep-sorted-stop

endif # DAI
