audio: disable some audio print messages for ATV str test [1/1]
authorZhe Wang <Zhe.Wang@amlogic.com>
Mon, 5 Aug 2019 12:15:42 +0000 (20:15 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Tue, 20 Aug 2019 10:48:01 +0000 (03:48 -0700)
PD#TV-8460

Problem:
ATV str test is stucked

Solution:
disable some audio print messages

Verify:
Verfied on marconi

Change-Id: I284c8afde3a6bc9ff3b8ebfe19360abbb152c3f8
Signed-off-by: Zhe Wang <Zhe.Wang@amlogic.com>
sound/soc/amlogic/auge/ddr_mngr.c
sound/soc/amlogic/auge/earc.c
sound/soc/amlogic/auge/extn.c

index 71480b0..109dc2e 100644 (file)
@@ -553,7 +553,7 @@ bool aml_toddr_burst_finished(struct toddr *to)
 
                /* fifo stopped */
                if ((cnt0 == cnt1) && (cnt0 == cnt2) && (cnt0 < (0x40 - 2))) {
-                       pr_info("%s(), i (%d) cnt(%d) break out\n",
+                       pr_debug("%s(), i (%d) cnt(%d) break out\n",
                                __func__, i, cnt2);
                        fifo_stop = true;
                        break;
@@ -571,7 +571,7 @@ bool aml_toddr_burst_finished(struct toddr *to)
                addr_reply = aml_toddr_get_position(to);
 
                if (addr_request == addr_reply) {
-                       pr_info("%s(), fifo_stop %d\n", __func__, fifo_stop);
+                       pr_debug("%s(), fifo_stop %d\n", __func__, fifo_stop);
                        return true;
                }
 
index b013674..9197b97 100644 (file)
@@ -390,18 +390,15 @@ static int earc_dai_prepare(
                else
                        toddr_type = 0;
 
-               pr_info("%s Expected toddr src:%s\n",
-                       __func__,
-                       toddr_src_get_str(src));
-
                msb = 28 - 1;
                if (bit_depth == 16)
                        lsb = 28 - bit_depth;
                else
                        lsb = 4;
 
-               pr_info("%s m:%d, n:%d, toddr type:%d\n",
-                       __func__, msb, lsb, toddr_type);
+               pr_debug("%s Expected toddr src:%s, m:%d, n:%d, toddr type:%d\n",
+                       __func__, toddr_src_get_str(src),
+                       msb, lsb, toddr_type);
 
                fmt.type      = toddr_type;
                fmt.msb       = msb;
index c8db16f..5589486 100644 (file)
@@ -460,10 +460,6 @@ static int extn_dai_prepare(
                else
                        toddr_type = 0;
 
-               pr_info("%s Expected toddr src:%s\n",
-                       __func__,
-                       toddr_src_get_str(src));
-
                if (src == FRATV) {
                        /* Now tv supports 48k, 16bits */
                        if ((bit_depth != 16) || (runtime->rate != 48000)) {
@@ -504,7 +500,9 @@ static int extn_dai_prepare(
                        return -EINVAL;
                }
 
-               pr_info("%s m:%d, n:%d\n", __func__, msb, lsb);
+               pr_debug("%s Expected toddr src:%s, m:%d, n:%d, toddr type:%d\n",
+                       __func__, toddr_src_get_str(src),
+                       msb, lsb, toddr_type);
 
                fmt.type      = toddr_type;
                fmt.msb       = msb;
@@ -537,7 +535,8 @@ static int extn_dai_trigger(struct snd_pcm_substream *substream, int cmd,
 
                        aml_frddr_enable(p_extn->fddr, true);
                } else {
-                       dev_info(substream->pcm->card->dev, "External Capture enable\n");
+                       dev_dbg(substream->pcm->card->dev,
+                               "External Capture enable\n");
 
                        if (src == FRATV)
                                fratv_enable(true);
@@ -561,7 +560,9 @@ static int extn_dai_trigger(struct snd_pcm_substream *substream, int cmd,
                                fratv_enable(false);
                        else if (src == FRHDMIRX)
                                frhdmirx_enable(false);
-                       dev_info(substream->pcm->card->dev, "External Capture disable\n");
+
+                       dev_dbg(substream->pcm->card->dev,
+                               "External Capture disable\n");
 
                        toddr_stopped = aml_toddr_burst_finished(p_extn->tddr);
                        if (toddr_stopped)