diff options
author | Liam Girdwood <lrg@ti.com> | 2012-11-19 09:39:13 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-20 21:39:51 -0500 |
commit | 204b62c6bc1b8d3ce405c59281585af523b14172 (patch) | |
tree | a8f3fa545b63f9e88e442b5c82fa7b78e02e22ae /sound/soc/soc-cache.c | |
parent | 30a6a1a4eed170b4a55d4d1787ace3acf437ab13 (diff) |
ASoC: cache: Standardise ASoC cache messages
Currently ASoC has a mixture of message prefixes e.g. "ASoC", "asoc"
or none and message types e.g. pr_debug or dev_dbg.
Make sure all ASoC core messages use the same "ASoC" prefix and
convert any component device specific messages to use dev_dbg
instead of pr_debug.
Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-cache.c')
-rw-r--r-- | sound/soc/soc-cache.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index 9d56f0218f41..e72f55428f0b 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c | |||
@@ -88,7 +88,7 @@ static int snd_soc_flat_cache_sync(struct snd_soc_codec *codec) | |||
88 | ret = snd_soc_write(codec, i, val); | 88 | ret = snd_soc_write(codec, i, val); |
89 | if (ret) | 89 | if (ret) |
90 | return ret; | 90 | return ret; |
91 | dev_dbg(codec->dev, "Synced register %#x, value = %#x\n", | 91 | dev_dbg(codec->dev, "ASoC: Synced register %#x, value = %#x\n", |
92 | i, val); | 92 | i, val); |
93 | } | 93 | } |
94 | return 0; | 94 | return 0; |
@@ -156,7 +156,7 @@ int snd_soc_cache_init(struct snd_soc_codec *codec) | |||
156 | 156 | ||
157 | /* Fall back to flat compression */ | 157 | /* Fall back to flat compression */ |
158 | if (i == ARRAY_SIZE(cache_types)) { | 158 | if (i == ARRAY_SIZE(cache_types)) { |
159 | dev_warn(codec->dev, "Could not match compress type: %d\n", | 159 | dev_warn(codec->dev, "ASoC: Could not match compress type: %d\n", |
160 | codec->compress_type); | 160 | codec->compress_type); |
161 | i = 0; | 161 | i = 0; |
162 | } | 162 | } |
@@ -166,7 +166,7 @@ int snd_soc_cache_init(struct snd_soc_codec *codec) | |||
166 | 166 | ||
167 | if (codec->cache_ops->init) { | 167 | if (codec->cache_ops->init) { |
168 | if (codec->cache_ops->name) | 168 | if (codec->cache_ops->name) |
169 | dev_dbg(codec->dev, "Initializing %s cache for %s codec\n", | 169 | dev_dbg(codec->dev, "ASoC: Initializing %s cache for %s codec\n", |
170 | codec->cache_ops->name, codec->name); | 170 | codec->cache_ops->name, codec->name); |
171 | return codec->cache_ops->init(codec); | 171 | return codec->cache_ops->init(codec); |
172 | } | 172 | } |
@@ -181,7 +181,7 @@ int snd_soc_cache_exit(struct snd_soc_codec *codec) | |||
181 | { | 181 | { |
182 | if (codec->cache_ops && codec->cache_ops->exit) { | 182 | if (codec->cache_ops && codec->cache_ops->exit) { |
183 | if (codec->cache_ops->name) | 183 | if (codec->cache_ops->name) |
184 | dev_dbg(codec->dev, "Destroying %s cache for %s codec\n", | 184 | dev_dbg(codec->dev, "ASoC: Destroying %s cache for %s codec\n", |
185 | codec->cache_ops->name, codec->name); | 185 | codec->cache_ops->name, codec->name); |
186 | return codec->cache_ops->exit(codec); | 186 | return codec->cache_ops->exit(codec); |
187 | } | 187 | } |
@@ -265,7 +265,7 @@ int snd_soc_cache_sync(struct snd_soc_codec *codec) | |||
265 | name = "unknown"; | 265 | name = "unknown"; |
266 | 266 | ||
267 | if (codec->cache_ops->name) | 267 | if (codec->cache_ops->name) |
268 | dev_dbg(codec->dev, "Syncing %s cache for %s codec\n", | 268 | dev_dbg(codec->dev, "ASoC: Syncing %s cache for %s codec\n", |
269 | codec->cache_ops->name, codec->name); | 269 | codec->cache_ops->name, codec->name); |
270 | trace_snd_soc_cache_sync(codec, name, "start"); | 270 | trace_snd_soc_cache_sync(codec, name, "start"); |
271 | ret = codec->cache_ops->sync(codec); | 271 | ret = codec->cache_ops->sync(codec); |