ASoC: Provide debug log of accessory status on WM8958
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
6414261f0a
commit
a1691343a3
1 changed files with 2 additions and 0 deletions
|
@ -3042,6 +3042,8 @@ static void wm8958_default_micdet(u16 status, void *data)
|
||||||
struct snd_soc_codec *codec = data;
|
struct snd_soc_codec *codec = data;
|
||||||
struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
|
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 nothing present then clear our statuses */
|
||||||
if (!(status & WM8958_MICD_STS)) {
|
if (!(status & WM8958_MICD_STS)) {
|
||||||
dev_dbg(codec->dev, "Detected open circuit\n");
|
dev_dbg(codec->dev, "Detected open circuit\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue