Commit a7be4d92 authored by Mark Brown's avatar Mark Brown

ASoC: Use our registration function for S3C64xx

Make sure we get the DAI operations initialised.
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 5c556a6e
...@@ -105,9 +105,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on) ...@@ -105,9 +105,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on)
break; break;
default: default:
dev_err(i2s->dev, "TXEN: Invalid MODE %x in IISMOD\n", dev_err(i2s->dev, "TXEN: Invalid MODE in IISMOD\n");
mod & S3C2412_IISMOD_MODE_MASK);
break;
} }
writel(con, regs + S3C2412_IISCON); writel(con, regs + S3C2412_IISCON);
...@@ -134,9 +132,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on) ...@@ -134,9 +132,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on)
break; break;
default: default:
dev_err(i2s->dev, "TXDIS: Invalid MODE %xin IISMOD\n", dev_err(i2s->dev, "TXDIS: Invalid MODE in IISMOD\n");
mod & S3C2412_IISMOD_MODE_MASK);
break;
} }
writel(mod, regs + S3C2412_IISMOD); writel(mod, regs + S3C2412_IISMOD);
...@@ -179,8 +175,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on) ...@@ -179,8 +175,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on)
break; break;
default: default:
dev_err(i2s->dev, "RXEN: Invalid MODE %x in IISMOD\n", dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n");
mod & S3C2412_IISMOD_MODE_MASK);
} }
writel(mod, regs + S3C2412_IISMOD); writel(mod, regs + S3C2412_IISMOD);
...@@ -204,8 +199,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on) ...@@ -204,8 +199,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on)
break; break;
default: default:
dev_err(i2s->dev, "RXEN: Invalid MODE %x in IISMOD\n", dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n");
mod & S3C2412_IISMOD_MODE_MASK);
} }
writel(con, regs + S3C2412_IISCON); writel(con, regs + S3C2412_IISCON);
...@@ -287,7 +281,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai, ...@@ -287,7 +281,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
iismod |= IISMOD_MASTER; iismod |= IISMOD_MASTER;
break; break;
default: default:
pr_err("unknwon master/slave format\n"); pr_debug("unknwon master/slave format\n");
return -EINVAL; return -EINVAL;
} }
...@@ -304,7 +298,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai, ...@@ -304,7 +298,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
iismod |= S3C2412_IISMOD_SDF_IIS; iismod |= S3C2412_IISMOD_SDF_IIS;
break; break;
default: default:
pr_err("Unknown data format\n"); pr_debug("Unknown data format\n");
return -EINVAL; return -EINVAL;
} }
......
...@@ -225,7 +225,7 @@ static __devinit int s3c64xx_iis_dev_probe(struct platform_device *pdev) ...@@ -225,7 +225,7 @@ static __devinit int s3c64xx_iis_dev_probe(struct platform_device *pdev)
if (ret) if (ret)
goto err_clk; goto err_clk;
ret = snd_soc_register_dai(dai); ret = s3c_i2sv2_register_dai(dai);
if (ret != 0) if (ret != 0)
goto err_i2sv2; goto err_i2sv2;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment