ASoC: Add SmartQ sound driver
Subsystems (3)
PATCH 1/2 ASoC: Add SmartQ sound driver
This adds sound support for the SmartQ board.
The hardware consists of a S3C6410 coupled with a WM8987 over I²S. As there's no driver for the WM8987 currently, this uses the WM8750 driver (which should be register compatible).
--- sound/soc/s3c24xx/Kconfig | 6 + sound/soc/s3c24xx/Makefile | 2 + sound/soc/s3c24xx/smartq_wm8987.c | 300 +++++++++++++++++++++++++++++++++++++ 3 files changed, 308 insertions(+), 0 deletions(-) create mode 100644 sound/soc/s3c24xx/smartq_wm8987.c
sound/soc/s3c24xx/Kconfig +6 -0
@@ -125,3 +125,9 @@ config SND_SOC_SMDK_WM9713 select SND_S3C_SOC_AC97 help Sat Y if you want to add support for SoC audio on the SMDK. + +config SND_S3C64XX_SOC_SMARTQ + tristate "SoC I2S Audio support for SmartQ board" + depends on SND_S3C24XX_SOC && MACH_SMARTQ + select SND_S3C64XX_SOC_I2S + select SND_SOC_WM8750
sound/soc/s3c24xx/Makefile +2 -0
@@ -29,6 +29,7 @@ snd-soc-s3c24xx-simtec-hermes-objs := s3c24xx_simtec_hermes.o snd-soc-s3c24xx-simtec-tlv320aic23-objs := s3c24xx_simtec_tlv320aic23.o snd-soc-smdk64xx-wm8580-objs := smdk64xx_wm8580.o snd-soc-smdk-wm9713-objs := smdk_wm9713.o +snd-soc-s3c64xx-smartq-wm8987-objs := smartq_wm8987.o obj-$(CONFIG_SND_S3C24XX_SOC_JIVE_WM8750) += snd-soc-jive-wm8750.o obj-$(CONFIG_SND_S3C24XX_SOC_NEO1973_WM8753) += snd-soc-neo1973-wm8753.o
@@ -41,3 +42,4 @@ obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_HERMES) += snd-soc-s3c24xx-simtec-hermes.o obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC_TLV320AIC23) += snd-soc-s3c24xx-simtec-tlv320aic23.o obj-$(CONFIG_SND_S3C64XX_SOC_WM8580) += snd-soc-smdk64xx-wm8580.o obj-$(CONFIG_SND_SOC_SMDK_WM9713) += snd-soc-smdk-wm9713.o +obj-$(CONFIG_SND_S3C64XX_SOC_SMARTQ) += snd-soc-s3c64xx-smartq-wm8987.o
sound/soc/s3c24xx/smartq_wm8987.c new file +300 -0
300 lines not on this page · raw message
Signature · 6 lines
1.7.0.4 _______________________________________________ Alsa-devel mailing list [email protected] http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
On Sat, Jan 30, 2010 at 06:23:14PM +0100, Maurus Cuelenaere wrote:
Might want to check your mail setup - the date looks wrong.
Quoted 5 lines
This adds sound support for the SmartQ board.
The hardware consists of a S3C6410 coupled with a WM8987 over I²S. As there's no driver for the WM8987 currently, this uses the WM8750 driver (which should be register compatible).
There's no need to add a separate driver for a register compatible part, just add the I2C/SPI IDs to the existing driver. Otherwise we just duplicate it redundantly. Please update this and the comment in the driver to reflect that.
Otherwise this looks OK, but there's a couple of things that it'd be nice to update:
sound/soc/s3c24xx/smartq_wm8987.c line 274
Quoted 1 line
sound/soc/s3c24xx/smartq_wm8987.c new file +1
-0+dev_info (&smartq_snd_device->dev,"SmartQ WM8987 audio driver inited\n" );
Best to remove this, it gets a bit noisy.
Quoted 1 line
+MODULE_AUTHOR("Maurus Cuelenaere");
Better to add your mail address too.
Op 03-07-10 02:15, Mark Brown schreef:
Quoted 3 lines · Maurus Cuelenaere
Might want to check your mail setup - the date looks wrong.
Looks like it picked the date I first started this commit, will correct it next time.
Quoted 9 lines
Quoted 5 lines
This adds sound support for the SmartQ board.
The hardware consists of a S3C6410 coupled with a WM8987 over I²S. As there's no driver for the WM8987 currently, this uses the WM8750 driver (which should be register compatible).
There's no need to add a separate driver for a register compatible part, just add the I2C/SPI IDs to the existing driver. Otherwise we just duplicate it redundantly. Please update this and the comment in the driver to reflect that.
Ok, will do.
Quoted 5 lines
Otherwise this looks OK, but there's a couple of things that it'd be nice to update:
sound/soc/s3c24xx/smartq_wm8987.c line 274
Quoted 1 line
sound/soc/s3c24xx/smartq_wm8987.c new file +1
-0+dev_info (&smartq_snd_device->dev,"SmartQ WM8987 audio driver inited\n" );Best to remove this, it gets a bit noisy.
Ok.
Quoted 2 lines
Quoted 1 line
+MODULE_AUTHOR("Maurus Cuelenaere");
Better to add your mail address too.
Ok.
Signature · 1 line
Maurus Cuelenaere