drivers: audio: Update Kconfig

* Utilize DT_HAS_<COMPAT>_ENABLED for devicetree based drivers
* Move to using 'select I2C'/'select I2S' instead of 'depends on'
  (see commit df81fef944 for
   more details)

Signed-off-by: Kumar Gala <galak@kernel.org>
This commit is contained in:
Kumar Gala 2022-08-11 23:13:21 -05:00 committed by Kumar Gala
parent 6573f9e195
commit b37f393079
3 changed files with 8 additions and 3 deletions

View file

@ -3,8 +3,8 @@
config AUDIO_DMIC_NRFX_PDM
bool "nRF PDM nrfx driver"
depends on HAS_HW_NRF_PDM
default y
depends on DT_HAS_NORDIC_NRF_PDM_ENABLED
select NRFX_PDM
help
Enable support for nrfx PDM driver for nRF MCU series.

View file

@ -3,7 +3,9 @@
config AUDIO_MPXXDTYY
bool "ST Digital PDM microphone attached to I2S support"
depends on I2S
default y
depends on DT_HAS_ST_MPXXDTYY_ENABLED
select I2S
select HAS_STLIB
help
Enable MPXXDTYY microphone support on the selected board

View file

@ -3,6 +3,9 @@
config AUDIO_TLV320DAC
bool "TLV320DAC310x DAC support"
depends on I2C && GPIO
default y
depends on DT_HAS_TI_TLV320DAC_ENABLED
select I2C
depends on GPIO
help
Enable TLV320DAC support on the selected board