Skip to content

Commit

Permalink
ASoC: Provide debug log of accessory status on WM8958
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Nov 30, 2011
1 parent 6414261 commit a169134
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3042,6 +3042,8 @@ static void wm8958_default_micdet(u16 status, void *data)
struct snd_soc_codec *codec = data;
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);

dev_dbg(codec->dev, "MICDET %x\n", status);

/* If nothing present then clear our statuses */
if (!(status & WM8958_MICD_STS)) {
dev_dbg(codec->dev, "Detected open circuit\n");
Expand Down

0 comments on commit a169134

Please sign in to comment.