Commit 204b62c6bc1b8d3ce405c59281585af523b14172

Authored by Liam Girdwood
Committed by Mark Brown
1 parent 30a6a1a4ee

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>

Showing 1 changed file with 5 additions and 5 deletions Side-by-side Diff

sound/soc/soc-cache.c
... ... @@ -88,7 +88,7 @@
88 88 ret = snd_soc_write(codec, i, val);
89 89 if (ret)
90 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 92 i, val);
93 93 }
94 94 return 0;
... ... @@ -156,7 +156,7 @@
156 156  
157 157 /* Fall back to flat compression */
158 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 160 codec->compress_type);
161 161 i = 0;
162 162 }
... ... @@ -166,7 +166,7 @@
166 166  
167 167 if (codec->cache_ops->init) {
168 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 170 codec->cache_ops->name, codec->name);
171 171 return codec->cache_ops->init(codec);
172 172 }
... ... @@ -181,7 +181,7 @@
181 181 {
182 182 if (codec->cache_ops && codec->cache_ops->exit) {
183 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 185 codec->cache_ops->name, codec->name);
186 186 return codec->cache_ops->exit(codec);
187 187 }
... ... @@ -265,7 +265,7 @@
265 265 name = "unknown";
266 266  
267 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 269 codec->cache_ops->name, codec->name);
270 270 trace_snd_soc_cache_sync(codec, name, "start");
271 271 ret = codec->cache_ops->sync(codec);