From b3c62d149ea5ff55a0f0e240fa880bcd6a7c4636 Mon Sep 17 00:00:00 2001 From: Karthikeyan Mani Date: Fri, 23 Mar 2018 15:07:57 -0700 Subject: [PATCH] asoc: remove tdm optional properties boot logs Move the tdm device property logs from probe function to prepare function to print them only when tdm usecase is started and not during bootup. Change-Id: I3844709d501bf510620d6f20f270e30c68e78b78 Signed-off-by: Karthikeyan Mani --- asoc/msm-dai-q6-v2.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/asoc/msm-dai-q6-v2.c b/asoc/msm-dai-q6-v2.c index d0df70c5b016..c3c1fbdfcae5 100644 --- a/asoc/msm-dai-q6-v2.c +++ b/asoc/msm-dai-q6-v2.c @@ -5252,9 +5252,6 @@ static int msm_dai_tdm_q6_probe(struct platform_device *pdev) dev_dbg(&pdev->dev, "%s: Group ID from DT file 0x%x\n", __func__, tdm_group_cfg.group_id); - dev_info(&pdev->dev, "%s: dev_name: %s group_id: 0x%x\n", - __func__, dev_name(&pdev->dev), tdm_group_cfg.group_id); - rc = of_property_read_u32(pdev->dev.of_node, "qcom,msm-cpudai-tdm-group-num-ports", &num_tdm_group_ports); @@ -6920,6 +6917,13 @@ static int msm_dai_q6_tdm_prepare(struct snd_pcm_substream *substream, int group_idx = 0; atomic_t *group_ref = NULL; + dev_dbg(dai->dev, "%s: dev_name: %s dev_id: 0x%x group_id: 0x%x\n", + __func__, dev_name(dai->dev), dai->dev->id, group_id); + + if (dai_data->port_cfg.custom_tdm_header.minor_version == 0) + dev_dbg(dai->dev, + "%s: Custom tdm header not supported\n", __func__); + group_idx = msm_dai_q6_get_group_idx(dai->id); if (group_idx < 0) { dev_err(dai->dev, "%s port id 0x%x not supported\n", @@ -8688,9 +8692,6 @@ static int msm_dai_q6_tdm_dev_probe(struct platform_device *pdev) } pdev->id = tdm_dev_id; - dev_info(&pdev->dev, "%s: dev_name: %s dev_id: 0x%x\n", - __func__, dev_name(&pdev->dev), tdm_dev_id); - dai_data = kzalloc(sizeof(struct msm_dai_q6_tdm_dai_data), GFP_KERNEL); if (!dai_data) { @@ -8831,8 +8832,6 @@ static int msm_dai_q6_tdm_dev_probe(struct platform_device *pdev) custom_tdm_header->header_type = AFE_CUSTOM_TDM_HEADER_TYPE_INVALID; } else { - dev_info(&pdev->dev, - "%s: Custom tdm header not supported\n", __func__); /* CUSTOM TDM HEADER CFG -- set default */ custom_tdm_header->header_type = AFE_CUSTOM_TDM_HEADER_TYPE_INVALID;