aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>2008-07-07 11:07:37 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-10 03:32:36 -0400
commitd37ae539a1d76da8fe5a939ce8b6d818501c8716 (patch)
tree9b1abcefb3db79747745f9a64719d7d3b4aae1c5 /sound
parent453ba20b2800bc07a3eaf220010dc0127cc552fd (diff)
ALSA: asoc: at91 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
This patch merges struct snd_soc_codec_dai and struct snd_soc_cpu_dai into struct snd_soc_dai for the AT91 platform. Signed-off-by: Liam Girdwood <lg@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/at91/at91-pcm.c6
-rw-r--r--sound/soc/at91/at91-ssc.c12
-rw-r--r--sound/soc/at91/at91-ssc.h2
-rw-r--r--sound/soc/at91/eti_b1_wm8731.c8
4 files changed, 14 insertions, 14 deletions
diff --git a/sound/soc/at91/at91-pcm.c b/sound/soc/at91/at91-pcm.c
index ccac6bd2889c..d47492b2b6e5 100644
--- a/sound/soc/at91/at91-pcm.c
+++ b/sound/soc/at91/at91-pcm.c
@@ -318,7 +318,7 @@ static int at91_pcm_preallocate_dma_buffer(struct snd_pcm *pcm,
318static u64 at91_pcm_dmamask = 0xffffffff; 318static u64 at91_pcm_dmamask = 0xffffffff;
319 319
320static int at91_pcm_new(struct snd_card *card, 320static int at91_pcm_new(struct snd_card *card,
321 struct snd_soc_codec_dai *dai, struct snd_pcm *pcm) 321 struct snd_soc_dai *dai, struct snd_pcm *pcm)
322{ 322{
323 int ret = 0; 323 int ret = 0;
324 324
@@ -367,7 +367,7 @@ static void at91_pcm_free_dma_buffers(struct snd_pcm *pcm)
367 367
368#ifdef CONFIG_PM 368#ifdef CONFIG_PM
369static int at91_pcm_suspend(struct platform_device *pdev, 369static int at91_pcm_suspend(struct platform_device *pdev,
370 struct snd_soc_cpu_dai *dai) 370 struct snd_soc_dai *dai)
371{ 371{
372 struct snd_pcm_runtime *runtime = dai->runtime; 372 struct snd_pcm_runtime *runtime = dai->runtime;
373 struct at91_runtime_data *prtd; 373 struct at91_runtime_data *prtd;
@@ -392,7 +392,7 @@ static int at91_pcm_suspend(struct platform_device *pdev,
392} 392}
393 393
394static int at91_pcm_resume(struct platform_device *pdev, 394static int at91_pcm_resume(struct platform_device *pdev,
395 struct snd_soc_cpu_dai *dai) 395 struct snd_soc_dai *dai)
396{ 396{
397 struct snd_pcm_runtime *runtime = dai->runtime; 397 struct snd_pcm_runtime *runtime = dai->runtime;
398 struct at91_runtime_data *prtd; 398 struct at91_runtime_data *prtd;
diff --git a/sound/soc/at91/at91-ssc.c b/sound/soc/at91/at91-ssc.c
index bc35d00a38f8..c3625b665c5a 100644
--- a/sound/soc/at91/at91-ssc.c
+++ b/sound/soc/at91/at91-ssc.c
@@ -281,7 +281,7 @@ static void at91_ssc_shutdown(struct snd_pcm_substream *substream)
281/* 281/*
282 * Record the SSC system clock rate. 282 * Record the SSC system clock rate.
283 */ 283 */
284static int at91_ssc_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai, 284static int at91_ssc_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
285 int clk_id, unsigned int freq, int dir) 285 int clk_id, unsigned int freq, int dir)
286{ 286{
287 /* 287 /*
@@ -303,7 +303,7 @@ static int at91_ssc_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai,
303/* 303/*
304 * Record the DAI format for use in hw_params(). 304 * Record the DAI format for use in hw_params().
305 */ 305 */
306static int at91_ssc_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, 306static int at91_ssc_set_dai_fmt(struct snd_soc_dai *cpu_dai,
307 unsigned int fmt) 307 unsigned int fmt)
308{ 308{
309 struct at91_ssc_info *ssc_p = &ssc_info[cpu_dai->id]; 309 struct at91_ssc_info *ssc_p = &ssc_info[cpu_dai->id];
@@ -315,7 +315,7 @@ static int at91_ssc_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai,
315/* 315/*
316 * Record SSC clock dividers for use in hw_params(). 316 * Record SSC clock dividers for use in hw_params().
317 */ 317 */
318static int at91_ssc_set_dai_clkdiv(struct snd_soc_cpu_dai *cpu_dai, 318static int at91_ssc_set_dai_clkdiv(struct snd_soc_dai *cpu_dai,
319 int div_id, int div) 319 int div_id, int div)
320{ 320{
321 struct at91_ssc_info *ssc_p = &ssc_info[cpu_dai->id]; 321 struct at91_ssc_info *ssc_p = &ssc_info[cpu_dai->id];
@@ -634,7 +634,7 @@ static int at91_ssc_prepare(struct snd_pcm_substream *substream)
634 634
635#ifdef CONFIG_PM 635#ifdef CONFIG_PM
636static int at91_ssc_suspend(struct platform_device *pdev, 636static int at91_ssc_suspend(struct platform_device *pdev,
637 struct snd_soc_cpu_dai *cpu_dai) 637 struct snd_soc_dai *cpu_dai)
638{ 638{
639 struct at91_ssc_info *ssc_p; 639 struct at91_ssc_info *ssc_p;
640 640
@@ -662,7 +662,7 @@ static int at91_ssc_suspend(struct platform_device *pdev,
662} 662}
663 663
664static int at91_ssc_resume(struct platform_device *pdev, 664static int at91_ssc_resume(struct platform_device *pdev,
665 struct snd_soc_cpu_dai *cpu_dai) 665 struct snd_soc_dai *cpu_dai)
666{ 666{
667 struct at91_ssc_info *ssc_p; 667 struct at91_ssc_info *ssc_p;
668 668
@@ -700,7 +700,7 @@ static int at91_ssc_resume(struct platform_device *pdev,
700#define AT91_SSC_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |\ 700#define AT91_SSC_FORMATS (SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE |\
701 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE) 701 SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE)
702 702
703struct snd_soc_cpu_dai at91_ssc_dai[NUM_SSC_DEVICES] = { 703struct snd_soc_dai at91_ssc_dai[NUM_SSC_DEVICES] = {
704 { .name = "at91-ssc0", 704 { .name = "at91-ssc0",
705 .id = 0, 705 .id = 0,
706 .type = SND_SOC_DAI_PCM, 706 .type = SND_SOC_DAI_PCM,
diff --git a/sound/soc/at91/at91-ssc.h b/sound/soc/at91/at91-ssc.h
index b188f973df9f..6b7bf382d06f 100644
--- a/sound/soc/at91/at91-ssc.h
+++ b/sound/soc/at91/at91-ssc.h
@@ -21,7 +21,7 @@
21#define AT91SSC_TCMR_PERIOD 1 /* BCLK divider for transmit FS */ 21#define AT91SSC_TCMR_PERIOD 1 /* BCLK divider for transmit FS */
22#define AT91SSC_RCMR_PERIOD 2 /* BCLK divider for receive FS */ 22#define AT91SSC_RCMR_PERIOD 2 /* BCLK divider for receive FS */
23 23
24extern struct snd_soc_cpu_dai at91_ssc_dai[]; 24extern struct snd_soc_dai at91_ssc_dai[];
25 25
26#endif /* _AT91_SSC_H */ 26#endif /* _AT91_SSC_H */
27 27
diff --git a/sound/soc/at91/eti_b1_wm8731.c b/sound/soc/at91/eti_b1_wm8731.c
index ad971e7061fe..9d4213963c26 100644
--- a/sound/soc/at91/eti_b1_wm8731.c
+++ b/sound/soc/at91/eti_b1_wm8731.c
@@ -53,8 +53,8 @@ static struct clk *pllb_clk;
53static int eti_b1_startup(struct snd_pcm_substream *substream) 53static int eti_b1_startup(struct snd_pcm_substream *substream)
54{ 54{
55 struct snd_soc_pcm_runtime *rtd = substream->private_data; 55 struct snd_soc_pcm_runtime *rtd = substream->private_data;
56 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 56 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
57 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 57 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
58 int ret; 58 int ret;
59 59
60 /* cpu clock is the AT91 master clock sent to the SSC */ 60 /* cpu clock is the AT91 master clock sent to the SSC */
@@ -87,8 +87,8 @@ static int eti_b1_hw_params(struct snd_pcm_substream *substream,
87 struct snd_pcm_hw_params *params) 87 struct snd_pcm_hw_params *params)
88{ 88{
89 struct snd_soc_pcm_runtime *rtd = substream->private_data; 89 struct snd_soc_pcm_runtime *rtd = substream->private_data;
90 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 90 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
91 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 91 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
92 int ret; 92 int ret;
93 93
94#ifdef CONFIG_SND_AT91_SOC_ETI_SLAVE 94#ifdef CONFIG_SND_AT91_SOC_ETI_SLAVE