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 12:50:05 +0200	[thread overview]
Message-ID: <s5hsmphcmxu.wl@alsa2.suse.de> (raw)
In-Reply-To: <20030707205357.GQ5013@dbz.icequake.net>

At Mon, 7 Jul 2003 15:53:57 -0500,
Ryan Underwood wrote:
> 
> Hi Takashi,
> 
> On Thu, Jul 03, 2003 at 02:29:01PM +0200, Takashi Iwai wrote:
> > At Wed, 2 Jul 2003 15:29:55 -0500,
> > Ryan Underwood wrote:
> > > 
> > > 1) What is ALSA's policy on module options?  For example, would it be
> > > okay to add an option like "thinkpad" to the ad1848 module, so that
> > > inserting it with "thinkpad=1" would cause the necessary ports to be
> > > prodded?
> > 
> > this looks like a feasible solution.
> > 
> > > 2) Since the chip's power mode can be controlled through a write to that
> > > port (bit 2 on, cs4248 power on; bit 2 off, cs4248 power off), would it
> > > be a good idea to add the _suspend, _resume, and _set_power_state
> > > functions within a #ifdef CONFIG_PM block, like in other drivers?
> > 
> > yep.  we haven't done that just becase of lack of hardware.
> > if you can write and test it, it would be greatly appreciated.
> 
> I have attached a patch against the ALSA 0.94.  ad1848.c, ad1848_lib.c,
> and ad1848.h have changed.

thanks!

i applied the patch to cvs with a small modification.
instead of adding a new argument, i created a new hardware type
AD1848_HW_THINKPAD, so that the function call is kept compatible.


> 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?

> 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.


Takashi


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01

  reply	other threads:[~2003-07-08 10:50 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 [this message]
2003-07-08 13:58   ` Ryan Underwood
2003-07-08 17:27     ` Takashi Iwai
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=s5hsmphcmxu.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.