diff options
Diffstat (limited to 'sound/soc/codecs/wm8400.c')
| -rw-r--r-- | sound/soc/codecs/wm8400.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c index b9ef4d915221..b432f4d4a324 100644 --- a/sound/soc/codecs/wm8400.c +++ b/sound/soc/codecs/wm8400.c | |||
| @@ -915,7 +915,6 @@ static int wm8400_add_widgets(struct snd_soc_codec *codec) | |||
| 915 | 915 | ||
| 916 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 916 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); |
| 917 | 917 | ||
| 918 | snd_soc_dapm_new_widgets(codec); | ||
| 919 | return 0; | 918 | return 0; |
| 920 | } | 919 | } |
| 921 | 920 | ||
| @@ -1011,7 +1010,8 @@ static int fll_factors(struct wm8400_priv *wm8400, struct fll_factors *factors, | |||
| 1011 | } | 1010 | } |
| 1012 | 1011 | ||
| 1013 | static int wm8400_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, | 1012 | static int wm8400_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, |
| 1014 | unsigned int freq_in, unsigned int freq_out) | 1013 | int source, unsigned int freq_in, |
| 1014 | unsigned int freq_out) | ||
| 1015 | { | 1015 | { |
| 1016 | struct snd_soc_codec *codec = codec_dai->codec; | 1016 | struct snd_soc_codec *codec = codec_dai->codec; |
| 1017 | struct wm8400_priv *wm8400 = codec->private_data; | 1017 | struct wm8400_priv *wm8400 = codec->private_data; |
| @@ -1399,17 +1399,6 @@ static int wm8400_probe(struct platform_device *pdev) | |||
| 1399 | wm8400_add_controls(codec); | 1399 | wm8400_add_controls(codec); |
| 1400 | wm8400_add_widgets(codec); | 1400 | wm8400_add_widgets(codec); |
| 1401 | 1401 | ||
| 1402 | ret = snd_soc_init_card(socdev); | ||
| 1403 | if (ret < 0) { | ||
| 1404 | dev_err(&pdev->dev, "failed to register card\n"); | ||
| 1405 | goto card_err; | ||
| 1406 | } | ||
| 1407 | |||
| 1408 | return ret; | ||
| 1409 | |||
| 1410 | card_err: | ||
| 1411 | snd_soc_free_pcms(socdev); | ||
| 1412 | snd_soc_dapm_free(socdev); | ||
| 1413 | pcm_err: | 1402 | pcm_err: |
| 1414 | return ret; | 1403 | return ret; |
| 1415 | } | 1404 | } |
| @@ -1558,21 +1547,6 @@ static int __exit wm8400_codec_remove(struct platform_device *dev) | |||
| 1558 | return 0; | 1547 | return 0; |
| 1559 | } | 1548 | } |
| 1560 | 1549 | ||
| 1561 | #ifdef CONFIG_PM | ||
| 1562 | static int wm8400_pdev_suspend(struct platform_device *pdev, pm_message_t msg) | ||
| 1563 | { | ||
| 1564 | return snd_soc_suspend_device(&pdev->dev); | ||
| 1565 | } | ||
| 1566 | |||
| 1567 | static int wm8400_pdev_resume(struct platform_device *pdev) | ||
| 1568 | { | ||
| 1569 | return snd_soc_resume_device(&pdev->dev); | ||
| 1570 | } | ||
| 1571 | #else | ||
| 1572 | #define wm8400_pdev_suspend NULL | ||
| 1573 | #define wm8400_pdev_resume NULL | ||
| 1574 | #endif | ||
| 1575 | |||
| 1576 | static struct platform_driver wm8400_codec_driver = { | 1550 | static struct platform_driver wm8400_codec_driver = { |
| 1577 | .driver = { | 1551 | .driver = { |
| 1578 | .name = "wm8400-codec", | 1552 | .name = "wm8400-codec", |
| @@ -1580,8 +1554,6 @@ static struct platform_driver wm8400_codec_driver = { | |||
| 1580 | }, | 1554 | }, |
| 1581 | .probe = wm8400_codec_probe, | 1555 | .probe = wm8400_codec_probe, |
| 1582 | .remove = __exit_p(wm8400_codec_remove), | 1556 | .remove = __exit_p(wm8400_codec_remove), |
| 1583 | .suspend = wm8400_pdev_suspend, | ||
| 1584 | .resume = wm8400_pdev_resume, | ||
| 1585 | }; | 1557 | }; |
| 1586 | 1558 | ||
| 1587 | static int __init wm8400_codec_init(void) | 1559 | static int __init wm8400_codec_init(void) |
