|
@@ -205,7 +205,7 @@ static inline int s3c24xx_snd_is_clkmaster(void)
|
|
|
/*
|
|
|
* Set S3C24xx I2S DAI format
|
|
|
*/
|
|
|
-static int s3c24xx_i2s_set_fmt(struct snd_soc_cpu_dai *cpu_dai,
|
|
|
+static int s3c24xx_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
|
|
|
unsigned int fmt)
|
|
|
{
|
|
|
u32 iismod;
|
|
@@ -313,7 +313,7 @@ exit_err:
|
|
|
/*
|
|
|
* Set S3C24xx Clock source
|
|
|
*/
|
|
|
-static int s3c24xx_i2s_set_sysclk(struct snd_soc_cpu_dai *cpu_dai,
|
|
|
+static int s3c24xx_i2s_set_sysclk(struct snd_soc_dai *cpu_dai,
|
|
|
int clk_id, unsigned int freq, int dir)
|
|
|
{
|
|
|
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,
|
|
|
/*
|
|
|
* Set S3C24xx Clock dividers
|
|
|
*/
|
|
|
-static int s3c24xx_i2s_set_clkdiv(struct snd_soc_cpu_dai *cpu_dai,
|
|
|
+static int s3c24xx_i2s_set_clkdiv(struct snd_soc_dai *cpu_dai,
|
|
|
int div_id, int div)
|
|
|
{
|
|
|
u32 reg;
|
|
@@ -378,7 +378,7 @@ u32 s3c24xx_i2s_get_clockrate(void)
|
|
|
EXPORT_SYMBOL_GPL(s3c24xx_i2s_get_clockrate);
|
|
|
|
|
|
static int s3c24xx_i2s_probe(struct platform_device *pdev,
|
|
|
- struct snd_soc_cpu_dai *dai)
|
|
|
+ struct snd_soc_dai *dai)
|
|
|
{
|
|
|
DBG("Entered %s\n", __func__);
|
|
|
|
|
@@ -411,7 +411,7 @@ static int s3c24xx_i2s_probe(struct platform_device *pdev,
|
|
|
|
|
|
#ifdef CONFIG_PM
|
|
|
static int s3c24xx_i2s_suspend(struct platform_device *pdev,
|
|
|
- struct snd_soc_cpu_dai *cpu_dai)
|
|
|
+ struct snd_soc_dai *cpu_dai)
|
|
|
{
|
|
|
DBG("Entered %s\n", __func__);
|
|
|
|
|
@@ -426,7 +426,7 @@ static int s3c24xx_i2s_suspend(struct platform_device *pdev,
|
|
|
}
|
|
|
|
|
|
static int s3c24xx_i2s_resume(struct platform_device *pdev,
|
|
|
- struct snd_soc_cpu_dai *cpu_dai)
|
|
|
+ struct snd_soc_dai *cpu_dai)
|
|
|
{
|
|
|
DBG("Entered %s\n", __func__);
|
|
|
clk_enable(s3c24xx_i2s.iis_clk);
|
|
@@ -449,7 +449,7 @@ static int s3c24xx_i2s_resume(struct platform_device *pdev,
|
|
|
SNDRV_PCM_RATE_22050 | SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_44100 | \
|
|
|
SNDRV_PCM_RATE_48000 | SNDRV_PCM_RATE_88200 | SNDRV_PCM_RATE_96000)
|
|
|
|
|
|
-struct snd_soc_cpu_dai s3c24xx_i2s_dai = {
|
|
|
+struct snd_soc_dai s3c24xx_i2s_dai = {
|
|
|
.name = "s3c24xx-i2s",
|
|
|
.id = 0,
|
|
|
.type = SND_SOC_DAI_I2S,
|