ALSA: pcm: Add snd_printd_ratelimit()
authorTim Gardner <tim.gardner@canonical.com>
Fri, 16 Aug 2013 17:18:59 +0000 (11:18 -0600)
committerTakashi Iwai <tiwai@suse.de>
Mon, 19 Aug 2013 13:48:33 +0000 (15:48 +0200)
commitbcbb15530ebe9737622cb7779b35c61f48b49734
treef2080fe60461510df9287c6cb4ae8c6913d51f9f
parentc841ad2a9b86c7317dc7e4fe4e03bc56a6c0d6e8
ALSA: pcm: Add snd_printd_ratelimit()

Direct calls to printk_limit() will emit log noise even when CONFIG_SND_DEBUG is not
defined. Add a wrapper macro around printk_limit() that is conditionally defined by
CONFIG_SND_DEBUG.

Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Cc: Yacine Belkadi <yacine.belkadi.1@gmail.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/core.h