summaryrefslogtreecommitdiff
path: root/sound/soc/sof/sof-of-dev.c
diff options
context:
space:
mode:
authorDaniel Baluta <daniel.baluta@nxp.com>2019-12-14 22:10:58 +0200
committerDaniel Baluta <daniel.baluta@nxp.com>2019-12-18 11:38:03 +0200
commit0b4813a18e7a3c0269f69300625b1d136efdde42 (patch)
tree0c2ccb15cfaa6a816eb0ff05685bd9dce2e3df0c /sound/soc/sof/sof-of-dev.c
parent09803ef5752f358b705af014f90fc70a0926d17f (diff)
LF-537-1 ASoC: SOF: Introduce machine driver name
ACPI creates tables with information about the machine driver. With DT there is no need for such tables because we can directly get all the information needed from DT file. This patch introduces machine driver property inside dsp node. Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc/sof/sof-of-dev.c')
-rw-r--r--sound/soc/sof/sof-of-dev.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-of-dev.c b/sound/soc/sof/sof-of-dev.c
index c53d0c09aa20..f5a8c78c7a8d 100644
--- a/sound/soc/sof/sof-of-dev.c
+++ b/sound/soc/sof/sof-of-dev.c
@@ -54,6 +54,11 @@ int sof_of_parse(struct platform_device *pdev)
if (ret < 0)
return ret;
+ ret = of_property_read_string(np, "machine-drv-name",
+ &sof_pdata->machine_drv_name);
+ if (ret < 0)
+ return ret;
+
return 0;
}