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

Commit b8526cc4 authored by Mangesh Kunchamwar's avatar Mangesh Kunchamwar
Browse files

asoc: fix for reading dt file for codec dma node



Read 32bit instead of 16bit from dt files for
codec dma dai id.

CRs-Fixed: 2248380
Change-Id: I7d49e0530df7261a9a5d2bb8a742ebe3095cc9d0
Signed-off-by: default avatarMangesh Kunchamwar <mangeshk@codeaurora.org>
parent 9c6c1072
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -9673,12 +9673,12 @@ static const struct snd_soc_component_driver msm_q6_cdc_dma_dai_component = {
static int msm_dai_q6_cdc_dma_dev_probe(struct platform_device *pdev)
{
	const char *q6_cdc_dma_dev_id = "qcom,msm-dai-cdc-dma-dev-id";
	u16 cdc_dma_id = 0;
	u32 cdc_dma_id = 0;
	int i;
	int rc = 0;
	struct msm_dai_q6_cdc_dma_dai_data *dai_data = NULL;

	rc = of_property_read_u16(pdev->dev.of_node, q6_cdc_dma_dev_id,
	rc = of_property_read_u32(pdev->dev.of_node, q6_cdc_dma_dev_id,
				  &cdc_dma_id);
	if (rc) {
		dev_err(&pdev->dev,