Browse Source

asoc: codecs: Update wsa884x dev_index to match uniq id

WSA884X has different uniq id than WSA883X

Change-Id: Ibb785f3edcc0ae4e8a79849bd8f01a891f5b46ae
Signed-off-by: Matthew Rice <[email protected]>
Matthew Rice 3 years ago
parent
commit
e9193b07c0
1 changed files with 1 additions and 0 deletions
  1. 1 0
      asoc/codecs/wsa884x/wsa884x.c

+ 1 - 0
asoc/codecs/wsa884x/wsa884x.c

@@ -1725,6 +1725,7 @@ static int wsa884x_swr_probe(struct swr_device *pdev)
 
 	/* Get last digit from HEX format */
 	dev_index = (int)((char)(pdev->addr & 0xF));
+	dev_index += 1;
 
 	if (of_device_is_compatible(pdev->dev.of_node, "qcom,wsa884x_2"))
 		dev_index += 2;