andy-shev / linux

Linux kernel source tree
Other
25 stars 11 forks source link

SST probe error #17

Open svenschwermer opened 6 years ago

svenschwermer commented 6 years ago

Hi! When setting CONFIG_SND_MFLD_MACHINE=y the kernel tries to probe the SST PCI device intel_sst_probe, but fails in sst_context_init because platform data (pdata) is not set in the driver context. I guess, this needs to be done by a platform driver (sst-mfld-platform-pcm maybe?) or by a SFI driver (matching mrfld_sst) perhaps. I see that the platform data is being set in sst_acpi.c but as of now I am running a non-ACPI u-boot. Is this resolved with u-boot from the acpi branch? Or where's the appropriate spot to set the platform data? I see that you've done a few changes to the SST sources, Andy, did you get this to work?

andy-shev commented 6 years ago

Unfortunately I have been having no time to continue SST enabling. What I heard is there is an activity to bring SOF (Sound Open Firmware) support to the drivers soon. It will change the driver structure as well. So, I would recommend to look into that direction.

The best people to ask are Liam and Pierre from Intel who are doing ASoC stuff. (You may find them in alsa-devel@ mailing list)

P.S. And no, ACPI branch has no bits for SST. It would be really helpful if someone can eventually help with SST enabling. (I have even RT5640 codec daughter board on my table for half a year, but... no time to accomplish)

svenschwermer commented 6 years ago

Alright, I'll look into that direction. I'd seen this entry in the MCRS provided by u-boot so I thought I would ask:

/* SST Memory Region */
DWordMemory(ResourceProducer, PosDecode, MinFixed, MaxFixed,
    Cacheable, ReadWrite,
    0x00000000, 0x05e00000, 0x05ffffff, 0x00000000,
    0x00200000, , , SST0)
andy-shev commented 6 years ago

Ah, without that one you didn't get device enumerated at all, but it doesn't describe device per se.

andy-shev commented 6 years ago

By the way I would recommend to find most closest hardware (laptop) and acquire DSDT table from it. Then some bits can be used to create an excerpt for Merrifield (ASuS T100 or alike perhaps).

andy-shev commented 6 years ago

Summon @plbossart to the discussion.