Skip to contentSkip to conversation

S3C AUDIO: Rename 's3c24xx-pcm' driver to 's3c_audio'

PATCH In review Jassi Brar 1 participant 1 message Nov 5, 2009

Subsystems (3)
lore
Share & tools
lore

Jassi Brar

author
#0 lore raw

PATCH 2/7 S3C AUDIO: Rename 's3c24xx-pcm' driver to 's3c_audio'

Making room for namespace for the PCM Controller driver the platform driver(s3c24xx-pcm) has been renamed to SoC agnostic name 's3c-audio'.

---
 sound/soc/s3c24xx/Makefile                     |    2 +-
 sound/soc/s3c24xx/jive_wm8750.c                |    2 +-
 sound/soc/s3c24xx/ln2440sbc_alc650.c           |    2 +-
 sound/soc/s3c24xx/neo1973_gta02_wm8753.c       |    2 +-
 sound/soc/s3c24xx/neo1973_wm8753.c             |    2 +-
 sound/soc/s3c24xx/s3c-audio.c                  |  467 ++++++++++++++++++++++++
 sound/soc/s3c24xx/s3c-audio.h                  |   31 ++
 sound/soc/s3c24xx/s3c-i2s-v2.c                 |    2 +-
 sound/soc/s3c24xx/s3c2412-i2s.c                |    2 +-
 sound/soc/s3c24xx/s3c2443-ac97.c               |    2 +-
 sound/soc/s3c24xx/s3c24xx-i2s.c                |    2 +-
 sound/soc/s3c24xx/s3c24xx-pcm.c                |  467 ------------------------
 sound/soc/s3c24xx/s3c24xx-pcm.h                |   31 --
 sound/soc/s3c24xx/s3c24xx_simtec.c             |    2 +-
 sound/soc/s3c24xx/s3c24xx_simtec_hermes.c      |    2 +-
 sound/soc/s3c24xx/s3c24xx_simtec_tlv320aic23.c |    2 +-
 sound/soc/s3c24xx/s3c24xx_uda134x.c            |    2 +-
 sound/soc/s3c24xx/s3c64xx-i2s.c                |    2 +-
 sound/soc/s3c24xx/smdk2443_wm9710.c            |    2 +-
 sound/soc/s3c24xx/smdk64xx_wm8580.c            |    2 +-
 20 files changed, 514 insertions(+), 514 deletions(-)
 create mode 100644 sound/soc/s3c24xx/s3c-audio.c
 create mode 100644 sound/soc/s3c24xx/s3c-audio.h
 delete mode 100644 sound/soc/s3c24xx/s3c24xx-pcm.c
 delete mode 100644 sound/soc/s3c24xx/s3c24xx-pcm.h
sound/soc/s3c24xx/Makefile +1 -1
index 7790406..3bdb74d 100644
@@ -1,5 +1,5 @@
 # S3c24XX Platform Support
-snd-soc-s3c24xx-objs := s3c24xx-pcm.o
+snd-soc-s3c24xx-objs := s3c-audio.o
 snd-soc-s3c24xx-i2s-objs := s3c24xx-i2s.o
 snd-soc-s3c2412-i2s-objs := s3c2412-i2s.o
 snd-soc-s3c64xx-i2s-objs := s3c64xx-i2s.o
sound/soc/s3c24xx/jive_wm8750.c +1 -1
index 93e6c87..ac3a709 100644
@@ -25,7 +25,7 @@
 
 #include <asm/mach-types.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c2412-i2s.h"
 
 #include "../codecs/wm8750.h"
sound/soc/s3c24xx/ln2440sbc_alc650.c +1 -1
index 12c7148..3896e52 100644
@@ -24,7 +24,7 @@
 #include <sound/soc-dapm.h>
 
 #include "../codecs/ac97.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-ac97.h"
 
 static struct snd_soc_card ln2440sbc;
sound/soc/s3c24xx/neo1973_gta02_wm8753.c +1 -1
index 26409a9..1d05137 100644
@@ -32,7 +32,7 @@
 #include <asm/io.h>
 #include <mach/gta02.h>
 #include "../codecs/wm8753.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 
 static struct snd_soc_card neo1973_gta02;
sound/soc/s3c24xx/neo1973_wm8753.c +1 -1
index 77de6c5..9183166 100644
@@ -36,7 +36,7 @@
 
 #include "../codecs/wm8753.h"
 #include "lm4857.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 
 /* define the scenarios */
sound/soc/s3c24xx/s3c-audio.c new file +467 -0

467 lines not on this page · raw message

sound/soc/s3c24xx/s3c-audio.h new file +31 -0
new file mode 100644
index 0000000..d04ddf8
@@ -0,0 +1,31 @@
+/*
+ *  s3c-audio.h --
+ *
+ *  This program is free software; you can redistribute  it and/or modify it
+ *  under  the terms of  the GNU General  Public License as published by the
+ *  Free Software Foundation;  either version 2 of the  License, or (at your
+ *  option) any later version.
+ *
+ *  ALSA PCM interface for the Samsung S3C24xx CPU
+ */
+
+#ifndef _S3C_AUDIO_H
+#define _S3C_AUDIO_H
+
+#define ST_RUNNING		(1<<0)
+#define ST_OPENED		(1<<1)
+
+struct s3c_audio_dma_params {
+	struct s3c2410_dma_client *client;	/* stream identifier */
+	int channel;				/* Channel ID */
+	dma_addr_t dma_addr;
+	int dma_size;			/* Size of the DMA transfer */
+};
+
+#define S3C24XX_DAI_I2S			0
+
+/* platform data */
+extern struct snd_soc_platform s3c24xx_soc_platform;
+extern struct snd_ac97_bus_ops s3c24xx_ac97_ops;
+
+#endif
sound/soc/s3c24xx/s3c-i2s-v2.c +1 -1
index 9788e65..4e322a0 100644
@@ -35,7 +35,7 @@
 #include <mach/dma.h>
 
 #include "s3c-i2s-v2.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 
 #undef S3C_IIS_V2_SUPPORTED
 
sound/soc/s3c24xx/s3c2412-i2s.c +1 -1
index 6bc13d5..593a081 100644
@@ -37,7 +37,7 @@
 #include <mach/regs-gpio.h>
 #include <mach/dma.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c2412-i2s.h"
 
 #define S3C2412_I2S_DEBUG 0
sound/soc/s3c24xx/s3c2443-ac97.c +1 -1
index d3bd29a..2b71218 100644
@@ -35,7 +35,7 @@
 #include <asm/dma.h>
 #include <mach/dma.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-ac97.h"
 
 struct s3c24xx_ac97_info {
sound/soc/s3c24xx/s3c24xx-i2s.c +1 -1
index 998e752..2361aa6 100644
@@ -38,7 +38,7 @@
 
 #include <plat/regs-iis.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 
 static struct s3c2410_dma_client s3c24xx_dma_client_out = {
sound/soc/s3c24xx/s3c24xx-pcm.c deleted +0 -467

467 lines not on this page · raw message

sound/soc/s3c24xx/s3c24xx-pcm.h deleted +0 -31
deleted file mode 100644
index d04ddf8..0000000
@@ -1,31 +0,0 @@
-/*
- *  s3c24xx-pcm.h --
- *
- *  This program is free software; you can redistribute  it and/or modify it
- *  under  the terms of  the GNU General  Public License as published by the
- *  Free Software Foundation;  either version 2 of the  License, or (at your
- *  option) any later version.
- *
- *  ALSA PCM interface for the Samsung S3C24xx CPU
- */
-
-#ifndef _S3C_AUDIO_H
-#define _S3C_AUDIO_H
-
-#define ST_RUNNING		(1<<0)
-#define ST_OPENED		(1<<1)
-
-struct s3c_audio_dma_params {
-	struct s3c2410_dma_client *client;	/* stream identifier */
-	int channel;				/* Channel ID */
-	dma_addr_t dma_addr;
-	int dma_size;			/* Size of the DMA transfer */
-};
-
-#define S3C24XX_DAI_I2S			0
-
-/* platform data */
-extern struct snd_soc_platform s3c24xx_soc_platform;
-extern struct snd_ac97_bus_ops s3c24xx_ac97_ops;
-
-#endif
sound/soc/s3c24xx/s3c24xx_simtec.c +1 -1
index 1966e0d..ef75416 100644
@@ -21,7 +21,7 @@
 
 #include <plat/audio-simtec.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 #include "s3c24xx_simtec.h"
 
sound/soc/s3c24xx/s3c24xx_simtec_hermes.c +1 -1
index 8346bd9..61166a5 100644
@@ -18,7 +18,7 @@
 
 #include <plat/audio-simtec.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 #include "s3c24xx_simtec.h"
 
sound/soc/s3c24xx/s3c24xx_simtec_tlv320aic23.c +1 -1
index 25797e0..af0bf57 100644
@@ -18,7 +18,7 @@
 
 #include <plat/audio-simtec.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 #include "s3c24xx_simtec.h"
 
sound/soc/s3c24xx/s3c24xx_uda134x.c +1 -1
index c215d32..e8d6cc2 100644
@@ -24,7 +24,7 @@
 
 #include <plat/regs-iis.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-i2s.h"
 #include "../codecs/uda134x.h"
 
sound/soc/s3c24xx/s3c64xx-i2s.c +1 -1
index 03f5a6b..98fa4bd 100644
@@ -35,7 +35,7 @@
 #include <mach/map.h>
 #include <mach/dma.h>
 
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c64xx-i2s.h"
 
 static struct s3c2410_dma_client s3c64xx_dma_client_out = {
sound/soc/s3c24xx/smdk2443_wm9710.c +1 -1
index a2a4f53..106c72d 100644
@@ -20,7 +20,7 @@
 #include <sound/soc-dapm.h>
 
 #include "../codecs/ac97.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c24xx-ac97.h"
 
 static struct snd_soc_card smdk2443;
sound/soc/s3c24xx/smdk64xx_wm8580.c +1 -1
index cb8a916..7956a9c 100644
@@ -19,7 +19,7 @@
 #include <sound/soc-dapm.h>
 
 #include "../codecs/wm8580.h"
-#include "s3c24xx-pcm.h"
+#include "s3c-audio.h"
 #include "s3c64xx-i2s.h"
 
 #define S3C64XX_I2S_V4 2
Signature · 1 line
1.6.2.5