mirror of https://github.com/thesofproject/sof.git
platform: imx: Do not perform early get/init of the DAI
It isn't necessary to do a dai_get this early for the ESAI; the SAI doesn't even have one. Calling dai_probe() after dai_get() is pointless since dai_probe() was already called from a previous dai_get() with CREAT flag (in particular the one which incremented sref from 0 to 1). Signed-off-by: Paul Olaru <paul.olaru@nxp.com>
This commit is contained in:
parent
a366d378ba
commit
73a70eddac
|
@ -141,7 +141,6 @@ int platform_boot_complete(uint32_t boot_message)
|
|||
int platform_init(struct sof *sof)
|
||||
{
|
||||
int ret;
|
||||
struct dai *esai;
|
||||
|
||||
platform_interrupt_init();
|
||||
clock_init();
|
||||
|
@ -179,11 +178,5 @@ int platform_init(struct sof *sof)
|
|||
if (ret < 0)
|
||||
return -ENODEV;
|
||||
|
||||
esai = dai_get(SOF_DAI_IMX_ESAI, 0, DAI_CREAT);
|
||||
if (!esai)
|
||||
return -ENODEV;
|
||||
|
||||
dai_probe(esai);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue