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 <mrice@quicinc.com>
This commit is contained in:
Matthew Rice
2021-11-09 13:33:56 -08:00
parent cdcdcac0df
commit e9193b07c0

View File

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