]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: max98090: reduce verbosity on PLL unlock
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 8 Sep 2017 05:13:03 +0000 (00:13 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 13:38:53 +0000 (14:38 +0100)
'commit b8a3ee820f7b ("ASoC: max98090: Add recovery for PLL lock failure")'
enabled a workaround PLL unlocked issues, but generates annoying
dev_info "PLL unlocked" messages at a 10ms rate, usually on startup.

Move to dev_info_ratelimited. This issue doesn't seem to impact audio
functionality.  This trace is commented out in the GalliumOS patches,
it's better to keep it to check on potential quality issues

Tested on Lenovo 100s (Baytrail Chromebook)

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/max98090.c

index 13bcfb1ef9b423ceb5fa2ae222340eccaed2ed69..f5075d1f79e6360abef58526908f351b341546b1 100644 (file)
@@ -2115,7 +2115,7 @@ static void max98090_pll_work(struct work_struct *work)
        if (!snd_soc_codec_is_active(codec))
                return;
 
-       dev_info(codec->dev, "PLL unlocked\n");
+       dev_info_ratelimited(codec->dev, "PLL unlocked\n");
 
        /* Toggle shutdown OFF then ON */
        snd_soc_update_bits(codec, M98090_REG_DEVICE_SHUTDOWN,