From f6e665e6fec52db2881b6e015956e30ae72e6f44 Mon Sep 17 00:00:00 2001 From: Baozhu Zuo Date: Mon, 22 May 2017 15:49:41 +0800 Subject: [PATCH] remove debug message --- wm8960.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wm8960.c b/wm8960.c index 8b38083..90175e7 100644 --- a/wm8960.c +++ b/wm8960.c @@ -9,7 +9,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ -#define DEBUG 1 + #include #include #include @@ -628,7 +628,7 @@ static int wm8960_configure_clocking(struct snd_soc_codec *codec) bclk = wm8960->bclk; lrclk = wm8960->lrclk; - printk("clk_id %d freq_in: %d bclk: %d lrclk: %d\n",wm8960->clk_id ,freq_in, bclk,lrclk); + //printk("clk_id %d freq_in: %d bclk: %d lrclk: %d\n",wm8960->clk_id ,freq_in, bclk,lrclk); /* * If it's sysclk auto mode, check if the MCLK can provide sysclk or @@ -958,7 +958,6 @@ static int wm8960_set_bias_level_capless(struct snd_soc_codec *codec, * If it's sysclk auto mode, and the pll is enabled, * disable the pll */ - printk("SND_SOC_BIAS_ON"); if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1)) wm8960_set_pll(codec, 0, 0); @@ -1138,7 +1137,6 @@ static int wm8960_set_pll(struct snd_soc_codec *codec, static int wm8960_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id, int source, unsigned int freq_in, unsigned int freq_out) { - printk("wm8960_set_dai_pll:%d %d\n",freq_in, freq_out); struct snd_soc_codec *codec = codec_dai->codec; struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); @@ -1156,7 +1154,6 @@ static int wm8960_set_dai_clkdiv(struct snd_soc_dai *codec_dai, struct snd_soc_codec *codec = codec_dai->codec; u16 reg; - printk("wm8960_set_dai_clkdiv div_id: %d div: %d\n",div_id, div); switch (div_id) { case WM8960_SYSCLKDIV: @@ -1201,7 +1198,7 @@ static int wm8960_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id, struct snd_soc_codec *codec = dai->codec; struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec); clk_id = WM8960_SYSCLK_PLL; - printk("wm8960_set_dai_sysclk: %d %d ",freq, clk_id); + switch (clk_id) { case WM8960_SYSCLK_MCLK: snd_soc_update_bits(codec, WM8960_CLOCK1,