summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/skylake/skl.c
diff options
context:
space:
mode:
authorSubhransu S. Prusty2017-01-11 12:01:02 +0100
committerMark Brown2017-02-04 17:14:45 +0100
commit0cf5a17159edbebfe3ce2a0ce1dd36bd5809479a (patch)
tree498e243611f61a444636b0814aef3c1cc648ba4a /sound/soc/intel/skylake/skl.c
parentASoC: Intel: bxt: add channel map support in bxt_da7219_max98357a machine (diff)
downloadkernel-qcow2-linux-0cf5a17159edbebfe3ce2a0ce1dd36bd5809479a.tar.gz
kernel-qcow2-linux-0cf5a17159edbebfe3ce2a0ce1dd36bd5809479a.tar.xz
kernel-qcow2-linux-0cf5a17159edbebfe3ce2a0ce1dd36bd5809479a.zip
ASoC: Intel: Skylake: Report Platform ID info from NHLT
This patch create entry in sysfs file system to report the platform_id = "pci-id-oem_id-oem_table_id-oem_revision" for board identification. Signed-off-by: Subhransu S. Prusty <subhransu.s.prusty@intel.com> Signed-off-by: Sodhi, VunnyX <vunnyx.sodhi@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/skylake/skl.c')
-rw-r--r--sound/soc/intel/skylake/skl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index da5db5098274..1152e46daede 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -732,6 +732,10 @@ static int skl_probe(struct pci_dev *pci,
goto out_display_power_off;
}
+ err = skl_nhlt_create_sysfs(skl);
+ if (err < 0)
+ goto out_nhlt_free;
+
skl_nhlt_update_topology_bin(skl);
pci_set_drvdata(skl->pci, ebus);
@@ -852,6 +856,7 @@ static void skl_remove(struct pci_dev *pci)
skl_free_dsp(skl);
skl_machine_device_unregister(skl);
skl_dmic_device_unregister(skl);
+ skl_nhlt_remove_sysfs(skl);
skl_nhlt_free(skl->nhlt);
skl_free(ebus);
dev_set_drvdata(&pci->dev, NULL);