ASoC: AC97: SMDK: Add wm9713 machine driver
Subsystems (3)
PATCH v2 5/10 ASoC: AC97: SMDK: Add wm9713 machine driver
From: Jassi Brar <[email protected]>
This patch adds the common machine driver for SMDKs that have a WM9713 codec attched to the AC97 controller.
--- sound/soc/s3c24xx/Kconfig | 8 +++ sound/soc/s3c24xx/Makefile | 2 + sound/soc/s3c24xx/smdk_wm9713.c | 97 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 0 deletions(-) create mode 100644 sound/soc/s3c24xx/smdk_wm9713.c
sound/soc/s3c24xx/Kconfig +8 -0
@@ -115,3 +115,11 @@ config SND_S3C24XX_SOC_SIMTEC_HERMES select SND_S3C24XX_SOC_I2S select SND_SOC_TLV320AIC3X select SND_S3C24XX_SOC_SIMTEC + +config SND_SOC_SMDK_WM9713 + tristate "SoC AC97 Audio support for SMDK with WM9713" + depends on SND_S3C24XX_SOC && MACH_SMDK6410 + select SND_SOC_WM9713 + select SND_S3C_SOC_AC97 + help + Sat Y if you want to add support for SoC audio on the SMDK.
sound/soc/s3c24xx/Makefile +2 -0
@@ -28,6 +28,7 @@ snd-soc-s3c24xx-simtec-objs := s3c24xx_simtec.o 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 obj-$(CONFIG_SND_S3C24XX_SOC_JIVE_WM8750) += snd-soc-jive-wm8750.o obj-$(CONFIG_SND_S3C24XX_SOC_NEO1973_WM8753) += snd-soc-neo1973-wm8753.o
@@ -39,3 +40,4 @@ obj-$(CONFIG_SND_S3C24XX_SOC_SIMTEC) += snd-soc-s3c24xx-simtec.o 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
sound/soc/s3c24xx/smdk_wm9713.c new file +97 -0
97 lines not on this page · raw message
Signature · 1 line
1.6.2.5
sound/soc/s3c24xx/smdk_wm9713.c line 28
Quoted 3 lines · jassisinghbrar at gmail.com
sound/soc/s3c24xx/smdk_wm9713.c new file +3
-0+ Headphone Playback Switch - On + $ amixer cset numid=4 1 +
Actually, one thing that really needs fixing here - these instructions refer to the controls by number. This is extremely fragile in the face of any changes in the CODEC driver since the control numbering is worked out at runtime and any change in the set of controls exported by the device may change the result. It is much better to refer to the controls by name since the names are much less likely to change. This is also helpful for people using other UIs which don't display the control names.
Quoted 6 lines · Mark Brown
Quoted 3 lines · On Wed, Jan 27, 2010 at 02:59:19PM +0900, [email protected] wrote:
+ Headphone Playback Switch - On
+ $ amixer cset numid=4 1
+
Quoted 8 lines
Actually, one thing that really needs fixing here - these instructions refer to the controls by number. This is extremely fragile in the face of any changes in the CODEC driver since the control numbering is worked out at runtime and any change in the set of controls exported by the device may change the result. It is much better to refer to the controls by name since the names are much less likely to change. This is also helpful for people using other UIs which don't display the control names.
I will submit a patch for it, though I used exact control names and their values before every command.
Quoted 2 lines · jassi brar
I will submit a patch for it, though I used exact control names and their values before every command.
Normally the renumbering happens as a result of a source code change such as the addition of a new control or some change in ALSA core.