From: Kuninori Morimoto Date: Thu, 19 Apr 2012 07:00:27 +0000 (-0700) Subject: ALSA: workaround: change the timing of alsa_sound_last_init() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=590b4775d6b628c7ad215fd0335a0a787032e2dd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ALSA: workaround: change the timing of alsa_sound_last_init() Current alsa_sound_last_init() was called as __initcall(). So, on current ALSA, only devices that had been properly registered at this point were shown. So, it will show "No soundcards found" if driver requests probe deferment. it's often misleading. This patch delays the timing of alsa_sound_last_init() as workaround. Signed-off-by: Kuninori Morimoto Reviwed-by: Mark Brown Signed-off-by: Takashi Iwai --- diff --git a/sound/last.c b/sound/last.c index bdd0857b8871..7ffc182e0844 100644 --- a/sound/last.c +++ b/sound/last.c @@ -38,4 +38,4 @@ static int __init alsa_sound_last_init(void) return 0; } -__initcall(alsa_sound_last_init); +late_initcall_sync(alsa_sound_last_init);