aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorLiam Girdwood <lg@opensource.wolfsonmicro.com>2008-07-07 11:07:29 -0400
committerJaroslav Kysela <perex@perex.cz>2008-07-10 03:32:34 -0400
commit453ba20b2800bc07a3eaf220010dc0127cc552fd (patch)
tree37cf98140804d200a6e93285b9260d9f44ea4b87 /sound
parent3c4b266fe642bcaebe2b95edb56c3f8802924ff9 (diff)
ALSA: asoc: at32 - merge structs snd_soc_codec_dai and snd_soc_cpu_dai.
This patch series merges struct snd_soc_codec_dai and struct snd_soc_cpu_dai into struct snd_soc_dai for AT32 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/at32/at32-pcm.c6
-rw-r--r--sound/soc/at32/at32-ssc.c12
-rw-r--r--sound/soc/at32/at32-ssc.h2
-rw-r--r--sound/soc/at32/playpaq_wm8510.c6
4 files changed, 13 insertions, 13 deletions
diff --git a/sound/soc/at32/at32-pcm.c b/sound/soc/at32/at32-pcm.c
index cf76e89fae6e..435f1daf177c 100644
--- a/sound/soc/at32/at32-pcm.c
+++ b/sound/soc/at32/at32-pcm.c
@@ -366,7 +366,7 @@ static struct snd_pcm_ops at32_pcm_ops = {
366static u64 at32_pcm_dmamask = 0xffffffff; 366static u64 at32_pcm_dmamask = 0xffffffff;
367 367
368static int at32_pcm_new(struct snd_card *card, 368static int at32_pcm_new(struct snd_card *card,
369 struct snd_soc_codec_dai *dai, 369 struct snd_soc_dai *dai,
370 struct snd_pcm *pcm) 370 struct snd_pcm *pcm)
371{ 371{
372 int ret = 0; 372 int ret = 0;
@@ -422,7 +422,7 @@ static void at32_pcm_free_dma_buffers(struct snd_pcm *pcm)
422 422
423#ifdef CONFIG_PM 423#ifdef CONFIG_PM
424static int at32_pcm_suspend(struct platform_device *pdev, 424static int at32_pcm_suspend(struct platform_device *pdev,
425 struct snd_soc_cpu_dai *dai) 425 struct snd_soc_dai *dai)
426{ 426{
427 struct snd_pcm_runtime *runtime = dai->runtime; 427 struct snd_pcm_runtime *runtime = dai->runtime;
428 struct at32_runtime_data *prtd; 428 struct at32_runtime_data *prtd;
@@ -447,7 +447,7 @@ static int at32_pcm_suspend(struct platform_device *pdev,
447 447
448 448
449static int at32_pcm_resume(struct platform_device *pdev, 449static int at32_pcm_resume(struct platform_device *pdev,
450 struct snd_soc_cpu_dai *dai) 450 struct snd_soc_dai *dai)
451{ 451{
452 struct snd_pcm_runtime *runtime = dai->runtime; 452 struct snd_pcm_runtime *runtime = dai->runtime;
453 struct at32_runtime_data *prtd; 453 struct at32_runtime_data *prtd;
diff --git a/sound/soc/at32/at32-ssc.c b/sound/soc/at32/at32-ssc.c
index 0ca44107f183..4ef6492c902e 100644
--- a/sound/soc/at32/at32-ssc.c
+++ b/sound/soc/at32/at32-ssc.c
@@ -336,7 +336,7 @@ static void at32_ssc_shutdown(struct snd_pcm_substream *substream)
336/* 336/*
337 * Set the SSC system clock rate 337 * Set the SSC system clock rate
338 */ 338 */
339static int at32_ssc_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai, 339static int at32_ssc_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
340 int clk_id, unsigned int freq, int dir) 340 int clk_id, unsigned int freq, int dir)
341{ 341{
342 /* TODO: What the heck do I do here? */ 342 /* TODO: What the heck do I do here? */
@@ -348,7 +348,7 @@ static int at32_ssc_set_dai_sysclk(struct snd_soc_cpu_dai *cpu_dai,
348/* 348/*
349 * Record DAI format for use by hw_params() 349 * Record DAI format for use by hw_params()
350 */ 350 */
351static int at32_ssc_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai, 351static int at32_ssc_set_dai_fmt(struct snd_soc_dai *cpu_dai,
352 unsigned int fmt) 352 unsigned int fmt)
353{ 353{
354 struct at32_ssc_info *ssc_p = &ssc_info[cpu_dai->id]; 354 struct at32_ssc_info *ssc_p = &ssc_info[cpu_dai->id];
@@ -362,7 +362,7 @@ static int at32_ssc_set_dai_fmt(struct snd_soc_cpu_dai *cpu_dai,
362/* 362/*
363 * Record SSC clock dividers for use in hw_params() 363 * Record SSC clock dividers for use in hw_params()
364 */ 364 */
365static int at32_ssc_set_dai_clkdiv(struct snd_soc_cpu_dai *cpu_dai, 365static int at32_ssc_set_dai_clkdiv(struct snd_soc_dai *cpu_dai,
366 int div_id, int div) 366 int div_id, int div)
367{ 367{
368 struct at32_ssc_info *ssc_p = &ssc_info[cpu_dai->id]; 368 struct at32_ssc_info *ssc_p = &ssc_info[cpu_dai->id];
@@ -670,7 +670,7 @@ static int at32_ssc_prepare(struct snd_pcm_substream *substream)
670 670
671#ifdef CONFIG_PM 671#ifdef CONFIG_PM
672static int at32_ssc_suspend(struct platform_device *pdev, 672static int at32_ssc_suspend(struct platform_device *pdev,
673 struct snd_soc_cpu_dai *cpu_dai) 673 struct snd_soc_dai *cpu_dai)
674{ 674{
675 struct at32_ssc_info *ssc_p; 675 struct at32_ssc_info *ssc_p;
676 676
@@ -699,7 +699,7 @@ static int at32_ssc_suspend(struct platform_device *pdev,
699 699
700 700
701static int at32_ssc_resume(struct platform_device *pdev, 701static int at32_ssc_resume(struct platform_device *pdev,
702 struct snd_soc_cpu_dai *cpu_dai) 702 struct snd_soc_dai *cpu_dai)
703{ 703{
704 struct at32_ssc_info *ssc_p; 704 struct at32_ssc_info *ssc_p;
705 u32 cr; 705 u32 cr;
@@ -746,7 +746,7 @@ static int at32_ssc_resume(struct platform_device *pdev,
746 SNDRV_PCM_FMTBIT_S24 | SNDRV_PCM_FMTBIT_S32) 746 SNDRV_PCM_FMTBIT_S24 | SNDRV_PCM_FMTBIT_S32)
747 747
748 748
749struct snd_soc_cpu_dai at32_ssc_dai[NUM_SSC_DEVICES] = { 749struct snd_soc_dai at32_ssc_dai[NUM_SSC_DEVICES] = {
750 { 750 {
751 .name = "at32-ssc0", 751 .name = "at32-ssc0",
752 .id = 0, 752 .id = 0,
diff --git a/sound/soc/at32/at32-ssc.h b/sound/soc/at32/at32-ssc.h
index 3c6901a6c036..3c052dbbe460 100644
--- a/sound/soc/at32/at32-ssc.h
+++ b/sound/soc/at32/at32-ssc.h
@@ -52,7 +52,7 @@ struct at32_ssc_info {
52#define AT32_SSC_RCMR_PERIOD 2 /* BCLK divider for receive FS */ 52#define AT32_SSC_RCMR_PERIOD 2 /* BCLK divider for receive FS */
53 53
54 54
55extern struct snd_soc_cpu_dai at32_ssc_dai[]; 55extern struct snd_soc_dai at32_ssc_dai[];
56 56
57 57
58 58
diff --git a/sound/soc/at32/playpaq_wm8510.c b/sound/soc/at32/playpaq_wm8510.c
index d6b9fd5e6123..18ac7d7391c1 100644
--- a/sound/soc/at32/playpaq_wm8510.c
+++ b/sound/soc/at32/playpaq_wm8510.c
@@ -82,7 +82,7 @@ static struct clk *_pll0;
82#if defined CONFIG_SND_AT32_SOC_PLAYPAQ_SLAVE 82#if defined CONFIG_SND_AT32_SOC_PLAYPAQ_SLAVE
83static struct ssc_clock_data playpaq_wm8510_calc_ssc_clock( 83static struct ssc_clock_data playpaq_wm8510_calc_ssc_clock(
84 struct snd_pcm_hw_params *params, 84 struct snd_pcm_hw_params *params,
85 struct snd_soc_cpu_dai *cpu_dai) 85 struct snd_soc_dai *cpu_dai)
86{ 86{
87 struct at32_ssc_info *ssc_p = cpu_dai->private_data; 87 struct at32_ssc_info *ssc_p = cpu_dai->private_data;
88 struct ssc_device *ssc = ssc_p->ssc; 88 struct ssc_device *ssc = ssc_p->ssc;
@@ -132,8 +132,8 @@ static int playpaq_wm8510_hw_params(struct snd_pcm_substream *substream,
132 struct snd_pcm_hw_params *params) 132 struct snd_pcm_hw_params *params)
133{ 133{
134 struct snd_soc_pcm_runtime *rtd = substream->private_data; 134 struct snd_soc_pcm_runtime *rtd = substream->private_data;
135 struct snd_soc_codec_dai *codec_dai = rtd->dai->codec_dai; 135 struct snd_soc_dai *codec_dai = rtd->dai->codec_dai;
136 struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai; 136 struct snd_soc_dai *cpu_dai = rtd->dai->cpu_dai;
137 struct at32_ssc_info *ssc_p = cpu_dai->private_data; 137 struct at32_ssc_info *ssc_p = cpu_dai->private_data;
138 struct ssc_device *ssc = ssc_p->ssc; 138 struct ssc_device *ssc = ssc_p->ssc;
139 unsigned int pll_out = 0, bclk = 0, mclk_div = 0; 139 unsigned int pll_out = 0, bclk = 0, mclk_div = 0;