diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2013-05-04 16:21:38 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-12 12:44:18 -0400 |
commit | 10e8aa9af170886266618370e2ef330e0b2055bb (patch) | |
tree | dc961a5b06e24b012281f4c91281de37acce3e87 /sound/soc/soc-core.c | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
ASoC: fix kernel message grepability
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 77 |
1 files changed, 43 insertions, 34 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index d56bbea6e75e..308895a438d6 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -272,8 +272,8 @@ static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | |||
272 | codec->debugfs_codec_root = debugfs_create_dir(codec->name, | 272 | codec->debugfs_codec_root = debugfs_create_dir(codec->name, |
273 | debugfs_card_root); | 273 | debugfs_card_root); |
274 | if (!codec->debugfs_codec_root) { | 274 | if (!codec->debugfs_codec_root) { |
275 | dev_warn(codec->dev, "ASoC: Failed to create codec debugfs" | 275 | dev_warn(codec->dev, |
276 | " directory\n"); | 276 | "ASoC: Failed to create codec debugfs directory\n"); |
277 | return; | 277 | return; |
278 | } | 278 | } |
279 | 279 | ||
@@ -286,8 +286,8 @@ static void soc_init_codec_debugfs(struct snd_soc_codec *codec) | |||
286 | codec->debugfs_codec_root, | 286 | codec->debugfs_codec_root, |
287 | codec, &codec_reg_fops); | 287 | codec, &codec_reg_fops); |
288 | if (!codec->debugfs_reg) | 288 | if (!codec->debugfs_reg) |
289 | dev_warn(codec->dev, "ASoC: Failed to create codec register" | 289 | dev_warn(codec->dev, |
290 | " debugfs file\n"); | 290 | "ASoC: Failed to create codec register debugfs file\n"); |
291 | 291 | ||
292 | snd_soc_dapm_debugfs_init(&codec->dapm, codec->debugfs_codec_root); | 292 | snd_soc_dapm_debugfs_init(&codec->dapm, codec->debugfs_codec_root); |
293 | } | 293 | } |
@@ -631,8 +631,7 @@ int snd_soc_suspend(struct device *dev) | |||
631 | */ | 631 | */ |
632 | if (codec->dapm.idle_bias_off) { | 632 | if (codec->dapm.idle_bias_off) { |
633 | dev_dbg(codec->dev, | 633 | dev_dbg(codec->dev, |
634 | "ASoC: idle_bias_off CODEC on" | 634 | "ASoC: idle_bias_off CODEC on over suspend\n"); |
635 | " over suspend\n"); | ||
636 | break; | 635 | break; |
637 | } | 636 | } |
638 | case SND_SOC_BIAS_OFF: | 637 | case SND_SOC_BIAS_OFF: |
@@ -643,8 +642,8 @@ int snd_soc_suspend(struct device *dev) | |||
643 | regcache_mark_dirty(codec->control_data); | 642 | regcache_mark_dirty(codec->control_data); |
644 | break; | 643 | break; |
645 | default: | 644 | default: |
646 | dev_dbg(codec->dev, "ASoC: CODEC is on" | 645 | dev_dbg(codec->dev, |
647 | " over suspend\n"); | 646 | "ASoC: CODEC is on over suspend\n"); |
648 | break; | 647 | break; |
649 | } | 648 | } |
650 | } | 649 | } |
@@ -713,8 +712,8 @@ static void soc_resume_deferred(struct work_struct *work) | |||
713 | codec->suspended = 0; | 712 | codec->suspended = 0; |
714 | break; | 713 | break; |
715 | default: | 714 | default: |
716 | dev_dbg(codec->dev, "ASoC: CODEC was on over" | 715 | dev_dbg(codec->dev, |
717 | " suspend\n"); | 716 | "ASoC: CODEC was on over suspend\n"); |
718 | break; | 717 | break; |
719 | } | 718 | } |
720 | } | 719 | } |
@@ -1110,8 +1109,8 @@ static int soc_probe_codec(struct snd_soc_card *card, | |||
1110 | } | 1109 | } |
1111 | WARN(codec->dapm.idle_bias_off && | 1110 | WARN(codec->dapm.idle_bias_off && |
1112 | codec->dapm.bias_level != SND_SOC_BIAS_OFF, | 1111 | codec->dapm.bias_level != SND_SOC_BIAS_OFF, |
1113 | "codec %s can not start from non-off bias" | 1112 | "codec %s can not start from non-off bias with idle_bias_off==1\n", |
1114 | " with idle_bias_off==1\n", codec->name); | 1113 | codec->name); |
1115 | } | 1114 | } |
1116 | 1115 | ||
1117 | /* If the driver didn't set I/O up try regmap */ | 1116 | /* If the driver didn't set I/O up try regmap */ |
@@ -1582,8 +1581,9 @@ static int snd_soc_init_codec_cache(struct snd_soc_codec *codec, | |||
1582 | codec->compress_type = compress_type; | 1581 | codec->compress_type = compress_type; |
1583 | ret = snd_soc_cache_init(codec); | 1582 | ret = snd_soc_cache_init(codec); |
1584 | if (ret < 0) { | 1583 | if (ret < 0) { |
1585 | dev_err(codec->dev, "ASoC: Failed to set cache compression" | 1584 | dev_err(codec->dev, |
1586 | " type: %d\n", ret); | 1585 | "ASoC: Failed to set cache compression type: %d\n", |
1586 | ret); | ||
1587 | return ret; | 1587 | return ret; |
1588 | } | 1588 | } |
1589 | codec->cache_init = 1; | 1589 | codec->cache_init = 1; |
@@ -1639,8 +1639,9 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1639 | ret = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, | 1639 | ret = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, |
1640 | card->owner, 0, &card->snd_card); | 1640 | card->owner, 0, &card->snd_card); |
1641 | if (ret < 0) { | 1641 | if (ret < 0) { |
1642 | dev_err(card->dev, "ASoC: can't create sound card for" | 1642 | dev_err(card->dev, |
1643 | " card %s: %d\n", card->name, ret); | 1643 | "ASoC: can't create sound card for card %s: %d\n", |
1644 | card->name, ret); | ||
1644 | goto base_error; | 1645 | goto base_error; |
1645 | } | 1646 | } |
1646 | card->snd_card->dev = card->dev; | 1647 | card->snd_card->dev = card->dev; |
@@ -1815,8 +1816,8 @@ static int snd_soc_instantiate_card(struct snd_soc_card *card) | |||
1815 | for (i = 0; i < card->num_rtd; i++) { | 1816 | for (i = 0; i < card->num_rtd; i++) { |
1816 | ret = soc_register_ac97_dai_link(&card->rtd[i]); | 1817 | ret = soc_register_ac97_dai_link(&card->rtd[i]); |
1817 | if (ret < 0) { | 1818 | if (ret < 0) { |
1818 | dev_err(card->dev, "ASoC: failed to register AC97:" | 1819 | dev_err(card->dev, |
1819 | " %d\n", ret); | 1820 | "ASoC: failed to register AC97: %d\n", ret); |
1820 | while (--i >= 0) | 1821 | while (--i >= 0) |
1821 | soc_unregister_ac97_dai_link(card->rtd[i].codec); | 1822 | soc_unregister_ac97_dai_link(card->rtd[i].codec); |
1822 | goto probe_aux_dev_err; | 1823 | goto probe_aux_dev_err; |
@@ -3586,14 +3587,16 @@ int snd_soc_register_card(struct snd_soc_card *card) | |||
3586 | * not both or neither. | 3587 | * not both or neither. |
3587 | */ | 3588 | */ |
3588 | if (!!link->codec_name == !!link->codec_of_node) { | 3589 | if (!!link->codec_name == !!link->codec_of_node) { |
3589 | dev_err(card->dev, "ASoC: Neither/both codec" | 3590 | dev_err(card->dev, |
3590 | " name/of_node are set for %s\n", link->name); | 3591 | "ASoC: Neither/both codec name/of_node are set for %s\n", |
3592 | link->name); | ||
3591 | return -EINVAL; | 3593 | return -EINVAL; |
3592 | } | 3594 | } |
3593 | /* Codec DAI name must be specified */ | 3595 | /* Codec DAI name must be specified */ |
3594 | if (!link->codec_dai_name) { | 3596 | if (!link->codec_dai_name) { |
3595 | dev_err(card->dev, "ASoC: codec_dai_name not" | 3597 | dev_err(card->dev, |
3596 | " set for %s\n", link->name); | 3598 | "ASoC: codec_dai_name not set for %s\n", |
3599 | link->name); | ||
3597 | return -EINVAL; | 3600 | return -EINVAL; |
3598 | } | 3601 | } |
3599 | 3602 | ||
@@ -3602,8 +3605,9 @@ int snd_soc_register_card(struct snd_soc_card *card) | |||
3602 | * can be left unspecified, and a dummy platform will be used. | 3605 | * can be left unspecified, and a dummy platform will be used. |
3603 | */ | 3606 | */ |
3604 | if (link->platform_name && link->platform_of_node) { | 3607 | if (link->platform_name && link->platform_of_node) { |
3605 | dev_err(card->dev, "ASoC: Both platform name/of_node" | 3608 | dev_err(card->dev, |
3606 | " are set for %s\n", link->name); | 3609 | "ASoC: Both platform name/of_node are set for %s\n", |
3610 | link->name); | ||
3607 | return -EINVAL; | 3611 | return -EINVAL; |
3608 | } | 3612 | } |
3609 | 3613 | ||
@@ -3613,8 +3617,9 @@ int snd_soc_register_card(struct snd_soc_card *card) | |||
3613 | * name alone.. | 3617 | * name alone.. |
3614 | */ | 3618 | */ |
3615 | if (link->cpu_name && link->cpu_of_node) { | 3619 | if (link->cpu_name && link->cpu_of_node) { |
3616 | dev_err(card->dev, "ASoC: Neither/both " | 3620 | dev_err(card->dev, |
3617 | "cpu name/of_node are set for %s\n",link->name); | 3621 | "ASoC: Neither/both cpu name/of_node are set for %s\n", |
3622 | link->name); | ||
3618 | return -EINVAL; | 3623 | return -EINVAL; |
3619 | } | 3624 | } |
3620 | /* | 3625 | /* |
@@ -3623,8 +3628,9 @@ int snd_soc_register_card(struct snd_soc_card *card) | |||
3623 | */ | 3628 | */ |
3624 | if (!link->cpu_dai_name && | 3629 | if (!link->cpu_dai_name && |
3625 | !(link->cpu_name || link->cpu_of_node)) { | 3630 | !(link->cpu_name || link->cpu_of_node)) { |
3626 | dev_err(card->dev, "ASoC: Neither cpu_dai_name nor " | 3631 | dev_err(card->dev, |
3627 | "cpu_name/of_node are set for %s\n", link->name); | 3632 | "ASoC: Neither cpu_dai_name nor cpu_name/of_node are set for %s\n", |
3633 | link->name); | ||
3628 | return -EINVAL; | 3634 | return -EINVAL; |
3629 | } | 3635 | } |
3630 | } | 3636 | } |
@@ -3728,8 +3734,9 @@ static inline char *fmt_multiple_name(struct device *dev, | |||
3728 | struct snd_soc_dai_driver *dai_drv) | 3734 | struct snd_soc_dai_driver *dai_drv) |
3729 | { | 3735 | { |
3730 | if (dai_drv->name == NULL) { | 3736 | if (dai_drv->name == NULL) { |
3731 | dev_err(dev, "ASoC: error - multiple DAI %s registered with" | 3737 | dev_err(dev, |
3732 | " no name\n", dev_name(dev)); | 3738 | "ASoC: error - multiple DAI %s registered with no name\n", |
3739 | dev_name(dev)); | ||
3733 | return NULL; | 3740 | return NULL; |
3734 | } | 3741 | } |
3735 | 3742 | ||
@@ -3859,8 +3866,9 @@ static int snd_soc_register_dais(struct device *dev, | |||
3859 | 3866 | ||
3860 | list_for_each_entry(codec, &codec_list, list) { | 3867 | list_for_each_entry(codec, &codec_list, list) { |
3861 | if (codec->dev == dev) { | 3868 | if (codec->dev == dev) { |
3862 | dev_dbg(dev, "ASoC: Mapped DAI %s to " | 3869 | dev_dbg(dev, |
3863 | "CODEC %s\n", dai->name, codec->name); | 3870 | "ASoC: Mapped DAI %s to CODEC %s\n", |
3871 | dai->name, codec->name); | ||
3864 | dai->codec = codec; | 3872 | dai->codec = codec; |
3865 | break; | 3873 | break; |
3866 | } | 3874 | } |
@@ -4296,8 +4304,9 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card, | |||
4296 | 4304 | ||
4297 | num_routes = of_property_count_strings(np, propname); | 4305 | num_routes = of_property_count_strings(np, propname); |
4298 | if (num_routes < 0 || num_routes & 1) { | 4306 | if (num_routes < 0 || num_routes & 1) { |
4299 | dev_err(card->dev, "ASoC: Property '%s' does not exist or its" | 4307 | dev_err(card->dev, |
4300 | " length is not even\n", propname); | 4308 | "ASoC: Property '%s' does not exist or its length is not even\n", |
4309 | propname); | ||
4301 | return -EINVAL; | 4310 | return -EINVAL; |
4302 | } | 4311 | } |
4303 | num_routes /= 2; | 4312 | num_routes /= 2; |