]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
sound: virtuoso: fix Xonar D1/DX silence after resume
authorClemens Ladisch <clemens@ladisch.de>
Thu, 2 Jul 2009 06:31:30 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 23:06:01 +0000 (16:06 -0700)
commit 826390796d09444b93e1f957582f8970ddfd9b3d upstream.

When resuming, we better take the DACs out of the reset state before
trying to use them.

Reference: kernel bug #13599
http://bugzilla.kernel.org/show_bug.cgi?id=13599

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
sound/pci/oxygen/virtuoso.c

index 01d7b75f91828144f16c33b4ce81fb4e47ce7438..d1773f650650845bc112cba2373ce24cb5b74d1b 100644 (file)
@@ -376,6 +376,8 @@ static void xonar_d2_resume(struct oxygen *chip)
 
 static void xonar_d1_resume(struct oxygen *chip)
 {
+       oxygen_set_bits8(chip, OXYGEN_FUNCTION, OXYGEN_FUNCTION_RESET_CODEC);
+       msleep(1);
        cs43xx_init(chip);
        xonar_enable_output(chip);
 }