| Index: sound/soc/samsung/rx1950_uda1380.c
|
| diff --git a/sound/soc/s3c24xx/rx1950_uda1380.c b/sound/soc/samsung/rx1950_uda1380.c
|
| similarity index 92%
|
| rename from sound/soc/s3c24xx/rx1950_uda1380.c
|
| rename to sound/soc/samsung/rx1950_uda1380.c
|
| index 468cc11fdf47abf84bc7a6b2dbcc5298bd6f16ce..1e574a5d440d0610e77d68c1d9582a2765719d01 100644
|
| --- a/sound/soc/s3c24xx/rx1950_uda1380.c
|
| +++ b/sound/soc/samsung/rx1950_uda1380.c
|
| @@ -17,27 +17,15 @@
|
| *
|
| */
|
|
|
| -#include <linux/module.h>
|
| -#include <linux/moduleparam.h>
|
| -#include <linux/platform_device.h>
|
| -#include <linux/i2c.h>
|
| #include <linux/gpio.h>
|
| -#include <linux/clk.h>
|
|
|
| #include <sound/soc.h>
|
| -#include <sound/soc-dapm.h>
|
| -#include <sound/uda1380.h>
|
| #include <sound/jack.h>
|
|
|
| #include <plat/regs-iis.h>
|
| -
|
| -#include <mach/regs-clock.h>
|
| -
|
| #include <asm/mach-types.h>
|
|
|
| -#include "s3c-dma.h"
|
| #include "s3c24xx-i2s.h"
|
| -#include "../codecs/uda1380.h"
|
|
|
| static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd);
|
| static int rx1950_startup(struct snd_pcm_substream *substream);
|
| @@ -95,7 +83,7 @@ static struct snd_soc_dai_link rx1950_uda1380_dai[] = {
|
| .cpu_dai_name = "s3c24xx-iis",
|
| .codec_dai_name = "uda1380-hifi",
|
| .init = rx1950_uda1380_init,
|
| - .platform_name = "s3c24xx-pcm-audio",
|
| + .platform_name = "samsung-audio",
|
| .codec_name = "uda1380-codec.0-001a",
|
| .ops = &rx1950_ops,
|
| },
|
| @@ -228,26 +216,28 @@ static int rx1950_hw_params(struct snd_pcm_substream *substream,
|
| static int rx1950_uda1380_init(struct snd_soc_pcm_runtime *rtd)
|
| {
|
| struct snd_soc_codec *codec = rtd->codec;
|
| + struct snd_soc_dapm_context *dapm = &codec->dapm;
|
| int err;
|
|
|
| /* Add rx1950 specific widgets */
|
| - err = snd_soc_dapm_new_controls(codec, uda1380_dapm_widgets,
|
| + err = snd_soc_dapm_new_controls(dapm, uda1380_dapm_widgets,
|
| ARRAY_SIZE(uda1380_dapm_widgets));
|
|
|
| if (err)
|
| return err;
|
|
|
| /* Set up rx1950 specific audio path audio_mapnects */
|
| - err = snd_soc_dapm_add_routes(codec, audio_map,
|
| + err = snd_soc_dapm_add_routes(dapm, audio_map,
|
| ARRAY_SIZE(audio_map));
|
|
|
| if (err)
|
| return err;
|
|
|
| - snd_soc_dapm_enable_pin(codec, "Headphone Jack");
|
| - snd_soc_dapm_enable_pin(codec, "Speaker");
|
| + snd_soc_dapm_enable_pin(dapm, "Headphone Jack");
|
| + snd_soc_dapm_enable_pin(dapm, "Speaker");
|
| + snd_soc_dapm_enable_pin(dapm, "Mic Jack");
|
|
|
| - snd_soc_dapm_sync(codec);
|
| + snd_soc_dapm_sync(dapm);
|
|
|
| snd_soc_jack_new(codec, "Headphone Jack", SND_JACK_HEADPHONE,
|
| &hp_jack);
|
|
|