| Index: sound/soc/samsung/s3c24xx_simtec_hermes.c
|
| diff --git a/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c b/sound/soc/samsung/s3c24xx_simtec_hermes.c
|
| similarity index 80%
|
| rename from sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
|
| rename to sound/soc/samsung/s3c24xx_simtec_hermes.c
|
| index f88453735ae26e47c98f1c407c789df24227d638..ce6aef6041793b40ac1f8b494feea76ae3f14b90 100644
|
| --- a/sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
|
| +++ b/sound/soc/samsung/s3c24xx_simtec_hermes.c
|
| @@ -1,4 +1,4 @@
|
| -/* sound/soc/s3c24xx/s3c24xx_simtec_hermes.c
|
| +/* sound/soc/samsung/s3c24xx_simtec_hermes.c
|
| *
|
| * Copyright 2009 Simtec Electronics
|
| *
|
| @@ -7,23 +7,10 @@
|
| * published by the Free Software Foundation.
|
| */
|
|
|
| -#include <linux/module.h>
|
| -#include <linux/clk.h>
|
| -#include <linux/platform_device.h>
|
| -
|
| -#include <sound/core.h>
|
| -#include <sound/pcm.h>
|
| #include <sound/soc.h>
|
| -#include <sound/soc-dapm.h>
|
| -
|
| -#include <plat/audio-simtec.h>
|
|
|
| -#include "s3c-dma.h"
|
| -#include "s3c24xx-i2s.h"
|
| #include "s3c24xx_simtec.h"
|
|
|
| -#include "../codecs/tlv320aic3x.h"
|
| -
|
| static const struct snd_soc_dapm_widget dapm_widgets[] = {
|
| SND_SOC_DAPM_LINE("GSM Out", NULL),
|
| SND_SOC_DAPM_LINE("GSM In", NULL),
|
| @@ -76,19 +63,20 @@ static const struct snd_soc_dapm_route base_map[] = {
|
| static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd)
|
| {
|
| struct snd_soc_codec *codec = rtd->codec;
|
| + struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
|
| - snd_soc_dapm_new_controls(codec, dapm_widgets,
|
| + snd_soc_dapm_new_controls(dapm, dapm_widgets,
|
| ARRAY_SIZE(dapm_widgets));
|
|
|
| - snd_soc_dapm_add_routes(codec, base_map, ARRAY_SIZE(base_map));
|
| + snd_soc_dapm_add_routes(dapm, base_map, ARRAY_SIZE(base_map));
|
|
|
| - snd_soc_dapm_enable_pin(codec, "Headphone Jack");
|
| - snd_soc_dapm_enable_pin(codec, "Line In");
|
| - snd_soc_dapm_enable_pin(codec, "Line Out");
|
| - snd_soc_dapm_enable_pin(codec, "Mic Jack");
|
| + snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
|
| + snd_soc_dapm_enable_pin(dapm, "Line In");
|
| + snd_soc_dapm_enable_pin(dapm, "Line Out");
|
| + snd_soc_dapm_enable_pin(dapm, "Mic Jack");
|
|
|
| simtec_audio_init(rtd);
|
| - snd_soc_dapm_sync(codec);
|
| + snd_soc_dapm_sync(dapm);
|
|
|
| return 0;
|
| }
|
| @@ -96,10 +84,10 @@ static int simtec_hermes_init(struct snd_soc_pcm_runtime *rtd)
|
| static struct snd_soc_dai_link simtec_dai_aic33 = {
|
| .name = "tlv320aic33",
|
| .stream_name = "TLV320AIC33",
|
| - .codec_name = "tlv320aic3x-codec.0-0x1a",
|
| - .cpu_dai_name = "s3c24xx-i2s",
|
| + .codec_name = "tlv320aic3x-codec.0-001a",
|
| + .cpu_dai_name = "s3c24xx-iis",
|
| .codec_dai_name = "tlv320aic3x-hifi",
|
| - .platform_name = "s3c24xx-pcm-audio",
|
| + .platform_name = "samsung-audio",
|
| .init = simtec_hermes_init,
|
| };
|
|
|
|
|