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/s3c2412-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/s3c2412-i2s.c')
-rw-r--r-- | sound/soc/s3c24xx/s3c2412-i2s.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sound/soc/s3c24xx/s3c2412-i2s.c b/sound/soc/s3c24xx/s3c2412-i2s.c index c463a82dec3a..ee4676ed1283 100644 --- a/sound/soc/s3c24xx/s3c2412-i2s.c +++ b/sound/soc/s3c24xx/s3c2412-i2s.c | |||
@@ -295,7 +295,7 @@ static inline int s3c2412_snd_is_clkmaster(void) | |||
295 | /* | 295 | /* |
296 | * Set S3C2412 I2S DAI format | 296 | * Set S3C2412 I2S DAI format |
297 | */ | 297 | */ |
298 | static int s3c2412_i2s_set_fmt(struct snd_soc_cpu_dai *cpu_dai, | 298 | static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai, |
299 | unsigned int fmt) | 299 | unsigned int fmt) |
300 | { | 300 | { |
301 | u32 iismod; | 301 | u32 iismod; |
@@ -500,7 +500,7 @@ EXPORT_SYMBOL_GPL(s3c2412_iis_calc_rate); | |||
500 | /* | 500 | /* |
501 | * Set S3C2412 Clock source | 501 | * Set S3C2412 Clock source |
502 | */ | 502 | */ |
503 | static int s3c2412_i2s_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | 503 | static int s3c2412_i2s_set_sysclk(struct snd_soc_dai *cpu_dai, |
504 | int clk_id, unsigned int freq, int dir) | 504 | int clk_id, unsigned int freq, int dir) |
505 | { | 505 | { |
506 | u32 iismod = readl(s3c2412_i2s.regs + S3C2412_IISMOD); | 506 | u32 iismod = readl(s3c2412_i2s.regs + S3C2412_IISMOD); |
@@ -528,7 +528,7 @@ static int s3c2412_i2s_set_sysclk(struct snd_soc_cpu_dai *cpu_dai, | |||
528 | /* | 528 | /* |
529 | * Set S3C2412 Clock dividers | 529 | * Set S3C2412 Clock dividers |
530 | */ | 530 | */ |
531 | static int s3c2412_i2s_set_clkdiv(struct snd_soc_cpu_dai *cpu_dai, | 531 | static int s3c2412_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai, |
532 | int div_id, int div) | 532 | int div_id, int div) |
533 | { | 533 | { |
534 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; | 534 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; |
@@ -602,7 +602,7 @@ EXPORT_SYMBOL_GPL(s3c2412_get_iisclk); | |||
602 | 602 | ||
603 | 603 | ||
604 | static int s3c2412_i2s_probe(struct platform_device *pdev, | 604 | static int s3c2412_i2s_probe(struct platform_device *pdev, |
605 | struct snd_soc_cpu_dai *dai) | 605 | struct snd_soc_dai *dai) |
606 | { | 606 | { |
607 | DBG("Entered %s\n", __func__); | 607 | DBG("Entered %s\n", __func__); |
608 | 608 | ||
@@ -648,7 +648,7 @@ static int s3c2412_i2s_probe(struct platform_device *pdev, | |||
648 | 648 | ||
649 | #ifdef CONFIG_PM | 649 | #ifdef CONFIG_PM |
650 | static int s3c2412_i2s_suspend(struct platform_device *dev, | 650 | static int s3c2412_i2s_suspend(struct platform_device *dev, |
651 | struct snd_soc_cpu_dai *dai) | 651 | struct snd_soc_dai *dai) |
652 | { | 652 | { |
653 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; | 653 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; |
654 | u32 iismod; | 654 | u32 iismod; |
@@ -676,7 +676,7 @@ static int s3c2412_i2s_suspend(struct platform_device *dev, | |||
676 | } | 676 | } |
677 | 677 | ||
678 | static int s3c2412_i2s_resume(struct platform_device *pdev, | 678 | static int s3c2412_i2s_resume(struct platform_device *pdev, |
679 | struct snd_soc_cpu_dai *dai) | 679 | struct snd_soc_dai *dai) |
680 | { | 680 | { |
681 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; | 681 | struct s3c2412_i2s_info *i2s = &s3c2412_i2s; |
682 | 682 | ||
@@ -708,7 +708,7 @@ static int s3c2412_i2s_resume(struct platform_device *pdev, | |||
708 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ | 708 | SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \ |
709 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000) | 709 | SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000) |
710 | 710 | ||
711 | struct snd_soc_cpu_dai s3c2412_i2s_dai = { | 711 | struct snd_soc_dai s3c2412_i2s_dai = { |
712 | .name = "s3c2412-i2s", | 712 | .name = "s3c2412-i2s", |
713 | .id = 0, | 713 | .id = 0, |
714 | .type = SND_SOC_DAI_I2S, | 714 | .type = SND_SOC_DAI_I2S, |