All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrizio Bassi <patrizio.bassi@gmail.com>
To: Takashi Iwai <tiwai@suse.de>,
	akpm@osdl.org, "Kernel, " <linux-kernel@vger.kernel.org>
Subject: Re: [BUG 2.6.15-git5] new alsa power management completly broken
Date: Thu, 12 Jan 2006 08:43:51 +0100	[thread overview]
Message-ID: <43C608B7.4040304@gmail.com> (raw)
In-Reply-To: <s5hoe2kf2vu.wl%tiwai@suse.de>

Takashi Iwai ha scritto:

>At Tue, 10 Jan 2006 13:02:20 +0100,
>Patrizio Bassi wrote:
>  
>
>>ok i'll test asap. (i think tomorrow).
>>
>>i'll do:
>>1) start pc
>>2) load module and play a wav
>>3) suspend without unloading
>>4) resume (and it shouldn't work)
>>5) unload
>>6) reload and try if that works again (should)
>>
>><joke> blame you, after a report of course. :PPP </joke>
>>    
>>
>
>Any news about blaming or blessing? :)
>
>  
>
>>do you want me to add any debug printk? if so, where? (or post me a patch)
>>    
>>
>
>The patch below might help.  Give it a shot.
>
>
>Takashi
>
>--- a/sound/pci/ens1370.c	7 Dec 2005 11:13:55 -0000	1.91
>+++ b/sound/pci/ens1370.c	10 Jan 2006 16:41:08 -0000
>@@ -2061,6 +2061,13 @@
> #ifdef CHIP1371	
> 	snd_ac97_suspend(ensoniq->u.es1371.ac97);
> #else
>+	/* try to reset AK4531 */
>+	outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x02), ES_REG(ensoniq, 1370_CODEC));
>+	inw(ES_REG(ensoniq, 1370_CODEC));
>+	udelay(100);
>+	outw(ES_1370_CODEC_WRITE(AK4531_RESET, 0x03), ES_REG(ensoniq, 1370_CODEC));
>+	inw(ES_REG(ensoniq, 1370_CODEC));
>+	udelay(100);
> 	snd_ak4531_suspend(ensoniq->u.es1370.ak4531);
> #endif	
> 	pci_set_power_state(pci, PCI_D3hot);
>
>  
>

sorry for delay, however i tested it and works perfectly.

just 2 things to notice:
1) [unrelated to this bug] swsusp ram pages write and read is really
slower than 2.6.14 one. i didn't follow changes, so don't know what happened

2) when i suspend i continue to see errors 0x660 in my tty. The strange
thing is that after resume they are no more in dmesg!
strange. however, as i wrote before, it works.

ps. i tested with module only, i'll switch back to built-in solution but
i think there won't be any problems.

big thanks to takashi for patch, please apply.

--
Patrizio Bassi
www.patriziobassi.it

  parent reply	other threads:[~2006-01-12  7:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10  8:06 [BUG 2.6.15-git5] new alsa power management completly broken Patrizio Bassi
2006-01-10 12:01 ` Takashi Iwai
     [not found]   ` <43C3A24C.3010207@gmail.com>
     [not found]     ` <s5hoe2kf2vu.wl%tiwai@suse.de>
2006-01-12  7:43       ` Patrizio Bassi [this message]
     [not found] <20060111234810.3ffe241c.akpm@osdl.org>
2006-01-12  8:58 ` Pavel Machek
2006-01-12  9:37   ` Patrizio Bassi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43C608B7.4040304@gmail.com \
    --to=patrizio.bassi@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tiwai@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.