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

Commit cb0e210c authored by Shashi Kant Maurya's avatar Shashi Kant Maurya
Browse files

ASoC: msm: Add WCD interrupt config for SDA660



Configure LPI interrupt registers inorder to setup
WCD interrupt triggered via LPI TLMM as direct apps interrupt.

Change-Id: I8786a27a60010dd94df3863ed54ceff09559d8e1
Signed-off-by: default avatarShashi Kant Maurya <smaury@codeaurora.org>
parent 4315848f
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2018, 2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2018, 2020-2021, The Linux Foundation. All rights reserved.
 */

#include <linux/delay.h>
@@ -48,6 +48,8 @@
#define WSA8810_NAME_1 "wsa881x.20170211"
#define WSA8810_NAME_2 "wsa881x.20170212"
#define SDM660_SOC_MSM_ID 0x13D
#define SDM660_SOC_SDA_ID 0x144

static int msm_ext_spk_control = 1;
static struct wcd_mbhc_config *wcd_mbhc_cfg_ptr;

@@ -1294,9 +1296,10 @@ static int msm_adsp_power_up_config(struct snd_soc_component *component,
		goto err_fail;
	}

	if (socinfo_get_id() == SDM660_SOC_MSM_ID)
	if (socinfo_get_id() == SDM660_SOC_MSM_ID ||
		socinfo_get_id() == SDM660_SOC_SDA_ID) {
		msm_snd_interrupt_config(pdata);

	}
	ret = msm_afe_set_config(component);
	if (ret)
		pr_err("%s: Failed to set AFE config. err %d\n",