drivers: audio: Add audio support in Kconfig

Added an entry in drivers/Kconfig for audio
Added an entry in drivers/audio/Kconfig for audio codec
Added an Kconfig file in drivers/audio/ for TLV320DAC
Enabled audio coded in Intel S1000 CRB defconfig

Signed-off-by: Sathish Kuttan <sathish.k.kuttan@intel.com>
This commit is contained in:
Sathish Kuttan 2018-07-26 09:22:10 -07:00 committed by Anas Nashif
commit 73c1093229
4 changed files with 64 additions and 0 deletions

47
drivers/audio/Kconfig Normal file
View file

@ -0,0 +1,47 @@
# Kconfig - Audio Codec configuration options
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig AUDIO
bool "Support for Audio"
help
Enable support for Audio
if AUDIO
#
# Audio Codec options
#
menuconfig AUDIO_CODEC
bool "Audio Codec Drivers"
help
Enable Audio Codec Driver Configuration
if AUDIO_CODEC
config AUDIO_CODEC_INIT_PRIORITY
int "Init priority"
default 60
help
Audio codec device driver initialization priority.
config SYS_LOG_AUDIO_CODEC_LEVEL
int "Audio codec driver log level"
depends on SYS_LOG
default 0
help
Sets log level for Audio codec drivers.
Levels are:
- 0 OFF, do not write
- 1 ERROR, only write SYS_LOG_ERR
- 2 WARNING, write SYS_LOG_WRN in addition to previous level
- 3 INFO, write SYS_LOG_INF in addition to previous levels
- 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
source "drivers/audio/Kconfig.tlv320dac"
endif # AUDIO_CODEC
endif # AUDIO

View file

@ -0,0 +1,11 @@
#
# Copyright (c) 2018 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig AUDIO_TLV320DAC
bool "TLV320DAC310x DAC support"
depends on I2C
help
Enable TLV320DAC support on the selected board