diff options
author | Liam Girdwood <lg@opensource.wolfsonmicro.com> | 2008-07-07 11:08:24 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2008-07-10 03:32:45 -0400 |
commit | 1992a6fbd929196aebe95e0e7b04c4da66c3bfec (patch) | |
tree | 026a5700a8255c3a5d76db98a751c6033f4bcd11 /sound/soc/s3c24xx/s3c24xx-i2s.c | |
parent | 917f93ac80a1c007d4a3ce269a3712f93a75728f (diff) |
ALSA: asoc: s3c24xx - 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 S3C24xx 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/soc/s3c24xx/s3c24xx-i2s.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c24xx-i2s.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/s3c24xx-i2s.c b/sound/soc/s3c24xx/s3c24xx-i2s.c index 42e96b5ff82..397524282b5 100644 --- a/sound/soc/s3c24xx/s3c24xx-i2s.c +++ b/sound/soc/s3c24xx/s3c24xx-i2s.c | |||
@@ -205,7 +205,7 @@ static inline int s3c24xx_snd_is_clkmaster(void) | |||
205 | /* | 205 | /* |
206 | * Set S3C24xx I2S DAI format | 206 | * Set S3C24xx I2S DAI format |
207 | */ | 207 | */ |
208 | static int s3c24xx_i2s_set_fmt(struct snd_soc_cpu_dai *cpu_dai, | 208 | static int s3c24xx_i2s_set_fmt(struct snd_soc_dai *cpu_dai, |
209 | unsigned int fmt) | 209 | unsigned int fmt) |
210 | { | 210 | { |
211 | u32 iismod; | 211 | u32 iismod; |
@@ -313,7 +313,7 @@ exit_err: | |||
313 | /* | 313 | /* |
314 | * Set S3C24xx Clock source | 314 | * Set S3C24xx Clock source |
315 | */ | 315 | */ |
316 | static int s3c24xx_i2s_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | 316 | static int s3c24xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai, |
317 | int clk_id, unsigned int freq, int dir) | 317 | int clk_id, unsigned int freq, int dir) |
318 | { | 318 | { |
319 | u32 iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD); | 319 | u32 iismod = readl(s3c24xx_i2s.regs + S3C2410_IISMOD); |
@@ -339,7 +339,7 @@ static int s3c24xx_i2s_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | |||
339 | /* | 339 | /* |
340 | * Set S3C24xx Clock dividers | 340 | * Set S3C24xx Clock dividers |
341 | */ | 341 | */ |
342 | static int s3c24xx_i2s_set_clkdiv(struct snd_soc_cpu_dai *cpu_dai, | 342 | static int s3c24xx_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai, |
343 | int div_id, int div) | 343 | int div_id, int div) |
344 | { | 344 | { |
345 | u32 reg; | 345 | u32 reg; |
@@ -378,7 +378,7 @@ u32 s3c24xx_i2s_get_clockrate(void) | |||
378 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_get_clockrate); | 378 | EXPORT_SYMBOL_GPL(s3c24xx_i2s_get_clockrate); |
379 | 379 | ||
380 | static int s3c24xx_i2s_probe(struct platform_device *pdev, | 380 | static int s3c24xx_i2s_probe(struct platform_device *pdev, |
381 | struct snd_soc_cpu_dai *dai) | 381 | struct snd_soc_dai *dai) |
382 | { | 382 | { |
383 | DBG("Entered %s\n", __func__); | 383 | DBG("Entered %s\n", __func__); |
384 | 384 | ||
@@ -411,7 +411,7 @@ static int s3c24xx_i2s_probe(struct platform_device *pdev, | |||
411 | 411 | ||
412 | #ifdef CONFIG_PM | 412 | #ifdef CONFIG_PM |
413 | static int s3c24xx_i2s_suspend(struct platform_device *pdev, | 413 | static int s3c24xx_i2s_suspend(struct platform_device *pdev, |
414 | struct snd_soc_cpu_dai *cpu_dai) | 414 | struct snd_soc_dai *cpu_dai) |
415 | { | 415 | { |
416 | DBG("Entered %s\n", __func__); | 416 | DBG("Entered %s\n", __func__); |
417 | 417 | ||
@@ -426,7 +426,7 @@ static int s3c24xx_i2s_suspend(struct platform_device *pdev, | |||
426 | } | 426 | } |
427 | 427 | ||
428 | static int s3c24xx_i2s_resume(struct platform_device *pdev, | 428 | static int s3c24xx_i2s_resume(struct platform_device *pdev, |
429 | struct snd_soc_cpu_dai *cpu_dai) | 429 | struct snd_soc_dai *cpu_dai) |
430 | { | 430 | { |
431 | DBG("Entered %s\n", __func__); | 431 | DBG("Entered %s\n", __func__); |
432 | clk_enable(s3c24xx_i2s.iis_clk); | 432 | clk_enable(s3c24xx_i2s.iis_clk); |
@@ -449,7 +449,7 @@ static int s3c24xx_i2s_resume(struct platform_device *pdev, | |||
449 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ | 449 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ |
450 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000) | 450 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000) |
451 | 451 | ||
452 | struct snd_soc_cpu_dai s3c24xx_i2s_dai = { | 452 | struct snd_soc_dai s3c24xx_i2s_dai = { |
453 | .name = "s3c24xx-i2s", | 453 | .name = "s3c24xx-i2s", |
454 | .id = 0, | 454 | .id = 0, |
455 | .type = SND_SOC_DAI_I2S, | 455 | .type = SND_SOC_DAI_I2S, |