remove debug message
This commit is contained in:
parent
003142f7b3
commit
f6e665e6fe
1 changed files with 3 additions and 6 deletions
9
wm8960.c
9
wm8960.c
|
@ -9,7 +9,7 @@
|
||||||
* it under the terms of the GNU General Public License version 2 as
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
* published by the Free Software Foundation.
|
* published by the Free Software Foundation.
|
||||||
*/
|
*/
|
||||||
#define DEBUG 1
|
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/moduleparam.h>
|
#include <linux/moduleparam.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
@ -628,7 +628,7 @@ static int wm8960_configure_clocking(struct snd_soc_codec *codec)
|
||||||
bclk = wm8960->bclk;
|
bclk = wm8960->bclk;
|
||||||
lrclk = wm8960->lrclk;
|
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
|
* 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,
|
* If it's sysclk auto mode, and the pll is enabled,
|
||||||
* disable the pll
|
* disable the pll
|
||||||
*/
|
*/
|
||||||
printk("SND_SOC_BIAS_ON");
|
|
||||||
if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1))
|
if (wm8960->clk_id == WM8960_SYSCLK_AUTO && (pm2 & 0x1))
|
||||||
wm8960_set_pll(codec, 0, 0);
|
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,
|
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)
|
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 snd_soc_codec *codec = codec_dai->codec;
|
||||||
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(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;
|
struct snd_soc_codec *codec = codec_dai->codec;
|
||||||
u16 reg;
|
u16 reg;
|
||||||
|
|
||||||
printk("wm8960_set_dai_clkdiv div_id: %d div: %d\n",div_id, div);
|
|
||||||
|
|
||||||
switch (div_id) {
|
switch (div_id) {
|
||||||
case WM8960_SYSCLKDIV:
|
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 snd_soc_codec *codec = dai->codec;
|
||||||
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec);
|
struct wm8960_priv *wm8960 = snd_soc_codec_get_drvdata(codec);
|
||||||
clk_id = WM8960_SYSCLK_PLL;
|
clk_id = WM8960_SYSCLK_PLL;
|
||||||
printk("wm8960_set_dai_sysclk: %d %d ",freq, clk_id);
|
|
||||||
switch (clk_id) {
|
switch (clk_id) {
|
||||||
case WM8960_SYSCLK_MCLK:
|
case WM8960_SYSCLK_MCLK:
|
||||||
snd_soc_update_bits(codec, WM8960_CLOCK1,
|
snd_soc_update_bits(codec, WM8960_CLOCK1,
|
||||||
|
|
Loading…
Reference in a new issue