Skip to content

Commit

Permalink
drivers: audio: Adds support for CS35L45 smart amplifier
Browse files Browse the repository at this point in the history
Adds basic audio functionality for the CS35L45 smart amplifier.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
  • Loading branch information
rriveramcrus committed Sep 27, 2024
1 parent 251a39b commit 557eb6e
Show file tree
Hide file tree
Showing 5 changed files with 741 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ zephyr_library_sources_ifdef(CONFIG_AUDIO_TAS6422DAC tas6422dac.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_SHELL codec_shell.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_DMIC_MCUX dmic_mcux.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8904 wm8904.c)
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_CS35L45 cs35l45.c)
1 change: 1 addition & 0 deletions drivers/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ source "subsys/logging/Kconfig.template.log_config"
source "drivers/audio/Kconfig.tas6422dac"
source "drivers/audio/Kconfig.tlv320dac"
source "drivers/audio/Kconfig.wm8904"
source "drivers/audio/Kconfig.cs35l45"

endif # AUDIO_CODEC

Expand Down
11 changes: 11 additions & 0 deletions drivers/audio/Kconfig.cs35l45
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2024 Cirrus Logic, Inc.
# SPDX-License-Identifier: Apache-2.0

config AUDIO_CODEC_CS35L45
bool "Cirrus Logic CS35L45 codec support"
depends on DT_HAS_CIRRUS_CS35L45_ENABLED
select I2C if $(dt_compat_on_bus,$(DT_COMPAT_CIRRUS_CS35L45),i2c)
select GPIO
select REGULATOR
help
Enable driver for CS35L45 smart amplifier
Loading

0 comments on commit 557eb6e

Please sign in to comment.