Commit fcd8c742 authored by Jassi Brar's avatar Jassi Brar Committed by Mark Brown

ASoC: GONI: Move to use new I2S driver

Modify the goni_wm8994.c to use new i2s controller driver.
Signed-off-by: default avatarJassi Brar <jassi.brar@samsung.com>
Acked-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent b9493d6c
...@@ -151,7 +151,7 @@ config SND_S3C64XX_SOC_SMARTQ ...@@ -151,7 +151,7 @@ config SND_S3C64XX_SOC_SMARTQ
config SND_SOC_GONI_AQUILA_WM8994 config SND_SOC_GONI_AQUILA_WM8994
tristate "SoC I2S Audio support for AQUILA/GONI - WM8994" tristate "SoC I2S Audio support for AQUILA/GONI - WM8994"
depends on SND_S3C24XX_SOC && (MACH_GONI || MACH_AQUILA) depends on SND_S3C24XX_SOC && (MACH_GONI || MACH_AQUILA)
select SND_S3C64XX_SOC_I2S_V4 select SND_SAMSUNG_I2S
select SND_SOC_WM8994 select SND_SOC_WM8994
help help
Say Y if you want to add support for SoC audio on goni or aquila Say Y if you want to add support for SoC audio on goni or aquila
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include <linux/mfd/wm8994/registers.h> #include <linux/mfd/wm8994/registers.h>
#include "../codecs/wm8994.h" #include "../codecs/wm8994.h"
#include "dma.h" #include "dma.h"
#include "s3c64xx-i2s.h" #include "i2s.h"
#define MACHINE_NAME 0 #define MACHINE_NAME 0
#define CPU_VOICE_DAI 1 #define CPU_VOICE_DAI 1
...@@ -163,12 +163,6 @@ static int goni_hifi_hw_params(struct snd_pcm_substream *substream, ...@@ -163,12 +163,6 @@ static int goni_hifi_hw_params(struct snd_pcm_substream *substream,
if (ret < 0) if (ret < 0)
return ret; return ret;
/* set the cpu system clock */
ret = snd_soc_dai_set_sysclk(cpu_dai, S3C64XX_CLKSRC_PCLK,
0, SND_SOC_CLOCK_IN);
if (ret < 0)
return ret;
/* set codec DAI configuration */ /* set codec DAI configuration */
ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S | ret = snd_soc_dai_set_fmt(codec_dai, SND_SOC_DAIFMT_I2S |
SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM); SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM);
...@@ -249,7 +243,7 @@ static struct snd_soc_dai_link goni_dai[] = { ...@@ -249,7 +243,7 @@ static struct snd_soc_dai_link goni_dai[] = {
{ {
.name = "WM8994", .name = "WM8994",
.stream_name = "WM8994 HiFi", .stream_name = "WM8994 HiFi",
.cpu_dai_name = "s3c64xx-i2s-v4", .cpu_dai_name = "samsung-i2s.0",
.codec_dai_name = "wm8994-hifi", .codec_dai_name = "wm8994-hifi",
.platform_name = "samsung-audio", .platform_name = "samsung-audio",
.codec_name = "wm8994-codec.0-0x1a", .codec_name = "wm8994-codec.0-0x1a",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment