Skip to content

Commit 219770d

Browse files
javlandskartben
authored andcommitted
drivers: audio: pcm1681: add driver
Add a basic driver for the PCM1681 and PCM1681-Q1 DAC Signed-off-by: Jaro Van Landschoot <jaro.vanlandschoot@basalte.be>
1 parent 5843156 commit 219770d

File tree

7 files changed

+600
-0
lines changed

7 files changed

+600
-0
lines changed

drivers/audio/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ zephyr_library_sources_ifdef(CONFIG_AUDIO_DMIC_MCUX dmic_mcux.c)
1313
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8904 wm8904.c)
1414
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_WM8962 wm8962.c)
1515
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_CS43L22 cs43l22.c)
16+
zephyr_library_sources_ifdef(CONFIG_AUDIO_CODEC_PCM1681 pcm1681.c)

drivers/audio/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ module-str = audio codec
3636
source "subsys/logging/Kconfig.template.log_config"
3737

3838
source "drivers/audio/Kconfig.cs43l22"
39+
source "drivers/audio/Kconfig.pcm1681"
3940
source "drivers/audio/Kconfig.tas6422dac"
4041
source "drivers/audio/Kconfig.tlv320aic3110"
4142
source "drivers/audio/Kconfig.tlv320dac"

drivers/audio/Kconfig.pcm1681

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2025 Basalte bv
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config AUDIO_CODEC_PCM1681_I2C
5+
bool
6+
default y
7+
depends on $(dt_compat_on_bus,$(DT_COMPAT_TI_PCM1681),i2c)
8+
help
9+
I2C version of pcm1681xx driver
10+
11+
config AUDIO_CODEC_PCM1681_SPI
12+
bool
13+
default y
14+
depends on $(dt_compat_on_bus,$(DT_COMPAT_TI_PCM1681),spi)
15+
help
16+
SPI version of pcm1681xx driver
17+
18+
config AUDIO_CODEC_PCM1681
19+
bool "PCM1681(-Q1) DAC support"
20+
default y
21+
depends on DT_HAS_TI_PCM1681_ENABLED
22+
select I2C if AUDIO_CODEC_PCM1681_I2C
23+
select SPI if AUDIO_CODEC_PCM1681_SPI
24+
help
25+
Enable PCM1681 or PCM1681-Q1 support

0 commit comments

Comments
 (0)