Skip to content

Commit

Permalink
[ALSA] SH7760 ASoC support
Browse files Browse the repository at this point in the history
ALSA ASoC support for SH7760
This patch adds ALSA ASoC drivers for the Audio interfaces
of the SH7760 SoC:
Add driver for the SH7760 DMA engine (dmabrg)
Add AC97 driver for HAC unit(s) found on SH7760/SH7780
Add I2S driver for SSI unit(s) found on SH7760/SH7780
Add a generic SH7760-AC97 machine driver.
Hook it all up with the build system.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
  • Loading branch information
Manuel Lauss authored and Jaroslav Kysela committed Jul 20, 2007
1 parent 80ab1c0 commit aef3b06
Show file tree
Hide file tree
Showing 8 changed files with 1,223 additions and 1 deletion.
1 change: 1 addition & 0 deletions sound/soc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ config SND_SOC
source "sound/soc/at91/Kconfig"
source "sound/soc/pxa/Kconfig"
source "sound/soc/s3c24xx/Kconfig"
source "sound/soc/sh/Kconfig"

# Supported codecs
source "sound/soc/codecs/Kconfig"
Expand Down
2 changes: 1 addition & 1 deletion sound/soc/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
snd-soc-core-objs := soc-core.o soc-dapm.o

obj-$(CONFIG_SND_SOC) += snd-soc-core.o
obj-$(CONFIG_SND_SOC) += codecs/ at91/ pxa/ s3c24xx/
obj-$(CONFIG_SND_SOC) += codecs/ at91/ pxa/ s3c24xx/ sh/
39 changes: 39 additions & 0 deletions sound/soc/sh/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
menu "SoC Audio support for SuperH"

config SND_SOC_PCM_SH7760
tristate "SoC Audio support for Renesas SH7760"
depends on CPU_SUBTYPE_SH7760 && SND_SOC
select SH_DMABRG
help
Enable this option for SH7760 AC97/I2S audio support.


##
## Audio unit modules
##

config SND_SOC_SH4_HAC
select AC97_BUS
select SND_SOC_AC97_BUS
select SND_AC97_CODEC
tristate

config SND_SOC_SH4_SSI
tristate



##
## Boards
##

config SND_SH7760_AC97
tristate "SH7760 AC97 sound support"
depends on CPU_SUBTYPE_SH7760 && SND_SOC_PCM_SH7760
select SND_SOC_SH4_HAC
select SND_SOC_AC97_CODEC
help
This option enables generic sound support for the first
AC97 unit of the SH7760.

endmenu
14 changes: 14 additions & 0 deletions sound/soc/sh/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## DMA engines
snd-soc-dma-sh7760-objs := dma-sh7760.o
obj-$(CONFIG_SND_SOC_PCM_SH7760) += snd-soc-dma-sh7760.o

## audio units found on some SH-4
snd-soc-hac-objs := hac.o
snd-soc-ssi-objs := ssi.o
obj-$(CONFIG_SND_SOC_SH4_HAC) += snd-soc-hac.o
obj-$(CONFIG_SND_SOC_SH4_SSI) += snd-soc-ssi.o

## boards
snd-soc-sh7760-ac97-objs := sh7760-ac97.o

obj-$(CONFIG_SND_SH7760_AC97) += snd-soc-sh7760-ac97.o
Loading

0 comments on commit aef3b06

Please sign in to comment.