Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASoC: rt712-sdca: move component registration to the probe stage #5137

Conversation

plbossart
Copy link
Member

We shouldn't do any devm_ based allocation in the io_init(), this need to happen in the probe().

FIXME: we could make this component allocation contingent on detecting a mic function ACPI.

FIXME: the registers are not well handled today, the regmap lists registers which are not really supported in all platforms. The regmap needs to throw an error if those registers are accessed without existing.

We shouldn't do any devm_ based allocation in the io_init(), this need
to happen in the probe().

FIXME: we could make this component allocation contingent on detecting
a mic function ACPI.

FIXME: the registers are not well handled today, the regmap lists
registers which are not really supported in all platforms. The regmap
needs to throw an error if those registers are accessed without
existing.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
@plbossart
Copy link
Member Author

@shumingfan @bardliao I have quite a few concerns on how the RT712-VB integration was handled.
a) devm_ use in the io_init, that's not quite right
b) registers all defined for all versions of the chip.
please review and comment, thank you.

&soc_sdca_dev_rt712_dmic, rt712_sdca_dmic_dai, ARRAY_SIZE(rt712_sdca_dmic_dai));
if (ret < 0)
return ret;

Choose a reason for hiding this comment

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

@plbossart If we could detect the RT712VB (a mic function ACPI) before rt712_sdca_init, the dmic component registration would be nice to move here.

Copy link
Member Author

Choose a reason for hiding this comment

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

we can, the function already exists but I can't figure out how to get the Kconfig right...

@plbossart
Copy link
Member Author

moved to updated PR #5128

@plbossart plbossart closed this Aug 9, 2024
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.

2 participants