]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ALSA: via82xx: add option to disable 500ms delay in snd_via82xx_codec_wait
authorSimon Arlott <simon@fire.lp0.eu>
Sun, 21 Jun 2009 18:50:48 +0000 (19:50 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 22 Jun 2009 05:54:58 +0000 (07:54 +0200)
commit115551d98e4c05bb982bd940f08a489fa9b0a4a1
tree16a5f9bdeabd03f6c52905e693a469e4d8784af5
parent1f3fff7bda95b75a6be5a02c2a6902573d8c18e6
ALSA: via82xx: add option to disable 500ms delay in snd_via82xx_codec_wait

There's a large 500ms delay in snd_via82xx_codec_wait() that, at least
on my hardware, appears to be unnecessary. The rest of the init of
the card works without logging any warnings or errors and both audio
and mixer settings work.

This adds an "nodelay" parameter to disable this (undocumented in the
code) large delay improving bootup time by 489-500ms.

[    1.034217] initcall alsa_card_via82xx_init+0x0/0x16 returned 0 after 505757 usecs
vs.
[    0.533136] initcall alsa_card_via82xx_init+0x0/0x16 returned 0 after 15915 usecs

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/via82xx.c