Skip to content

Conversation

@dbaluta
Copy link
Collaborator

@dbaluta dbaluta commented Nov 7, 2019

Currently, SOF probes machine drivers by creating a platform device
and passing the machine description as private data.

This is driven by the ACPI restrictions. Ideally, ACPI tables
should contain the description for the machine driver. This is
not possible becuase ACPI tables are frozen and used on multiple
OS-es (e.g Windows).

In the case, of Device Tree we don't have this restrictions, so we
choose to probe the machine drivers by creating a DT node as is
the standard ALSA way.

This patch makes the probing of machine drivers from SOF core optional
allowing for arm platforms to decouple the SOF core from machine
driver probing.

@ranj063 I will push my work here. For now SOF core and machine drivers probing is tightly coupled.

Even for nocodec machine driver. It needs to know a lot of things from core: sof_pdata, desc and ops. Ideally, nocodec machine driver should only need the private data provided by device registration. (e.g the snd_soc_acpi_mach struct).

Will update this PR once I figure out more.

@dbaluta dbaluta changed the title SOF enhancements to support describing machine drivers with Device Tree Enhancements to prepare supporting machine driver probing via device tree Nov 7, 2019
Copy link
Member

@plbossart plbossart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no objections on the idea, but the work is not complete, see below

@dbaluta
Copy link
Collaborator Author

dbaluta commented Nov 7, 2019

no objections on the idea, but the work is not complete, see below

Thanks, for review. Yes, the work is not complete. I started this early in order to better sync with @ranj063

@dbaluta
Copy link
Collaborator Author

dbaluta commented Nov 11, 2019

@ranj063 can you please take the first 2 patches in this series and rebase your PR on it?

  • ASoC: Make creation of machine device from SOF core optional
  • ASoC: SOF: Remove unused drv_name in sof_pdata

@ranj063
Copy link
Collaborator

ranj063 commented Nov 11, 2019

@ranj063 can you please take the first 2 patches in this series and rebase your PR on it?

  • ASoC: Make creation of machine device from SOF core optional

@dbaluta ack. working on it. I'm making some other changes based on the reviews as well. Will have a new update by tomorrow.

@dbaluta
Copy link
Collaborator Author

dbaluta commented Nov 11, 2019

@dbaluta ack. working on it. I'm making some other changes based on the reviews as well. Will have a new update by tomorrow.

@ranj063 sure thanks!

@dbaluta
Copy link
Collaborator Author

dbaluta commented Nov 15, 2019

patches already taken by @ranj063 in #1478

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants