From: "Ville Syrjälä" <syrjala@sci.fi>
To: alsa-devel@lists.sourceforge.net
Subject: Re: [PATCH] Maestro2 hw volume fix
Date: Tue, 17 Feb 2004 18:51:34 +0200 [thread overview]
Message-ID: <20040217165134.GA16527@sci.fi> (raw)
In-Reply-To: <s5h1xotyavv.wl@alsa2.suse.de>
On Tue, Feb 17, 2004 at 04:38:12PM +0100, Takashi Iwai wrote:
> At Tue, 17 Feb 2004 08:20:41 +0200,
> Ville Syrjälä wrote:
> >
> > [1 <text/plain; iso-8859-1 (quoted-printable)>]
> > The attached patch fixes hardware volume buttons on my Dell Inspiron 7000
> > laptop. The chip is ESS Maestro2 (0x125d:0x1968).
> >
> > I have no idea if this will break things for someone else. Since the
> > datasheet didn't help me understand the registers involved I just printed
> > their contents and came up with the used bits.
> >
> > All registers had the following values in my tests:
> > mute: 0x99
> > vol down: 0x77
> > vol up: 0xBB
>
> these values (9, 7, b) are consistent always?
So it would appear. I've tried hitting the buttons in various combinations
and the values have been consistent.
The only thing that is a bit odd is that after hitting the mute button the
next vol up/down doesn't generate an interrupt at all. Only the next press
after that actually works. But that is a hardware issue.
> i'm also not sure whether it's hardware specific...
The device has a subsystem id 0x1028:0x0085 should there be a need to add
hw specific stuff.
The code in maestro.tar.gz uses GPIO data register 0x60 to check for mute
button press. That would actually work on my system but I don't see much
point in checking another register when 0x1C is enough.
The vol up/down test in that code checks for difference between 0x1E and
0x1F. That would not work on my system because all registers 0x1C-0x1F
have identical values.
--
Ville Syrjälä
syrjala@sci.fi
http://www.sci.fi/~syrjala/
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
prev parent reply other threads:[~2004-02-17 16:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-17 6:20 [PATCH] Maestro2 hw volume fix Ville Syrjälä
2004-02-17 15:38 ` Takashi Iwai
2004-02-17 16:51 ` Ville Syrjälä [this message]
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=20040217165134.GA16527@sci.fi \
--to=syrjala@sci.fi \
--cc=alsa-devel@lists.sourceforge.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.