Merge "ASoC: update channel map for rx multi codec usecase"

This commit is contained in:
Linux Build Service Account
2021-05-02 22:55:39 -07:00
committed by Gerrit - the friendly Code Review server
5 changed files with 219 additions and 117 deletions

View File

@@ -1741,6 +1741,9 @@ static int wsa883x_swr_probe(struct swr_device *pdev)
/* Get last digit from HEX format */
dev_index = (int)((char)(pdev->addr & 0xF));
if (of_device_is_compatible(pdev->dev.of_node, "qcom,wsa883x_2"))
dev_index += 2;
snprintf(buffer, sizeof(buffer), "wsa-codec.%d", dev_index);
wsa883x->driver->name = kstrndup(buffer, strlen(buffer), GFP_KERNEL);