Skip to content

Commit b515718

Browse files
sound: soc: raspberrypi: RP1 Audio Out driver as an ASOC DAI
Only 48000Hz stereo 16-bit output is currently supported. It requires some additional OF plumbing to connect it to a "dummy" codec and generic sound card. Signed-off-by: Nick Hollinghurst <[email protected]>
1 parent 0015b33 commit b515718

File tree

6 files changed

+387
-0
lines changed

6 files changed

+387
-0
lines changed

arch/arm64/configs/bcm2712_defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,7 @@ CONFIG_SND_PISOUND=m
11511151
CONFIG_SND_DACBERRY400=m
11521152
CONFIG_SND_DESIGNWARE_I2S=m
11531153
CONFIG_SND_DESIGNWARE_PCM=y
1154+
CONFIG_SND_RP1_AUDIO_OUT=m
11541155
CONFIG_SND_SOC_AD193X_SPI=m
11551156
CONFIG_SND_SOC_AD193X_I2C=m
11561157
CONFIG_SND_SOC_ADAU1701=m

sound/soc/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ source "sound/soc/meson/Kconfig"
106106
source "sound/soc/mxs/Kconfig"
107107
source "sound/soc/pxa/Kconfig"
108108
source "sound/soc/qcom/Kconfig"
109+
source "sound/soc/raspberrypi/Kconfig"
109110
source "sound/soc/rockchip/Kconfig"
110111
source "sound/soc/samsung/Kconfig"
111112
source "sound/soc/sh/Kconfig"

sound/soc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ obj-$(CONFIG_SND_SOC) += mxs/
5959
obj-$(CONFIG_SND_SOC) += kirkwood/
6060
obj-$(CONFIG_SND_SOC) += pxa/
6161
obj-$(CONFIG_SND_SOC) += qcom/
62+
obj-$(CONFIG_SND_SOC) += raspberrypi/
6263
obj-$(CONFIG_SND_SOC) += rockchip/
6364
obj-$(CONFIG_SND_SOC) += samsung/
6465
obj-$(CONFIG_SND_SOC) += sh/

sound/soc/raspberrypi/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
config SND_RP1_AUDIO_OUT
3+
tristate "PWM Audio Out from RP1"
4+
help
5+
Say Y or M if you want to add support for PWM digital
6+
audio output from a Raspberry Pi 5, 500 or CM5.
7+
8+
Output is from RP1 GPIOs pins 12 and 13 only, and additional
9+
components will be needed. It may be useful when HDMI, I2S
10+
or USB audio devices are unavailable, or for compatibility.

sound/soc/raspberrypi/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
obj-$(CONFIG_SND_RP1_AUDIO_OUT) += rp1_aout.o

0 commit comments

Comments
 (0)