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

Commit b3c8896c authored by Karthikeyan Mani's avatar Karthikeyan Mani Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: Change wsa dt property to optional



Make wsa max number of devices to optional
so that it can be removed or set to 0 if wsa
is not used and still continue with the sound card
enumeration.

CRs-fixed: 2060360
Change-Id: I30b8cca561bbcfe2bd2221d17659960ab9db27b6
Signed-off-by: default avatarKarthikeyan Mani <kmani@codeaurora.org>
parent 2ff03644
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -6696,16 +6696,18 @@ static int msm_init_wsa_dev(struct platform_device *pdev,
	ret = of_property_read_u32(pdev->dev.of_node,
				   "qcom,wsa-max-devs", &wsa_max_devs);
	if (ret) {
		dev_dbg(&pdev->dev,
		dev_info(&pdev->dev,
			 "%s: wsa-max-devs property missing in DT %s, ret = %d\n",
			 __func__, pdev->dev.of_node->full_name, ret);
		goto err;
		card->num_aux_devs = 0;
		return 0;
	}
	if (wsa_max_devs == 0) {
		dev_warn(&pdev->dev,
			 "%s: Max WSA devices is 0 for this target?\n",
			 __func__);
		goto err;
		card->num_aux_devs = 0;
		return 0;
	}

	/* Get count of WSA device phandles for this platform */