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
parent
925ad97abd
commit
1b9618b96c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue