diff options
| -rw-r--r-- | MAINTAINERS | 4 | ||||
| -rw-r--r-- | sound/soc/blackfin/bf5xx-ad193x.c | 4 | ||||
| -rw-r--r-- | sound/soc/fsl/mpc5200_dma.c | 6 | ||||
| -rw-r--r-- | sound/soc/imx/imx-pcm-fiq.c | 1 | ||||
| -rw-r--r-- | sound/soc/kirkwood/kirkwood-i2s.c | 2 | ||||
| -rw-r--r-- | sound/soc/soc-cache.c | 12 | ||||
| -rw-r--r-- | sound/soc/soc-core.c | 4 | ||||
| -rw-r--r-- | sound/soc/soc-dapm.c | 2 | ||||
| -rw-r--r-- | sound/soc/soc-jack.c | 2 |
9 files changed, 20 insertions, 17 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 4f555d8e5346..0b4ccdd35bbb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -7200,6 +7200,9 @@ W: http://opensource.wolfsonmicro.com/content/linux-drivers-wolfson-devices | |||
| 7200 | S: Supported | 7200 | S: Supported |
| 7201 | F: Documentation/hwmon/wm83?? | 7201 | F: Documentation/hwmon/wm83?? |
| 7202 | F: drivers/leds/leds-wm83*.c | 7202 | F: drivers/leds/leds-wm83*.c |
| 7203 | F: drivers/input/misc/wm831x-on.c | ||
| 7204 | F: drivers/input/touchscreen/wm831x-ts.c | ||
| 7205 | F: drivers/input/touchscreen/wm97*.c | ||
| 7203 | F: drivers/mfd/wm8*.c | 7206 | F: drivers/mfd/wm8*.c |
| 7204 | F: drivers/power/wm83*.c | 7207 | F: drivers/power/wm83*.c |
| 7205 | F: drivers/rtc/rtc-wm83*.c | 7208 | F: drivers/rtc/rtc-wm83*.c |
| @@ -7209,6 +7212,7 @@ F: drivers/watchdog/wm83*_wdt.c | |||
| 7209 | F: include/linux/mfd/wm831x/ | 7212 | F: include/linux/mfd/wm831x/ |
| 7210 | F: include/linux/mfd/wm8350/ | 7213 | F: include/linux/mfd/wm8350/ |
| 7211 | F: include/linux/mfd/wm8400* | 7214 | F: include/linux/mfd/wm8400* |
| 7215 | F: include/linux/wm97xx.h | ||
| 7212 | F: include/sound/wm????.h | 7216 | F: include/sound/wm????.h |
| 7213 | F: sound/soc/codecs/wm* | 7217 | F: sound/soc/codecs/wm* |
| 7214 | 7218 | ||
diff --git a/sound/soc/blackfin/bf5xx-ad193x.c b/sound/soc/blackfin/bf5xx-ad193x.c index a118a0fb9d81..5956584ea3a4 100644 --- a/sound/soc/blackfin/bf5xx-ad193x.c +++ b/sound/soc/blackfin/bf5xx-ad193x.c | |||
| @@ -103,7 +103,7 @@ static struct snd_soc_dai_link bf5xx_ad193x_dai[] = { | |||
| 103 | .cpu_dai_name = "bfin-tdm.0", | 103 | .cpu_dai_name = "bfin-tdm.0", |
| 104 | .codec_dai_name ="ad193x-hifi", | 104 | .codec_dai_name ="ad193x-hifi", |
| 105 | .platform_name = "bfin-tdm-pcm-audio", | 105 | .platform_name = "bfin-tdm-pcm-audio", |
| 106 | .codec_name = "ad193x.5", | 106 | .codec_name = "spi0.5", |
| 107 | .ops = &bf5xx_ad193x_ops, | 107 | .ops = &bf5xx_ad193x_ops, |
| 108 | }, | 108 | }, |
| 109 | { | 109 | { |
| @@ -112,7 +112,7 @@ static struct snd_soc_dai_link bf5xx_ad193x_dai[] = { | |||
| 112 | .cpu_dai_name = "bfin-tdm.1", | 112 | .cpu_dai_name = "bfin-tdm.1", |
| 113 | .codec_dai_name ="ad193x-hifi", | 113 | .codec_dai_name ="ad193x-hifi", |
| 114 | .platform_name = "bfin-tdm-pcm-audio", | 114 | .platform_name = "bfin-tdm-pcm-audio", |
| 115 | .codec_name = "ad193x.5", | 115 | .codec_name = "spi0.5", |
| 116 | .ops = &bf5xx_ad193x_ops, | 116 | .ops = &bf5xx_ad193x_ops, |
| 117 | }, | 117 | }, |
| 118 | }; | 118 | }; |
diff --git a/sound/soc/fsl/mpc5200_dma.c b/sound/soc/fsl/mpc5200_dma.c index fd0dc46afc34..5c6c2457386e 100644 --- a/sound/soc/fsl/mpc5200_dma.c +++ b/sound/soc/fsl/mpc5200_dma.c | |||
| @@ -369,7 +369,7 @@ static struct snd_soc_platform_driver mpc5200_audio_dma_platform = { | |||
| 369 | .pcm_free = &psc_dma_free, | 369 | .pcm_free = &psc_dma_free, |
| 370 | }; | 370 | }; |
| 371 | 371 | ||
| 372 | static int mpc5200_hpcd_probe(struct of_device *op) | 372 | static int mpc5200_hpcd_probe(struct platform_device *op) |
| 373 | { | 373 | { |
| 374 | phys_addr_t fifo; | 374 | phys_addr_t fifo; |
| 375 | struct psc_dma *psc_dma; | 375 | struct psc_dma *psc_dma; |
| @@ -487,7 +487,7 @@ out_unmap: | |||
| 487 | return ret; | 487 | return ret; |
| 488 | } | 488 | } |
| 489 | 489 | ||
| 490 | static int mpc5200_hpcd_remove(struct of_device *op) | 490 | static int mpc5200_hpcd_remove(struct platform_device *op) |
| 491 | { | 491 | { |
| 492 | struct psc_dma *psc_dma = dev_get_drvdata(&op->dev); | 492 | struct psc_dma *psc_dma = dev_get_drvdata(&op->dev); |
| 493 | 493 | ||
| @@ -519,7 +519,7 @@ MODULE_DEVICE_TABLE(of, mpc5200_hpcd_match); | |||
| 519 | static struct platform_driver mpc5200_hpcd_of_driver = { | 519 | static struct platform_driver mpc5200_hpcd_of_driver = { |
| 520 | .probe = mpc5200_hpcd_probe, | 520 | .probe = mpc5200_hpcd_probe, |
| 521 | .remove = mpc5200_hpcd_remove, | 521 | .remove = mpc5200_hpcd_remove, |
| 522 | .dev = { | 522 | .driver = { |
| 523 | .owner = THIS_MODULE, | 523 | .owner = THIS_MODULE, |
| 524 | .name = "mpc5200-pcm-audio", | 524 | .name = "mpc5200-pcm-audio", |
| 525 | .of_match_table = mpc5200_hpcd_match, | 525 | .of_match_table = mpc5200_hpcd_match, |
diff --git a/sound/soc/imx/imx-pcm-fiq.c b/sound/soc/imx/imx-pcm-fiq.c index 309c59e6fb6c..7945625e0e08 100644 --- a/sound/soc/imx/imx-pcm-fiq.c +++ b/sound/soc/imx/imx-pcm-fiq.c | |||
| @@ -240,7 +240,6 @@ static int ssi_irq = 0; | |||
| 240 | 240 | ||
| 241 | static int imx_pcm_fiq_new(struct snd_soc_pcm_runtime *rtd) | 241 | static int imx_pcm_fiq_new(struct snd_soc_pcm_runtime *rtd) |
| 242 | { | 242 | { |
| 243 | struct snd_card *card = rtd->card->snd_card; | ||
| 244 | struct snd_soc_dai *dai = rtd->cpu_dai; | 243 | struct snd_soc_dai *dai = rtd->cpu_dai; |
| 245 | struct snd_pcm *pcm = rtd->pcm; | 244 | struct snd_pcm *pcm = rtd->pcm; |
| 246 | int ret; | 245 | int ret; |
diff --git a/sound/soc/kirkwood/kirkwood-i2s.c b/sound/soc/kirkwood/kirkwood-i2s.c index 8f16cd37c2af..d0bcf3fcea01 100644 --- a/sound/soc/kirkwood/kirkwood-i2s.c +++ b/sound/soc/kirkwood/kirkwood-i2s.c | |||
| @@ -424,7 +424,7 @@ static __devinit int kirkwood_i2s_dev_probe(struct platform_device *pdev) | |||
| 424 | if (!priv->mem) { | 424 | if (!priv->mem) { |
| 425 | dev_err(&pdev->dev, "request_mem_region failed\n"); | 425 | dev_err(&pdev->dev, "request_mem_region failed\n"); |
| 426 | err = -EBUSY; | 426 | err = -EBUSY; |
| 427 | goto error_alloc; | 427 | goto err_alloc; |
| 428 | } | 428 | } |
| 429 | 429 | ||
| 430 | priv->io = ioremap(priv->mem->start, SZ_16K); | 430 | priv->io = ioremap(priv->mem->start, SZ_16K); |
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index d9f8aded51f3..20b7f3b003a3 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c | |||
| @@ -203,14 +203,14 @@ static int snd_soc_rbtree_cache_sync(struct snd_soc_codec *codec) | |||
| 203 | rbnode = rb_entry(node, struct snd_soc_rbtree_node, node); | 203 | rbnode = rb_entry(node, struct snd_soc_rbtree_node, node); |
| 204 | for (i = 0; i < rbnode->blklen; ++i) { | 204 | for (i = 0; i < rbnode->blklen; ++i) { |
| 205 | regtmp = rbnode->base_reg + i; | 205 | regtmp = rbnode->base_reg + i; |
| 206 | WARN_ON(codec->writable_register && | ||
| 207 | codec->writable_register(codec, regtmp)); | ||
| 208 | val = snd_soc_rbtree_get_register(rbnode, i); | 206 | val = snd_soc_rbtree_get_register(rbnode, i); |
| 209 | def = snd_soc_get_cache_val(codec->reg_def_copy, i, | 207 | def = snd_soc_get_cache_val(codec->reg_def_copy, i, |
| 210 | rbnode->word_size); | 208 | rbnode->word_size); |
| 211 | if (val == def) | 209 | if (val == def) |
| 212 | continue; | 210 | continue; |
| 213 | 211 | ||
| 212 | WARN_ON(!snd_soc_codec_writable_register(codec, regtmp)); | ||
| 213 | |||
| 214 | codec->cache_bypass = 1; | 214 | codec->cache_bypass = 1; |
| 215 | ret = snd_soc_write(codec, regtmp, val); | 215 | ret = snd_soc_write(codec, regtmp, val); |
| 216 | codec->cache_bypass = 0; | 216 | codec->cache_bypass = 0; |
| @@ -563,8 +563,7 @@ static int snd_soc_lzo_cache_sync(struct snd_soc_codec *codec) | |||
| 563 | 563 | ||
| 564 | lzo_blocks = codec->reg_cache; | 564 | lzo_blocks = codec->reg_cache; |
| 565 | for_each_set_bit(i, lzo_blocks[0]->sync_bmp, lzo_blocks[0]->sync_bmp_nbits) { | 565 | for_each_set_bit(i, lzo_blocks[0]->sync_bmp, lzo_blocks[0]->sync_bmp_nbits) { |
| 566 | WARN_ON(codec->writable_register && | 566 | WARN_ON(!snd_soc_codec_writable_register(codec, i)); |
| 567 | codec->writable_register(codec, i)); | ||
| 568 | ret = snd_soc_cache_read(codec, i, &val); | 567 | ret = snd_soc_cache_read(codec, i, &val); |
| 569 | if (ret) | 568 | if (ret) |
| 570 | return ret; | 569 | return ret; |
| @@ -823,8 +822,6 @@ static int snd_soc_flat_cache_sync(struct snd_soc_codec *codec) | |||
| 823 | 822 | ||
| 824 | codec_drv = codec->driver; | 823 | codec_drv = codec->driver; |
| 825 | for (i = 0; i < codec_drv->reg_cache_size; ++i) { | 824 | for (i = 0; i < codec_drv->reg_cache_size; ++i) { |
| 826 | WARN_ON(codec->writable_register && | ||
| 827 | codec->writable_register(codec, i)); | ||
| 828 | ret = snd_soc_cache_read(codec, i, &val); | 825 | ret = snd_soc_cache_read(codec, i, &val); |
| 829 | if (ret) | 826 | if (ret) |
| 830 | return ret; | 827 | return ret; |
| @@ -832,6 +829,9 @@ static int snd_soc_flat_cache_sync(struct snd_soc_codec *codec) | |||
| 832 | if (snd_soc_get_cache_val(codec->reg_def_copy, | 829 | if (snd_soc_get_cache_val(codec->reg_def_copy, |
| 833 | i, codec_drv->reg_word_size) == val) | 830 | i, codec_drv->reg_word_size) == val) |
| 834 | continue; | 831 | continue; |
| 832 | |||
| 833 | WARN_ON(!snd_soc_codec_writable_register(codec, i)); | ||
| 834 | |||
| 835 | ret = snd_soc_write(codec, i, val); | 835 | ret = snd_soc_write(codec, i, val); |
| 836 | if (ret) | 836 | if (ret) |
| 837 | return ret; | 837 | return ret; |
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index b085d8e87574..d2ef014af215 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
| @@ -1633,7 +1633,7 @@ int snd_soc_codec_readable_register(struct snd_soc_codec *codec, | |||
| 1633 | if (codec->readable_register) | 1633 | if (codec->readable_register) |
| 1634 | return codec->readable_register(codec, reg); | 1634 | return codec->readable_register(codec, reg); |
| 1635 | else | 1635 | else |
| 1636 | return 0; | 1636 | return 1; |
| 1637 | } | 1637 | } |
| 1638 | EXPORT_SYMBOL_GPL(snd_soc_codec_readable_register); | 1638 | EXPORT_SYMBOL_GPL(snd_soc_codec_readable_register); |
| 1639 | 1639 | ||
| @@ -1651,7 +1651,7 @@ int snd_soc_codec_writable_register(struct snd_soc_codec *codec, | |||
| 1651 | if (codec->writable_register) | 1651 | if (codec->writable_register) |
| 1652 | return codec->writable_register(codec, reg); | 1652 | return codec->writable_register(codec, reg); |
| 1653 | else | 1653 | else |
| 1654 | return 0; | 1654 | return 1; |
| 1655 | } | 1655 | } |
| 1656 | EXPORT_SYMBOL_GPL(snd_soc_codec_writable_register); | 1656 | EXPORT_SYMBOL_GPL(snd_soc_codec_writable_register); |
| 1657 | 1657 | ||
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 7e15914b3633..d67c637557a7 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c | |||
| @@ -2763,7 +2763,7 @@ EXPORT_SYMBOL_GPL(snd_soc_dapm_ignore_suspend); | |||
| 2763 | 2763 | ||
| 2764 | /** | 2764 | /** |
| 2765 | * snd_soc_dapm_free - free dapm resources | 2765 | * snd_soc_dapm_free - free dapm resources |
| 2766 | * @card: SoC device | 2766 | * @dapm: DAPM context |
| 2767 | * | 2767 | * |
| 2768 | * Free all dapm widgets and resources. | 2768 | * Free all dapm widgets and resources. |
| 2769 | */ | 2769 | */ |
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c index 38b00131b2fe..fa31d9c2abd8 100644 --- a/sound/soc/soc-jack.c +++ b/sound/soc/soc-jack.c | |||
| @@ -105,7 +105,7 @@ void snd_soc_jack_report(struct snd_soc_jack *jack, int status, int mask) | |||
| 105 | 105 | ||
| 106 | snd_soc_dapm_sync(dapm); | 106 | snd_soc_dapm_sync(dapm); |
| 107 | 107 | ||
| 108 | snd_jack_report(jack->jack, status); | 108 | snd_jack_report(jack->jack, jack->status); |
| 109 | 109 | ||
| 110 | out: | 110 | out: |
| 111 | mutex_unlock(&codec->mutex); | 111 | mutex_unlock(&codec->mutex); |
