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

Commit bdb45e98 authored by Aditya Bavanari's avatar Aditya Bavanari
Browse files

asoc: voice: Set BMS voting flag based on device tree property



Set BMS voting flag based on device tree property under
voice platform to set BMS power state to high/low during voice
call.

CRs-Fixed: 2356600
Change-Id: I43781c187e9694c6ad9e84904a41fbce589d89d0
Signed-off-by: default avatarAditya Bavanari <abavanar@codeaurora.org>
parent 318556e6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -720,7 +720,9 @@ static int msm_pcm_probe(struct platform_device *pdev)
{
	int rc;
	bool destroy_cvd = false;
	bool vote_bms = false;
	const char *is_destroy_cvd = "qcom,destroy-cvd";
	const char *is_vote_bms = "qcom,vote-bms";

	if (!is_voc_initialized()) {
		pr_debug("%s: voice module not initialized yet, deferring probe()\n",
@@ -747,6 +749,10 @@ static int msm_pcm_probe(struct platform_device *pdev)
						is_destroy_cvd);
	voc_set_destroy_cvd_flag(destroy_cvd);

	vote_bms = of_property_read_bool(pdev->dev.of_node,
					 is_vote_bms);
	voc_set_vote_bms_flag(vote_bms);

	rc = snd_soc_register_platform(&pdev->dev,
				       &msm_soc_platform);