aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-06 11:01:27 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2009-10-06 11:01:27 -0400
commit907bc6c7fc7071b00083fc11e510e47dd93df45d (patch)
tree0697a608561522c00da9e1814974a2eb051bb96d /sound/soc
parentd2b247a8be57647d1745535acd58169fbcbe431a (diff)
parent2a0f5cb32772e9a9560209e241a80bfbbc31dbc3 (diff)
Merge branch 'for-2.6.32' into for-2.6.33
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/atmel/sam9g20_wm8731.c36
-rw-r--r--sound/soc/codecs/wm8988.c4
-rw-r--r--sound/soc/codecs/wm9081.c2
-rw-r--r--sound/soc/davinci/davinci-pcm.c6
-rw-r--r--sound/soc/fsl/efika-audio-fabric.c2
-rw-r--r--sound/soc/fsl/pcm030-audio-fabric.c2
-rw-r--r--sound/soc/pxa/pxa-ssp.c2
-rw-r--r--sound/soc/s3c24xx/s3c24xx-ac97.h6
-rw-r--r--sound/soc/s3c24xx/s3c24xx_uda134x.c2
9 files changed, 12 insertions, 50 deletions
diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
index 130b12118d4f..885ba012557e 100644
--- a/sound/soc/atmel/sam9g20_wm8731.c
+++ b/sound/soc/atmel/sam9g20_wm8731.c
@@ -193,38 +193,6 @@ static struct snd_soc_card snd_soc_at91sam9g20ek = {
193 .set_bias_level = at91sam9g20ek_set_bias_level, 193 .set_bias_level = at91sam9g20ek_set_bias_level,
194}; 194};
195 195
196/*
197 * FIXME: This is a temporary bodge to avoid cross-tree merge issues.
198 * New drivers should register the wm8731 I2C device in the machine
199 * setup code (under arch/arm for ARM systems).
200 */
201static int wm8731_i2c_register(void)
202{
203 struct i2c_board_info info;
204 struct i2c_adapter *adapter;
205 struct i2c_client *client;
206
207 memset(&info, 0, sizeof(struct i2c_board_info));
208 info.addr = 0x1b;
209 strlcpy(info.type, "wm8731", I2C_NAME_SIZE);
210
211 adapter = i2c_get_adapter(0);
212 if (!adapter) {
213 printk(KERN_ERR "can't get i2c adapter 0\n");
214 return -ENODEV;
215 }
216
217 client = i2c_new_device(adapter, &info);
218 i2c_put_adapter(adapter);
219 if (!client) {
220 printk(KERN_ERR "can't add i2c device at 0x%x\n",
221 (unsigned int)info.addr);
222 return -ENODEV;
223 }
224
225 return 0;
226}
227
228static struct snd_soc_device at91sam9g20ek_snd_devdata = { 196static struct snd_soc_device at91sam9g20ek_snd_devdata = {
229 .card = &snd_soc_at91sam9g20ek, 197 .card = &snd_soc_at91sam9g20ek,
230 .codec_dev = &soc_codec_dev_wm8731, 198 .codec_dev = &soc_codec_dev_wm8731,
@@ -279,10 +247,6 @@ static int __init at91sam9g20ek_init(void)
279 } 247 }
280 ssc_p->ssc = ssc; 248 ssc_p->ssc = ssc;
281 249
282 ret = wm8731_i2c_register();
283 if (ret != 0)
284 goto err_ssc;
285
286 at91sam9g20ek_snd_device = platform_device_alloc("soc-audio", -1); 250 at91sam9g20ek_snd_device = platform_device_alloc("soc-audio", -1);
287 if (!at91sam9g20ek_snd_device) { 251 if (!at91sam9g20ek_snd_device) {
288 printk(KERN_ERR "ASoC: Platform device allocation failed\n"); 252 printk(KERN_ERR "ASoC: Platform device allocation failed\n");
diff --git a/sound/soc/codecs/wm8988.c b/sound/soc/codecs/wm8988.c
index 1c8653523c8c..3f530f8a972a 100644
--- a/sound/soc/codecs/wm8988.c
+++ b/sound/soc/codecs/wm8988.c
@@ -992,14 +992,14 @@ static int __devinit wm8988_spi_probe(struct spi_device *spi)
992 codec->control_data = spi; 992 codec->control_data = spi;
993 codec->dev = &spi->dev; 993 codec->dev = &spi->dev;
994 994
995 spi->dev.driver_data = wm8988; 995 dev_set_drvdata(&spi->dev, wm8988);
996 996
997 return wm8988_register(wm8988, SND_SOC_SPI); 997 return wm8988_register(wm8988, SND_SOC_SPI);
998} 998}
999 999
1000static int __devexit wm8988_spi_remove(struct spi_device *spi) 1000static int __devexit wm8988_spi_remove(struct spi_device *spi)
1001{ 1001{
1002 struct wm8988_priv *wm8988 = spi->dev.driver_data; 1002 struct wm8988_priv *wm8988 = dev_get_drvdata(&spi->dev);
1003 1003
1004 wm8988_unregister(wm8988); 1004 wm8988_unregister(wm8988);
1005 1005
diff --git a/sound/soc/codecs/wm9081.c b/sound/soc/codecs/wm9081.c
index c64e55aa63b6..686e5aa97206 100644
--- a/sound/soc/codecs/wm9081.c
+++ b/sound/soc/codecs/wm9081.c
@@ -1027,7 +1027,7 @@ static int wm9081_hw_params(struct snd_pcm_substream *substream,
1027 - wm9081->fs); 1027 - wm9081->fs);
1028 for (i = 1; i < ARRAY_SIZE(clk_sys_rates); i++) { 1028 for (i = 1; i < ARRAY_SIZE(clk_sys_rates); i++) {
1029 cur_val = abs((wm9081->sysclk_rate / 1029 cur_val = abs((wm9081->sysclk_rate /
1030 clk_sys_rates[i].ratio) - wm9081->fs);; 1030 clk_sys_rates[i].ratio) - wm9081->fs);
1031 if (cur_val < best_val) { 1031 if (cur_val < best_val) {
1032 best = i; 1032 best = i;
1033 best_val = cur_val; 1033 best_val = cur_val;
diff --git a/sound/soc/davinci/davinci-pcm.c b/sound/soc/davinci/davinci-pcm.c
index 1152d8ba8970..fb10f1d63fdb 100644
--- a/sound/soc/davinci/davinci-pcm.c
+++ b/sound/soc/davinci/davinci-pcm.c
@@ -153,7 +153,7 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream)
153 prtd->master_lch = ret; 153 prtd->master_lch = ret;
154 154
155 /* Request parameter RAM reload slot */ 155 /* Request parameter RAM reload slot */
156 ret = edma_alloc_slot(EDMA_SLOT_ANY); 156 ret = edma_alloc_slot(EDMA_CTLR(prtd->master_lch), EDMA_SLOT_ANY);
157 if (ret < 0) { 157 if (ret < 0) {
158 edma_free_channel(prtd->master_lch); 158 edma_free_channel(prtd->master_lch);
159 return ret; 159 return ret;
@@ -170,8 +170,8 @@ static int davinci_pcm_dma_request(struct snd_pcm_substream *substream)
170 * so davinci_pcm_enqueue_dma() takes less time in IRQ. 170 * so davinci_pcm_enqueue_dma() takes less time in IRQ.
171 */ 171 */
172 edma_read_slot(prtd->slave_lch, &p_ram); 172 edma_read_slot(prtd->slave_lch, &p_ram);
173 p_ram.opt |= TCINTEN | EDMA_TCC(prtd->master_lch); 173 p_ram.opt |= TCINTEN | EDMA_TCC(EDMA_CHAN_SLOT(prtd->master_lch));
174 p_ram.link_bcntrld = prtd->slave_lch << 5; 174 p_ram.link_bcntrld = EDMA_CHAN_SLOT(prtd->slave_lch) << 5;
175 edma_write_slot(prtd->slave_lch, &p_ram); 175 edma_write_slot(prtd->slave_lch, &p_ram);
176 176
177 return 0; 177 return 0;
diff --git a/sound/soc/fsl/efika-audio-fabric.c b/sound/soc/fsl/efika-audio-fabric.c
index 85b0e7569504..3326e2a1e863 100644
--- a/sound/soc/fsl/efika-audio-fabric.c
+++ b/sound/soc/fsl/efika-audio-fabric.c
@@ -30,6 +30,8 @@
30#include "mpc5200_psc_ac97.h" 30#include "mpc5200_psc_ac97.h"
31#include "../codecs/stac9766.h" 31#include "../codecs/stac9766.h"
32 32
33#define DRV_NAME "efika-audio-fabric"
34
33static struct snd_soc_device device; 35static struct snd_soc_device device;
34static struct snd_soc_card card; 36static struct snd_soc_card card;
35 37
diff --git a/sound/soc/fsl/pcm030-audio-fabric.c b/sound/soc/fsl/pcm030-audio-fabric.c
index 8766f7a3893d..b928ef7d28eb 100644
--- a/sound/soc/fsl/pcm030-audio-fabric.c
+++ b/sound/soc/fsl/pcm030-audio-fabric.c
@@ -30,6 +30,8 @@
30#include "mpc5200_psc_ac97.h" 30#include "mpc5200_psc_ac97.h"
31#include "../codecs/wm9712.h" 31#include "../codecs/wm9712.h"
32 32
33#define DRV_NAME "pcm030-audio-fabric"
34
33static struct snd_soc_device device; 35static struct snd_soc_device device;
34static struct snd_soc_card card; 36static struct snd_soc_card card;
35 37
diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c
index a2b1e8fd5d85..3bd7712f029b 100644
--- a/sound/soc/pxa/pxa-ssp.c
+++ b/sound/soc/pxa/pxa-ssp.c
@@ -351,7 +351,7 @@ static int pxa_ssp_set_dai_pll(struct snd_soc_dai *cpu_dai, int pll_id,
351 do_div(tmp, freq_out); 351 do_div(tmp, freq_out);
352 val = tmp; 352 val = tmp;
353 353
354 val = (val << 16) | 64;; 354 val = (val << 16) | 64;
355 ssp_write_reg(ssp, SSACDD, val); 355 ssp_write_reg(ssp, SSACDD, val);
356 356
357 ssacd |= (0x6 << 4); 357 ssacd |= (0x6 << 4);
diff --git a/sound/soc/s3c24xx/s3c24xx-ac97.h b/sound/soc/s3c24xx/s3c24xx-ac97.h
index a96dcadf28b4..e96f941a810b 100644
--- a/sound/soc/s3c24xx/s3c24xx-ac97.h
+++ b/sound/soc/s3c24xx/s3c24xx-ac97.h
@@ -20,12 +20,6 @@
20#define AC_CMD_ADDR(x) (x << 16) 20#define AC_CMD_ADDR(x) (x << 16)
21#define AC_CMD_DATA(x) (x & 0xffff) 21#define AC_CMD_DATA(x) (x & 0xffff)
22 22
23#ifdef CONFIG_CPU_S3C2440
24#define IRQ_S3C244x_AC97 IRQ_S3C2440_AC97
25#else
26#define IRQ_S3C244x_AC97 IRQ_S3C2443_AC97
27#endif
28
29extern struct snd_soc_dai s3c2443_ac97_dai[]; 23extern struct snd_soc_dai s3c2443_ac97_dai[];
30 24
31#endif /*S3C24XXAC97_H_*/ 25#endif /*S3C24XXAC97_H_*/
diff --git a/sound/soc/s3c24xx/s3c24xx_uda134x.c b/sound/soc/s3c24xx/s3c24xx_uda134x.c
index 8e79a416db57..c215d32d6322 100644
--- a/sound/soc/s3c24xx/s3c24xx_uda134x.c
+++ b/sound/soc/s3c24xx/s3c24xx_uda134x.c
@@ -67,7 +67,7 @@ static int s3c24xx_uda134x_startup(struct snd_pcm_substream *substream)
67{ 67{
68 int ret = 0; 68 int ret = 0;
69#ifdef ENFORCE_RATES 69#ifdef ENFORCE_RATES
70 struct snd_pcm_runtime *runtime = substream->runtime;; 70 struct snd_pcm_runtime *runtime = substream->runtime;
71#endif 71#endif
72 72
73 mutex_lock(&clk_lock); 73 mutex_lock(&clk_lock);