1
0
Fork 0

ASoC: SOF: Hardcode ignore_machine

We need to find a way to pass the machine driver name to SOF core. So
far just hard code it.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
5.4-rM2-2.2.x-imx-squashed
Daniel Baluta 2019-11-12 16:11:22 +02:00
parent 925ad97abd
commit 1b9618b96c
1 changed files with 5 additions and 1 deletions

View File

@ -752,7 +752,11 @@ void snd_sof_new_platform_drv(struct snd_sof_dev *sdev)
struct snd_sof_pdata *plat_data = sdev->pdata;
const char *drv_name;
drv_name = plat_data->machine->drv_name;
if (plat_data->machine)
drv_name = plat_data->machine->drv_name;
else
drv_name = "asoc-simple-card";
pd->name = "sof-audio-component";
pd->probe = sof_pcm_probe;