diff options
author | Jassi Brar <jassi.brar@samsung.com> | 2010-11-22 01:36:03 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-11-23 09:05:42 -0500 |
commit | 99ce3a3f3748f39ab6447c246b675f182ee761da (patch) | |
tree | d8edabe69945c646d0d7211eb6533c96ab3e4063 | |
parent | e6104673d28823e33bfc3dfb046a117f2575c9a8 (diff) |
ASoC: Samsung: Rename AC97 driver
Rename Samsung AC97 driver
s3c-ac97.[c/h] -> ac97.[c/h]
Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/s3c24xx/Makefile | 4 | ||||
-rw-r--r-- | sound/soc/s3c24xx/ac97.c (renamed from sound/soc/s3c24xx/s3c-ac97.c) | 16 | ||||
-rw-r--r-- | sound/soc/s3c24xx/ac97.h (renamed from sound/soc/s3c24xx/s3c-ac97.h) | 8 | ||||
-rw-r--r-- | sound/soc/s3c24xx/ln2440sbc_alc650.c | 2 | ||||
-rw-r--r-- | sound/soc/s3c24xx/smdk2443_wm9710.c | 2 | ||||
-rw-r--r-- | sound/soc/s3c24xx/smdk_wm9713.c | 2 |
6 files changed, 17 insertions, 17 deletions
diff --git a/sound/soc/s3c24xx/Makefile b/sound/soc/s3c24xx/Makefile index 20aac4531f11..551a63d65d73 100644 --- a/sound/soc/s3c24xx/Makefile +++ b/sound/soc/s3c24xx/Makefile | |||
@@ -3,7 +3,7 @@ snd-soc-s3c24xx-objs := dma.o | |||
3 | snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o | 3 | snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o |
4 | snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o | 4 | snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o |
5 | snd-soc-s3c64xx-i2s-objs := s3c64xx-i2s.o | 5 | snd-soc-s3c64xx-i2s-objs := s3c64xx-i2s.o |
6 | snd-soc-s3c-ac97-objs := s3c-ac97.o | 6 | snd-soc-ac97-objs := ac97.o |
7 | snd-soc-s3c64xx-i2s-v4-objs := s3c64xx-i2s-v4.o | 7 | snd-soc-s3c64xx-i2s-v4-objs := s3c64xx-i2s-v4.o |
8 | snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o | 8 | snd-soc-s3c-i2s-v2-objs := s3c-i2s-v2.o |
9 | snd-soc-s3c-pcm-objs := s3c-pcm.o | 9 | snd-soc-s3c-pcm-objs := s3c-pcm.o |
@@ -11,7 +11,7 @@ snd-soc-samsung-spdif-objs := spdif.o | |||
11 | 11 | ||
12 | obj-$(CONFIG_SND_S3C24XX_SOC) += snd-soc-s3c24xx.o | 12 | obj-$(CONFIG_SND_S3C24XX_SOC) += snd-soc-s3c24xx.o |
13 | obj-$(CONFIG_SND_S3C24XX_SOC_I2S) += snd-soc-s3c24xx-i2s.o | 13 | obj-$(CONFIG_SND_S3C24XX_SOC_I2S) += snd-soc-s3c24xx-i2s.o |
14 | obj-$(CONFIG_SND_S3C_SOC_AC97) += snd-soc-s3c-ac97.o | 14 | obj-$(CONFIG_SND_S3C_SOC_AC97) += snd-soc-ac97.o |
15 | obj-$(CONFIG_SND_S3C2412_SOC_I2S) += snd-soc-s3c2412-i2s.o | 15 | obj-$(CONFIG_SND_S3C2412_SOC_I2S) += snd-soc-s3c2412-i2s.o |
16 | obj-$(CONFIG_SND_S3C64XX_SOC_I2S) += snd-soc-s3c64xx-i2s.o | 16 | obj-$(CONFIG_SND_S3C64XX_SOC_I2S) += snd-soc-s3c64xx-i2s.o |
17 | obj-$(CONFIG_SND_S3C64XX_SOC_I2S_V4) += snd-soc-s3c64xx-i2s-v4.o | 17 | obj-$(CONFIG_SND_S3C64XX_SOC_I2S_V4) += snd-soc-s3c64xx-i2s-v4.o |
diff --git a/sound/soc/s3c24xx/s3c-ac97.c b/sound/soc/s3c24xx/ac97.c index 5352cacd9c17..4f999d1bb330 100644 --- a/sound/soc/s3c24xx/s3c-ac97.c +++ b/sound/soc/s3c24xx/ac97.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* sound/soc/s3c24xx/s3c-ac97.c | 1 | /* sound/soc/s3c24xx/ac97.c |
2 | * | 2 | * |
3 | * ALSA SoC Audio Layer - S3C AC97 Controller driver | 3 | * ALSA SoC Audio Layer - S3C AC97 Controller driver |
4 | * Evolved from s3c2443-ac97.c | 4 | * Evolved from s3c2443-ac97.c |
@@ -25,7 +25,7 @@ | |||
25 | #include <plat/audio.h> | 25 | #include <plat/audio.h> |
26 | 26 | ||
27 | #include "dma.h" | 27 | #include "dma.h" |
28 | #include "s3c-ac97.h" | 28 | #include "ac97.h" |
29 | 29 | ||
30 | #define AC_CMD_ADDR(x) (x << 16) | 30 | #define AC_CMD_ADDR(x) (x << 16) |
31 | #define AC_CMD_DATA(x) (x & 0xffff) | 31 | #define AC_CMD_DATA(x) (x & 0xffff) |
@@ -122,7 +122,7 @@ static unsigned short s3c_ac97_read(struct snd_ac97 *ac97, | |||
122 | data = (stat & 0xffff); | 122 | data = (stat & 0xffff); |
123 | 123 | ||
124 | if (addr != reg) | 124 | if (addr != reg) |
125 | pr_err("s3c-ac97: req addr = %02x, rep addr = %02x\n", | 125 | pr_err("ac97: req addr = %02x, rep addr = %02x\n", |
126 | reg, addr); | 126 | reg, addr); |
127 | 127 | ||
128 | mutex_unlock(&s3c_ac97.lock); | 128 | mutex_unlock(&s3c_ac97.lock); |
@@ -334,7 +334,7 @@ static struct snd_soc_dai_ops s3c_ac97_mic_dai_ops = { | |||
334 | 334 | ||
335 | static struct snd_soc_dai_driver s3c_ac97_dai[] = { | 335 | static struct snd_soc_dai_driver s3c_ac97_dai[] = { |
336 | [S3C_AC97_DAI_PCM] = { | 336 | [S3C_AC97_DAI_PCM] = { |
337 | .name = "s3c-ac97", | 337 | .name = "samsung-ac97", |
338 | .ac97_control = 1, | 338 | .ac97_control = 1, |
339 | .playback = { | 339 | .playback = { |
340 | .stream_name = "AC97 Playback", | 340 | .stream_name = "AC97 Playback", |
@@ -351,7 +351,7 @@ static struct snd_soc_dai_driver s3c_ac97_dai[] = { | |||
351 | .ops = &s3c_ac97_dai_ops, | 351 | .ops = &s3c_ac97_dai_ops, |
352 | }, | 352 | }, |
353 | [S3C_AC97_DAI_MIC] = { | 353 | [S3C_AC97_DAI_MIC] = { |
354 | .name = "s3c-ac97-mic", | 354 | .name = "samsung-ac97-mic", |
355 | .ac97_control = 1, | 355 | .ac97_control = 1, |
356 | .capture = { | 356 | .capture = { |
357 | .stream_name = "AC97 Mic Capture", | 357 | .stream_name = "AC97 Mic Capture", |
@@ -407,7 +407,7 @@ static __devinit int s3c_ac97_probe(struct platform_device *pdev) | |||
407 | } | 407 | } |
408 | 408 | ||
409 | if (!request_mem_region(mem_res->start, | 409 | if (!request_mem_region(mem_res->start, |
410 | resource_size(mem_res), "s3c-ac97")) { | 410 | resource_size(mem_res), "ac97")) { |
411 | dev_err(&pdev->dev, "Unable to request register region\n"); | 411 | dev_err(&pdev->dev, "Unable to request register region\n"); |
412 | return -EBUSY; | 412 | return -EBUSY; |
413 | } | 413 | } |
@@ -431,7 +431,7 @@ static __devinit int s3c_ac97_probe(struct platform_device *pdev) | |||
431 | 431 | ||
432 | s3c_ac97.ac97_clk = clk_get(&pdev->dev, "ac97"); | 432 | s3c_ac97.ac97_clk = clk_get(&pdev->dev, "ac97"); |
433 | if (IS_ERR(s3c_ac97.ac97_clk)) { | 433 | if (IS_ERR(s3c_ac97.ac97_clk)) { |
434 | dev_err(&pdev->dev, "s3c-ac97 failed to get ac97_clock\n"); | 434 | dev_err(&pdev->dev, "ac97 failed to get ac97_clock\n"); |
435 | ret = -ENODEV; | 435 | ret = -ENODEV; |
436 | goto err2; | 436 | goto err2; |
437 | } | 437 | } |
@@ -446,7 +446,7 @@ static __devinit int s3c_ac97_probe(struct platform_device *pdev) | |||
446 | ret = request_irq(irq_res->start, s3c_ac97_irq, | 446 | ret = request_irq(irq_res->start, s3c_ac97_irq, |
447 | IRQF_DISABLED, "AC97", NULL); | 447 | IRQF_DISABLED, "AC97", NULL); |
448 | if (ret < 0) { | 448 | if (ret < 0) { |
449 | dev_err(&pdev->dev, "s3c-ac97: interrupt request failed.\n"); | 449 | dev_err(&pdev->dev, "ac97: interrupt request failed.\n"); |
450 | goto err4; | 450 | goto err4; |
451 | } | 451 | } |
452 | 452 | ||
diff --git a/sound/soc/s3c24xx/s3c-ac97.h b/sound/soc/s3c24xx/ac97.h index 5dcedd07fdbb..a8f01b788878 100644 --- a/sound/soc/s3c24xx/s3c-ac97.h +++ b/sound/soc/s3c24xx/ac97.h | |||
@@ -1,11 +1,11 @@ | |||
1 | /* sound/soc/s3c24xx/s3c-ac97.h | 1 | /* sound/soc/s3c24xx/ac97.h |
2 | * | 2 | * |
3 | * ALSA SoC Audio Layer - S3C AC97 Controller driver | 3 | * ALSA SoC Audio Layer - S3C AC97 Controller driver |
4 | * Evolved from s3c2443-ac97.h | 4 | * Evolved from s3c2443-ac97.h |
5 | * | 5 | * |
6 | * Copyright (c) 2010 Samsung Electronics Co. Ltd | 6 | * Copyright (c) 2010 Samsung Electronics Co. Ltd |
7 | * Author: Jaswinder Singh <jassi.brar@samsung.com> | 7 | * Author: Jaswinder Singh <jassi.brar@samsung.com> |
8 | * Credits: Graeme Gregory, Sean Choi | 8 | * Credits: Graeme Gregory, Sean Choi |
9 | * | 9 | * |
10 | * This program is free software; you can redistribute it and/or modify | 10 | * This program is free software; you can redistribute it and/or modify |
11 | * it under the terms of the GNU General Public License version 2 as | 11 | * it under the terms of the GNU General Public License version 2 as |
diff --git a/sound/soc/s3c24xx/ln2440sbc_alc650.c b/sound/soc/s3c24xx/ln2440sbc_alc650.c index 1a0dd313afbd..a2bb34def740 100644 --- a/sound/soc/s3c24xx/ln2440sbc_alc650.c +++ b/sound/soc/s3c24xx/ln2440sbc_alc650.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <sound/soc.h> | 23 | #include <sound/soc.h> |
24 | 24 | ||
25 | #include "dma.h" | 25 | #include "dma.h" |
26 | #include "s3c-ac97.h" | 26 | #include "ac97.h" |
27 | 27 | ||
28 | static struct snd_soc_card ln2440sbc; | 28 | static struct snd_soc_card ln2440sbc; |
29 | 29 | ||
diff --git a/sound/soc/s3c24xx/smdk2443_wm9710.c b/sound/soc/s3c24xx/smdk2443_wm9710.c index e8787ad0a73e..3be7e7e92d6e 100644 --- a/sound/soc/s3c24xx/smdk2443_wm9710.c +++ b/sound/soc/s3c24xx/smdk2443_wm9710.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <sound/soc.h> | 19 | #include <sound/soc.h> |
20 | 20 | ||
21 | #include "dma.h" | 21 | #include "dma.h" |
22 | #include "s3c-ac97.h" | 22 | #include "ac97.h" |
23 | 23 | ||
24 | static struct snd_soc_card smdk2443; | 24 | static struct snd_soc_card smdk2443; |
25 | 25 | ||
diff --git a/sound/soc/s3c24xx/smdk_wm9713.c b/sound/soc/s3c24xx/smdk_wm9713.c index 56b448d49609..7ce243086e7d 100644 --- a/sound/soc/s3c24xx/smdk_wm9713.c +++ b/sound/soc/s3c24xx/smdk_wm9713.c | |||
@@ -16,7 +16,7 @@ | |||
16 | #include <sound/soc.h> | 16 | #include <sound/soc.h> |
17 | 17 | ||
18 | #include "dma.h" | 18 | #include "dma.h" |
19 | #include "s3c-ac97.h" | 19 | #include "ac97.h" |
20 | 20 | ||
21 | static struct snd_soc_card smdk; | 21 | static struct snd_soc_card smdk; |
22 | 22 | ||