From: Mark Brown Date: Thu, 26 Apr 2012 16:02:16 +0000 (+0100) Subject: ASoC: wm8994: Add trace showing wm8958_micd_set_rate() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a334adab04e60f2bfc449721aaad289a72ce9cc;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ASoC: wm8994: Add trace showing wm8958_micd_set_rate() This can be helpful to users when tuning their systems. Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index ca6d822eb112..a22c29386243 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c @@ -119,6 +119,10 @@ static void wm8958_micd_set_rate(struct snd_soc_codec *codec) val = rates[best].start << WM8958_MICD_BIAS_STARTTIME_SHIFT | rates[best].rate << WM8958_MICD_RATE_SHIFT; + dev_dbg(codec->dev, "MICD rate %d,%d for %dHz %s\n", + rates[best].start, rates[best].rate, sysclk, + idle ? "idle" : "active"); + snd_soc_update_bits(codec, WM8958_MIC_DETECT_1, WM8958_MICD_BIAS_STARTTIME_MASK | WM8958_MICD_RATE_MASK, val);