# Copyright (c) 2021 Nordic Semiconductor ASA
# Copyright (c) 2025 Croxel Inc.
# Copyright 2026 NXP
# SPDX-License-Identifier: Apache-2.0

source "Kconfig.zephyr"

config I2C
	default $(dt_compat_on_bus,$(DT_COMPAT_WOLFSON_WM8731),i2c) \
		|| $(dt_compat_on_bus,$(DT_COMPAT_ADI_MAX9867),i2c)

config TOGGLE_ECHO_EFFECT_SW0
	bool "Toggle echo effect when pressing sw0"
	depends on $(dt_alias_enabled,sw0)
	select GPIO
	default y

config STOP_START_STREAMS_SW1
	bool "Start/stop I2S streams when pressing sw1"
	depends on $(dt_alias_enabled,sw1)
	select GPIO
	default y

config SAMPLE_USE_CODEC_CLOCK
	bool "I2S BCK is generated by a selected codec device"
	help
	  If selected, the I2S selected peripheral will be configured to consume
	  (receive) the I2S BCK and WS signals and the codec will be configured
	  to generate those. If not selected, the I2S peripheral will generate
	  them and the codec will be expected to consume them.
