Skip to content

Commit 23261a6

Browse files
koalopopcornmix
authored andcommitted
ASoC: Add support for BCM2708
This driver adds support for digital audio (I2S) for the BCM2708 SoC that is used by the Raspberry Pi. External audio codecs can be connected to the Raspberry Pi via P5 header. It relies on cyclic DMA engine support for BCM2708. Signed-off-by: Florian Meier <florian.meier@koalo.de>
1 parent 654a49c commit 23261a6

5 files changed

Lines changed: 956 additions & 0 deletions

File tree

‎sound/soc/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ config SND_SOC_GENERIC_DMAENGINE_PCM
3333
# All the supported SoCs
3434
source "sound/soc/atmel/Kconfig"
3535
source "sound/soc/au1x/Kconfig"
36+
source "sound/soc/bcm/Kconfig"
3637
source "sound/soc/blackfin/Kconfig"
3738
source "sound/soc/cirrus/Kconfig"
3839
source "sound/soc/davinci/Kconfig"

‎sound/soc/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ obj-$(CONFIG_SND_SOC) += codecs/
1010
obj-$(CONFIG_SND_SOC) += generic/
1111
obj-$(CONFIG_SND_SOC) += atmel/
1212
obj-$(CONFIG_SND_SOC) += au1x/
13+
obj-$(CONFIG_SND_SOC) += bcm/
1314
obj-$(CONFIG_SND_SOC) += blackfin/
1415
obj-$(CONFIG_SND_SOC) += cirrus/
1516
obj-$(CONFIG_SND_SOC) += davinci/

‎sound/soc/bcm/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
config SND_BCM2708_SOC_I2S
2+
tristate "SoC Audio support for the Broadcom BCM2708 I2S module"
3+
depends on MACH_BCM2708
4+
select REGMAP_MMIO
5+
select SND_SOC_DMAENGINE_PCM
6+
select SND_SOC_GENERIC_DMAENGINE_PCM
7+
help
8+
Say Y or M if you want to add support for codecs attached to
9+
the BCM2708 I2S interface. You will also need
10+
to select the audio interfaces to support below.

‎sound/soc/bcm/Makefile‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# BCM2708 Platform Support
2+
snd-soc-bcm2708-i2s-objs := bcm2708-i2s.o
3+
4+
obj-$(CONFIG_SND_BCM2708_SOC_I2S) += snd-soc-bcm2708-i2s.o

0 commit comments

Comments
 (0)