Skip to content

machine driver pdata handling is broken #208

@plbossart

Description

@plbossart

in #164 the patch 'ASoC: SOF: Refine registeration of platform device' modified the way the machine driver is registered, and modified the arguments that are passed as pdata.

In the acpi case, we passed the 'mach' structure as argument because we need to check the actual device name. This is now broken, so this patch needs to be redone - with probably different arguments passed depending on the machine driver (e.g. mach pointer for i2s machine drivers and codec-mask pointer for hdaudio)

This change was also made only for ACPI and PCI but not for SPI, so @lyakh and @lgirdwood would need to chime in on this.

And last there is no consistent handling of the platform_device_unregister(), this was not removed for ACPI, removed for ACPI and removed in the next patch for SPI

To me this was a wild merge that hasn't been tested on all platforms...

Metadata

Metadata

Assignees

Labels

BYTApplies to Baytrail platformGLKApplies to Gemini LakeP1Blocker bugs or important featuresbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions