aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-03 11:25:52 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-05-05 10:10:17 -0400
commit985d8c4c9eb18bd7b295c73a5ab1fc990e5ed182 (patch)
treec5c4a0391ab7daa455952ab5623005c5d9699d40 /sound/soc
parent39b8eab7e7fe429d8d57f18c0ebdb7c25df55f5c (diff)
ASoC: Add debug output tracing all cache register writes
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-cache.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c
index 9dfe9a58a314..472af38188c1 100644
--- a/sound/soc/soc-cache.c
+++ b/sound/soc/soc-cache.c
@@ -44,6 +44,8 @@ static int snd_soc_4_12_write(struct snd_soc_codec *codec, unsigned int reg,
44 return 0; 44 return 0;
45 } 45 }
46 46
47 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
48
47 ret = codec->hw_write(codec->control_data, data, 2); 49 ret = codec->hw_write(codec->control_data, data, 2);
48 if (ret == 2) 50 if (ret == 2)
49 return 0; 51 return 0;
@@ -112,6 +114,8 @@ static int snd_soc_7_9_write(struct snd_soc_codec *codec, unsigned int reg,
112 return 0; 114 return 0;
113 } 115 }
114 116
117 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
118
115 ret = codec->hw_write(codec->control_data, data, 2); 119 ret = codec->hw_write(codec->control_data, data, 2);
116 if (ret == 2) 120 if (ret == 2)
117 return 0; 121 return 0;
@@ -171,6 +175,8 @@ static int snd_soc_8_8_write(struct snd_soc_codec *codec, unsigned int reg,
171 return 0; 175 return 0;
172 } 176 }
173 177
178 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
179
174 if (codec->hw_write(codec->control_data, data, 2) == 2) 180 if (codec->hw_write(codec->control_data, data, 2) == 2)
175 return 0; 181 return 0;
176 else 182 else
@@ -205,6 +211,8 @@ static int snd_soc_8_16_write(struct snd_soc_codec *codec, unsigned int reg,
205 return 0; 211 return 0;
206 } 212 }
207 213
214 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
215
208 if (codec->hw_write(codec->control_data, data, 3) == 3) 216 if (codec->hw_write(codec->control_data, data, 3) == 3)
209 return 0; 217 return 0;
210 else 218 else
@@ -362,6 +370,8 @@ static int snd_soc_16_8_write(struct snd_soc_codec *codec, unsigned int reg,
362 return 0; 370 return 0;
363 } 371 }
364 372
373 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
374
365 ret = codec->hw_write(codec->control_data, data, 3); 375 ret = codec->hw_write(codec->control_data, data, 3);
366 if (ret == 3) 376 if (ret == 3)
367 return 0; 377 return 0;
@@ -472,6 +482,8 @@ static int snd_soc_16_16_write(struct snd_soc_codec *codec, unsigned int reg,
472 return 0; 482 return 0;
473 } 483 }
474 484
485 dev_dbg(codec->dev, "0x%x = 0x%x\n", reg, value);
486
475 ret = codec->hw_write(codec->control_data, data, 4); 487 ret = codec->hw_write(codec->control_data, data, 4);
476 if (ret == 4) 488 if (ret == 4)
477 return 0; 489 return 0;