Browse Source

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: Mangesh Kunchamwar <[email protected]>
Mangesh Kunchamwar 6 years ago
parent
commit
b8526cc457
1 changed files with 2 additions and 2 deletions
  1. 2 2
      asoc/msm-dai-q6-v2.c

+ 2 - 2
asoc/msm-dai-q6-v2.c

@@ -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,