ALSA: sis7019 - give slow codecs more time to reset
authorDavid Dillow <dave@thedillows.org>
Fri, 2 Dec 2011 04:26:53 +0000 (23:26 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:57:33 +0000 (12:57 -0800)
commit70df35a3564820865db8ddb1b21ef9f92b5ca95c
treefb48cfb11db56a3c8c73c48908399bf38bebdc60
parentd986a8dbfd7358bfbda116650c4caf8a3b90d865
ALSA: sis7019 - give slow codecs more time to reset

commit fc084e0b930d546872ab23667052499f7daf0fed upstream.

There are some AC97 codec and board combinations that have been observed
to take a very long time to respond after the cold reset has completed.
In one case, more than 350 ms was required. To allow users to have sound
on those platforms, we'll wait up to 500ms for the codec to become
ready.

As a board may have multiple codecs, with some faster than others to
reset, we add a module parameter to inform the driver which codecs
should be present.

Reported-by: KotCzarny <tjosko@yahoo.com>
Signed-off-by: David Dillow <dave@thedillows.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/sis7019.c