Skip to content

Commit 590b477

Browse files
morimototiwai
authored andcommitted
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 <[email protected]> Reviwed-by: Mark Brown <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 3e84319 commit 590b477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/last.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ static int __init alsa_sound_last_init(void)
3838
return 0;
3939
}
4040

41-
__initcall(alsa_sound_last_init);
41+
late_initcall_sync(alsa_sound_last_init);

0 commit comments

Comments
 (0)