ASoC: atmel_ssc_dai: distinguish the different SSC
Cpu_dai id always equals 0, can't distinguish the different SSC. Use platform_device id to record and distinguish the different SSC. Signed-off-by: Songjun Wu <songjun.wu@atmel.com> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -34,6 +34,7 @@ struct ssc_device *ssc_request(unsigned int ssc_num)
|
||||
if (ssc->pdev->dev.of_node) {
|
||||
if (of_alias_get_id(ssc->pdev->dev.of_node, "ssc")
|
||||
== ssc_num) {
|
||||
ssc->pdev->id = ssc_num;
|
||||
ssc_valid = 1;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user