Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ec0aefa authored by Santosh Mardi's avatar Santosh Mardi Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: msm: change machine driver to late init



Change the machine driver module init to late init,
sound card registration is dependent on the codec enumeration
and codec enumeration is dependent on LPASS bring up and at
this early boot the machine driver does not find the codec
registered as a result machine driver probe start deferring
and start flooding the kernel message during the early boot

Change the machine driver module init to late init.

Change-Id: Ie4a352cc47e8d64cedd8f8b3a6d81af8783de6f2
Signed-off-by: default avatarSantosh Mardi <gsantosh@codeaurora.org>
parent 07be7a92
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -2472,7 +2472,18 @@ static struct platform_driver msm8952_asoc_machine_driver = {
	.probe = msm8952_asoc_machine_probe,
	.remove = msm8952_asoc_machine_remove,
};
module_platform_driver(msm8952_asoc_machine_driver);

static int __init msm8952_slim_machine_init(void)
{
	return platform_driver_register(&msm8952_asoc_machine_driver);
}
late_initcall(msm8952_slim_machine_init);

static void __exit msm8952_slim_machine_exit(void)
{
	return platform_driver_unregister(&msm8952_asoc_machine_driver);
}
module_exit(msm8952_slim_machine_exit);

MODULE_DESCRIPTION("ALSA SoC msm");
MODULE_LICENSE("GPL v2");
+12 −1
Original line number Diff line number Diff line
@@ -3030,7 +3030,18 @@ static struct platform_driver msm8952_asoc_machine_driver = {
	.probe = msm8952_asoc_machine_probe,
	.remove = msm8952_asoc_machine_remove,
};
module_platform_driver(msm8952_asoc_machine_driver);

static int __init msm8952_machine_init(void)
{
	return platform_driver_register(&msm8952_asoc_machine_driver);
}
late_initcall(msm8952_machine_init);

static void __exit msm8952_machine_exit(void)
{
	return platform_driver_unregister(&msm8952_asoc_machine_driver);
}
module_exit(msm8952_machine_exit);

static ssize_t codec_detect_store(struct kobject *kobj,
		struct kobj_attribute *attr, const char *buf,