aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-27 15:24:15 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-04-27 15:28:14 -0400
commita7be4d92d989fc53d840d24cba2ebea9e5ad8480 (patch)
treef94d40768af7239fd96364b1683f9dc61ea4a354 /sound
parent5c556a6e190897a0f1ff14e13722591828412031 (diff)
ASoC: Use our registration function for S3C64xx
Make sure we get the DAI operations initialised. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/s3c24xx/s3c-i2s-v2.c18
-rw-r--r--sound/soc/s3c24xx/s3c64xx-i2s.c2
2 files changed, 7 insertions, 13 deletions
diff --git a/sound/soc/s3c24xx/s3c-i2s-v2.c b/sound/soc/s3c24xx/s3c-i2s-v2.c
index aeea49cbe74a..ab680aac3fcb 100644
--- a/sound/soc/s3c24xx/s3c-i2s-v2.c
+++ b/sound/soc/s3c24xx/s3c-i2s-v2.c
@@ -105,9 +105,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on)
105 break; 105 break;
106 106
107 default: 107 default:
108 dev_err(i2s->dev, "TXEN: Invalid MODE %x in IISMOD\n", 108 dev_err(i2s->dev, "TXEN: Invalid MODE in IISMOD\n");
109 mod & S3C2412_IISMOD_MODE_MASK);
110 break;
111 } 109 }
112 110
113 writel(con, regs + S3C2412_IISCON); 111 writel(con, regs + S3C2412_IISCON);
@@ -134,9 +132,7 @@ void s3c2412_snd_txctrl(struct s3c_i2sv2_info *i2s, int on)
134 break; 132 break;
135 133
136 default: 134 default:
137 dev_err(i2s->dev, "TXDIS: Invalid MODE %xin IISMOD\n", 135 dev_err(i2s->dev, "TXDIS: Invalid MODE in IISMOD\n");
138 mod & S3C2412_IISMOD_MODE_MASK);
139 break;
140 } 136 }
141 137
142 writel(mod, regs + S3C2412_IISMOD); 138 writel(mod, regs + S3C2412_IISMOD);
@@ -179,8 +175,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on)
179 break; 175 break;
180 176
181 default: 177 default:
182 dev_err(i2s->dev, "RXEN: Invalid MODE %x in IISMOD\n", 178 dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n");
183 mod & S3C2412_IISMOD_MODE_MASK);
184 } 179 }
185 180
186 writel(mod, regs + S3C2412_IISMOD); 181 writel(mod, regs + S3C2412_IISMOD);
@@ -204,8 +199,7 @@ void s3c2412_snd_rxctrl(struct s3c_i2sv2_info *i2s, int on)
204 break; 199 break;
205 200
206 default: 201 default:
207 dev_err(i2s->dev, "RXEN: Invalid MODE %x in IISMOD\n", 202 dev_err(i2s->dev, "RXEN: Invalid MODE in IISMOD\n");
208 mod & S3C2412_IISMOD_MODE_MASK);
209 } 203 }
210 204
211 writel(con, regs + S3C2412_IISCON); 205 writel(con, regs + S3C2412_IISCON);
@@ -287,7 +281,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
287 iismod |= IISMOD_MASTER; 281 iismod |= IISMOD_MASTER;
288 break; 282 break;
289 default: 283 default:
290 pr_err("unknwon master/slave format\n"); 284 pr_debug("unknwon master/slave format\n");
291 return -EINVAL; 285 return -EINVAL;
292 } 286 }
293 287
@@ -304,7 +298,7 @@ static int s3c2412_i2s_set_fmt(struct snd_soc_dai *cpu_dai,
304 iismod |= S3C2412_IISMOD_SDF_IIS; 298 iismod |= S3C2412_IISMOD_SDF_IIS;
305 break; 299 break;
306 default: 300 default:
307 pr_err("Unknown data format\n"); 301 pr_debug("Unknown data format\n");
308 return -EINVAL; 302 return -EINVAL;
309 } 303 }
310 304
diff --git a/sound/soc/s3c24xx/s3c64xx-i2s.c b/sound/soc/s3c24xx/s3c64xx-i2s.c
index c33524803b3e..1345fbdca700 100644
--- a/sound/soc/s3c24xx/s3c64xx-i2s.c
+++ b/sound/soc/s3c24xx/s3c64xx-i2s.c
@@ -225,7 +225,7 @@ static __devinit int s3c64xx_iis_dev_probe(struct platform_device *pdev)
225 if (ret) 225 if (ret)
226 goto err_clk; 226 goto err_clk;
227 227
228 ret = snd_soc_register_dai(dai); 228 ret = s3c_i2sv2_register_dai(dai);
229 if (ret != 0) 229 if (ret != 0)
230 goto err_i2sv2; 230 goto err_i2sv2;
231 231