ASoC: SOF: Pass PCI SSID to machine driver
[linux-2.6-microblaze.git] / sound / soc / sof / sof-audio.c
index e7ef770..9c2359d 100644 (file)
@@ -1031,6 +1031,13 @@ int sof_machine_check(struct snd_sof_dev *sdev)
                mach = snd_sof_machine_select(sdev);
                if (mach) {
                        sof_pdata->machine = mach;
+
+                       if (sof_pdata->subsystem_id_set) {
+                               mach->mach_params.subsystem_vendor = sof_pdata->subsystem_vendor;
+                               mach->mach_params.subsystem_device = sof_pdata->subsystem_device;
+                               mach->mach_params.subsystem_id_set = true;
+                       }
+
                        snd_sof_set_mach_params(mach, sdev);
                        return 0;
                }