audio: disable some audio print messages for ATV str test [1/1]

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>
This commit is contained in:
Zhe Wang
2019-08-05 20:15:42 +08:00
committed by Luke Go
parent 719d492856
commit 58cf86024c
3 changed files with 13 additions and 15 deletions

View File

@@ -564,7 +564,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;
@@ -582,7 +582,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;
}

View File

@@ -566,18 +566,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;

View File

@@ -480,10 +480,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)) {
@@ -530,7 +526,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;
@@ -563,7 +561,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);
@@ -587,7 +586,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)