Commit:     2e4924628ad957f702631a7a049c586a780f00f8
Parent:     b7e054a76fdc42b442c003f8d19ee5dce6b55f02
Author:     Maxim Levitsky <[EMAIL PROTECTED]>
AuthorDate: Mon Sep 3 15:26:57 2007 +0200
Committer:  Jaroslav Kysela <[EMAIL PROTECTED]>
CommitDate: Tue Oct 16 15:59:46 2007 +0200

    [ALSA] hda-intel - fix a race in dynamic power managment
    codec->power_transition is supposed to be true while codec is going
    to be shut off if in the mean time somebody calls snd_hda_power_up,
    hda_power_work will not shut down the codec, but nether will clear
    codec->power_transition, thus it stays on forever. Fix this.
    Signed-off-by: Maxim Levitsky <[EMAIL PROTECTED]>
    Signed-off-by: Takashi Iwai <[EMAIL PROTECTED]>
    Signed-off-by: Jaroslav Kysela <[EMAIL PROTECTED]>
 sound/pci/hda/hda_codec.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 46d4253..08104e2 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2195,8 +2195,10 @@ static void hda_power_work(struct work_struct *work)
        struct hda_codec *codec =
                container_of(work, struct hda_codec,;
-       if (!codec->power_on || codec->power_count)
+       if (!codec->power_on || codec->power_count) {
+               codec->power_transition = 0;
+       }
        if (codec->bus->ops.pm_notify)
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

Reply via email to