From: Pavel Kysilka <pavelk@bsys.cz>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: cs46xx thinkpad resume fix - #bug1946
Date: Wed, 18 Jul 2007 00:26:42 +0200 [thread overview]
Message-ID: <20070717222642.GA28159@prog3> (raw)
In-Reply-To: <s5hps2rwbgy.wl%tiwai@suse.de>
On Tue Jul 17, 2007 at 12:50:21PM +0200, Takashi Iwai wrote:
Hi Takashi,
good news below.
> At Mon, 16 Jul 2007 11:24:45 +0200,
> I wrote:
> >
> >
<cut/>
> > Oh, thanks for hunting this long-standing bug!
> >
> > I think, however, it cannot be applied as it is.
> > First, snd_cs46xx_start_dsp() calls cs46xx_dsp_load_module(), and the
> > latter function isn't designed for the PM resume. We'd need a special
> > resume function just for clearing area & reloading the dsp images
> > according to the already loaded DSP modules.
> >
> > Second, __devinit prefix for snd_cs46xx_start_dsp() has to be removed
> > if it's called from the PM handler.
>
> Looking at the code more deeply, I suspect whether it really works
> when CONFIG_SND_CS46XX_NEW_DSP=y. snd_cs46xx_start_dsp() involves
> with many calls that add SCBs and co, which will eventually overflow.
>
> I made a patch blindly to do the resume work in a saner way, but of
> course, it's totally untested. Could you check whether it works?
Patch works perfectly.
Tested option:
- kernel compiled with and without CONFIG_SND_CS46XX_NEW_DSP=y
- play pcm stream, suspend, resume and pcm stream is playing
- play pcm stream, stop playing pcm stream, suspend, resume and play pcm stream
If you need log from resume from notebook, I'll send you this log.
>
>
> thanks,
>
> Takashi
>
Many thanks
Pavel
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Servers.
http://www.eset.com
next prev parent reply other threads:[~2007-07-17 22:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-14 15:55 cs46xx thinkpad resume fix - #bug1946 Pavel Kysilka
2007-07-16 9:24 ` Takashi Iwai
2007-07-17 10:50 ` Takashi Iwai
2007-07-17 22:26 ` Pavel Kysilka [this message]
2007-07-18 13:51 ` chris
2007-07-19 9:37 ` Takashi Iwai
2007-07-19 9:34 ` Takashi Iwai
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=20070717222642.GA28159@prog3 \
--to=pavelk@bsys.cz \
--cc=alsa-devel@alsa-project.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.