if(CONFIG_DRIVERS_AUDIO)
set(SRCS)
if(CONFIG_AUDIO_VS1053)
list(APPEND SRCS vs1053.c)
endif()
if(CONFIG_AUDIO_CS43L22)
list(APPEND SRCS cs43l22.c)
if(CONFIG_CS43L22_REGDUMP)
list(APPEND SRCS cs43l22_debug.c)
elseif(CONFIG_CS43L22_CLKDEBUG)
list(APPEND SRCS cs43l22_debug.c)
endif()
endif()
if(CONFIG_AUDIO_CS4344)
list(APPEND SRCS cs4344.c)
endif()
if(CONFIG_AUDIO_ES8311)
list(APPEND SRCS es8311.c)
if(CONFIG_ES8311_REGDUMP)
list(APPEND SRCS es8311_debug.c)
endif()
endif()
if(CONFIG_AUDIO_ES8388)
list(APPEND SRCS es8388.c)
if(CONFIG_ES8388_REGDUMP)
list(APPEND SRCS es8388_debug.c)
endif()
endif()
if(CONFIG_AUDIO_WM8994)
list(APPEND SRCS wm8994.c)
if(CONFIG_WM8994_REGDUMP)
list(APPEND SRCS wm8994_debug.c)
elseif(CONFIG_WM8994_CLKDEBUG)
list(APPEND SRCS wm8994_debug.c)
endif()
endif()
if(CONFIG_AUDIO_WM8904)
list(APPEND SRCS wm8904.c)
if(CONFIG_WM8904_REGDUMP)
list(APPEND SRCS wm8904_debug.c)
elseif(CONFIG_WM8904_CLKDEBUG)
list(APPEND SRCS wm8904_debug.c)
endif()
endif()
if(CONFIG_AUDIO_WM8776)
list(APPEND SRCS wm8776.c)
endif()
if(CONFIG_AUDIO_NULL)
list(APPEND SRCS audio_null.c)
endif()
if(CONFIG_AUDIO_FAKE)
list(APPEND SRCS audio_fake.c)
endif()
if(CONFIG_AUDIO_TONE)
list(APPEND SRCS tone.c)
endif()
if(CONFIG_AUDIO_I2S)
list(APPEND SRCS audio_i2s.c)
endif()
if(CONFIG_AUDIO_DMA)
list(APPEND SRCS audio_dma.c)
endif()
if(CONFIG_AUDIO_RPMSG)
list(APPEND SRCS audio_rpmsg.c)
endif()
if(CONFIG_AUDIO_TUNNEL)
list(APPEND SRCS audio_tunnel.c)
endif()
target_sources(drivers PRIVATE ${SRCS})
endif()