Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=95e99fdadb34debebd8dd35bb5a18b253dece22d
Commit:     95e99fdadb34debebd8dd35bb5a18b253dece22d
Parent:     51882453a729675aa7266aa87d99f33eca310c86
Author:     Takashi Iwai <[EMAIL PROTECTED]>
AuthorDate: Mon Aug 13 15:29:04 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:58:49 2007 +0200

    [ALSA] hda-intel - Fix resume with power save
    
    The controller power wasn't turned on properly at resume due to the
    power-saving patch.  Now fixed.
    
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
---
 sound/pci/hda/hda_codec.c |    2 +-
 sound/pci/hda/hda_intel.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 9a3b728..efd56a3 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1662,6 +1662,7 @@ static void hda_call_codec_suspend(struct hda_codec 
*codec)
                            AC_PWRST_D3);
 #ifdef CONFIG_SND_HDA_POWER_SAVE
        cancel_delayed_work(&codec->power_work);
+       codec->power_on = 0;
 #endif
 }
 
@@ -2195,7 +2196,6 @@ static void hda_power_work(struct work_struct *work)
                return;
 
        hda_call_codec_suspend(codec);
-       codec->power_on = 0;
        if (codec->bus->ops.pm_notify)
                codec->bus->ops.pm_notify(codec);
 }
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 7be3a9b..f9c7c2e 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1500,7 +1500,7 @@ static int azx_acquire_irq(struct azx *chip, int 
do_disconnect)
 
 static void azx_stop_chip(struct azx *chip)
 {
-       if (chip->initialized)
+       if (!chip->initialized)
                return;
 
        /* disable interrupts */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to