All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Ryan Underwood <nemesis-lists@icequake.net>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: cs4248 / thinkpad 755 / 755c , patch suggestions [PATCH]]
Date: Tue, 08 Jul 2003 19:27:06 +0200	[thread overview]
Message-ID: <s5hfzlhc4k5.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030708135821.GA1030@dbz.icequake.net>

At Tue, 8 Jul 2003 08:58:21 -0500,
Ryan Underwood wrote:
> 
> 
> Hi Takashi,
> 
> On Tue, Jul 08, 2003 at 12:50:05PM +0200, Takashi Iwai wrote:
> > 
> > > One issue is to note, I don't know if this is a problem with the ad1848
> > > driver in general or what; if I cat a 11025hz mono 8-bit file to
> > > /dev/dsp, the sound comes out verrrrry slllloooowwwllly.   But using
> > > aplay, it works fine.
> > 
> > could you check the parameters in /proc/asound/card0/pcm0p/sub0/*
> > during playback via oss?
> 
> The results are pasted below -- what is strange is that aplay identifies
> the file as 11025Hz but apparently the OSS driver thinks it is 8000Hz
> data.
 
ah, i understand.  you cannot cat to /dev/dsp in general.
if you do this, it's supposed to be 8kHz mono samples.


> > > I am not sure the best way to test the power managmeent code -- it
> > > doesn't crash the machine at least. ;)
> > 
> > it looks ok - but i guess we need to restore the registers (mixer
> > status, etc) too.
> 
> You are right -- I just checked the registers before and after flipping
> that bit, and it seems they are set to default values afterwards, which
> would seem to support the possibility that this is a power management
> feature.
> 
> The main thing I was wondering about is if some other machine with a
> AD1848 goes into D0 for instance, and the suspend function does nothing
> (since it is not a thinkpad), is the system still in an ok state as long
> as the card's status is not set to D0 when the card is actually not in
> D0?  Does that make sense?

if the chip supports really something the power management, we should
implement it, too.  but AFAIK, ad1848 itself has no such a control.
so, the suspend callback is expected just to save the last status so
that it can be restored in the resume callback.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps

  reply	other threads:[~2003-07-08 17:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-07 20:53 cs4248 / thinkpad 755 / 755c , patch suggestions [PATCH]] Ryan Underwood
2003-07-08 10:50 ` Takashi Iwai
2003-07-08 13:58   ` Ryan Underwood
2003-07-08 17:27     ` Takashi Iwai [this message]
2003-07-08 17:32       ` Ryan Underwood
2003-07-08 17:37         ` Takashi Iwai
2003-07-08 19:54           ` Ryan Underwood
2003-07-09 12:39             ` Takashi Iwai
2003-07-09 16:05               ` Ryan Underwood
2003-07-09 16:28                 ` Jaroslav Kysela
2003-07-09 21:04                   ` Ryan Underwood
2003-07-08 17:01   ` Ryan Underwood
2003-07-08 17:21     ` 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=s5hfzlhc4k5.wl@alsa2.suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=nemesis-lists@icequake.net \
    /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.