[alsa-devel] [PATCH] ALSA: workaround: change the timing of alsa_sound_last_init()

Takashi Iwai tiwai at suse.de
Thu Apr 19 13:52:40 CEST 2012


At Thu, 19 Apr 2012 00:00:27 -0700 (PDT),
Kuninori Morimoto wrote:
> 
> 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 <kuninori.morimoto.gx at renesas.com>

Thanks, applied now.


Takashi

> ---
>  sound/last.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/sound/last.c b/sound/last.c
> index bdd0857..7ffc182 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);
> -- 
> 1.7.5.4
> 


More information about the Alsa-devel mailing list