ASoC: SAMSUNG: Add WM8994 PCM Machine driver
Subsystems (3)
PATCH v2 1/1 ASoC: SAMSUNG: Add WM8994 PCM Machine driver
This patch add WM8994 PCM machine driver to support PCM audio on SMDKV310, SMDKC210 boards.
Playback and Capture supports 8kHz sampling rates. and It is tested on SMDKV310, SMDKC210.
--- sound/soc/samsung/Kconfig | 8 ++ sound/soc/samsung/Makefile | 2 + sound/soc/samsung/smdk_wm8994pcm.c | 176 ++++++++++++++++++++++++++++++++++++ 3 files changed, 186 insertions(+), 0 deletions(-) create mode 100644 sound/soc/samsung/smdk_wm8994pcm.c
sound/soc/samsung/Kconfig +8 -0
@@ -171,6 +171,14 @@ config SND_SOC_SMDK_WM8580_PCM help Say Y if you want to add support for SoC audio on the SMDK. +config SND_SOC_SMDK_WM8994_PCM + tristate "SoC PCM Audio support for WM8994 on SMDK" + depends on SND_SOC_SAMSUNG && (MACH_SMDKC210 || MACH_SMDKV310) + select SND_SOC_WM8994 + select SND_SAMSUNG_PCM + help + Say Y if you want to add support for SoC audio on the SMDK + config SND_SOC_SPEYSIDE tristate "Audio support for Wolfson Speyside" depends on SND_SOC_SAMSUNG && MACH_WLF_CRAGG_6410
sound/soc/samsung/Makefile +2 -0
@@ -37,6 +37,7 @@ snd-soc-s3c64xx-smartq-wm8987-objs := smartq_wm8987.o snd-soc-goni-wm8994-objs := goni_wm8994.o snd-soc-smdk-spdif-objs := smdk_spdif.o snd-soc-smdk-wm8580pcm-objs := smdk_wm8580pcm.o +snd-soc-smdk-wm8994pcm-objs := smdk_wm8994pcm.o snd-soc-speyside-objs := speyside.o obj-$(CONFIG_SND_SOC_SAMSUNG_JIVE_WM8750) += snd-soc-jive-wm8750.o
@@ -56,4 +57,5 @@ obj-$(CONFIG_SND_SOC_SMARTQ) += snd-soc-s3c64xx-smartq-wm8987.o obj-$(CONFIG_SND_SOC_SAMSUNG_SMDK_SPDIF) += snd-soc-smdk-spdif.o obj-$(CONFIG_SND_SOC_GONI_AQUILA_WM8994) += snd-soc-goni-wm8994.o obj-$(CONFIG_SND_SOC_SMDK_WM8580_PCM) += snd-soc-smdk-wm8580pcm.o +obj-$(CONFIG_SND_SOC_SMDK_WM8994_PCM) += snd-soc-smdk-wm8994pcm.o obj-$(CONFIG_SND_SOC_SPEYSIDE) += snd-soc-speyside.o
sound/soc/samsung/smdk_wm8994pcm.c new file +176 -0
176 lines not on this page · raw message
Signature · 1 line
1.7.1
Quoted 5 lines · Sangbeom Kim
This patch add WM8994 PCM machine driver to support PCM audio on SMDKV310, SMDKC210 boards.
Playback and Capture supports 8kHz sampling rates. and It is tested on SMDKV310, SMDKC210.
Quoted 8 lines
Signed-off-by Sangbeom Kim <[email protected]>--- sound/soc/samsung/Kconfig | 8 ++ sound/soc/samsung/Makefile | 2 + sound/soc/samsung/smdk_wm8994pcm.c | 176 ++++++++++++++++++++++++++++++++++++ 3 files changed, 186 insertions(+), 0 deletions(-) create mode 100644 sound/soc/samsung/smdk_wm8994pcm.c
sound/soc/samsung/smdk_wm8994pcm.c line 58
Quoted 11 lines
sound/soc/samsung/smdk_wm8994pcm.c new file +11
-0+ +static int smdk_wm8994_pcm_hw_params (struct snd_pcm_substream *substream, +struct snd_pcm_hw_params *params) +{ +struct snd_soc_pcm_runtime *rtd = substream->private_data; +struct snd_soc_dai *codec_dai = rtd->codec_dai; +struct snd_soc_dai *cpu_dai = rtd->cpu_dai; +unsigned long mclk_freq; +int rfs, ret; + +switch (params_rate (params)) {
Minor issue, there should really be a space after switch. You could send this incrementally.
Thanks
Liam
Quoted 6 lines · Sangbeom Kim
This patch add WM8994 PCM machine driver to support PCM audio on SMDKV310, SMDKC210 boards.
Playback and Capture supports 8kHz sampling rates. and It is tested on SMDKV310, SMDKC210.Signed-off-by Sangbeom Kim <[email protected]>
Mark Brown
AppliedQuoted 4 lines · Sangbeom Kim
This patch add WM8994 PCM machine driver to support PCM audio on SMDKV310, SMDKC210 boards.
Playback and Capture supports 8kHz sampling rates. and It is tested on SMDKV310, SMDKC210.
Applied, thanks. We could do a bit of work to optimize the power usage here but no need to do so right now.