From a104ce9b9fd7717848d0c88739952781eb46ff34 Mon Sep 17 00:00:00 2001 From: lilong Date: Wed, 8 Jun 2022 11:17:05 +0530 Subject: [PATCH] asoc: SEC CLK enable enable sec clock SEC TDM interface. Change-Id: I35ee0064ae20b2423fc998c2b4bfedbea3b3b7a4 Signed-off-by: Long Li --- asoc/sa6155.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/asoc/sa6155.c b/asoc/sa6155.c index 36137d33f289..2d77b801b37f 100644 --- a/asoc/sa6155.c +++ b/asoc/sa6155.c @@ -4930,8 +4930,11 @@ static int sa6155_tdm_snd_startup(struct snd_pcm_substream *substream) */ intf_conf = &pdata->tdm_intf_conf[index]; mutex_lock(&intf_conf->lock); + + pr_debug("%s: intf_conf->ref_cnt = %d, index = %d\n", __func__, intf_conf->ref_cnt, index); + if (++intf_conf->ref_cnt == 1) { - if (index == TDM_TERT || index == TDM_QUAT || + if (index == TDM_TERT || index == TDM_QUAT || index == TDM_SEC || index == TDM_QUIN) { pinctrl_info = &pdata->pinctrl_info[index]; if (pinctrl_info->pinctrl) { @@ -4940,6 +4943,8 @@ static int sa6155_tdm_snd_startup(struct snd_pcm_substream *substream) if (ret_pinctrl) pr_err("%s: TDM TLMM pinctrl set failed with %d\n", __func__, ret_pinctrl); + } else { + pr_err("%s: No set_pinctrl entity for [%d]...\n", __func__, index); } } }