ALSA: sis7019 - give slow codecs more time to reset
commit95d2c2c87d9363718f0248a95414cda168f295b7
authorDavid Dillow <dave@thedillows.org>
Fri, 2 Dec 2011 04:26:53 +0000 (1 23:26 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:58:17 +0000 (21 12:58 -0800)
treee63c179766c0e417e2f08835b3bba5b86ca81dd2
parentcaf4b0430be8296bf644199bf3ed3056c02420c7
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