Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c39c6a8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "asoc: SEC CLK enable"

parents d9dd3301 a104ce9b
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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);
			}
		}
	}