From: Peter Skensved <peter@jay.phy.queensu.ca>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: 1.0.15rc3 patch_analog.s bug + fix
Date: Wed, 17 Oct 2007 10:55:46 -0400 [thread overview]
Message-ID: <20071017145546.GA23576@jay.phy.queensu.ca> (raw)
In-Reply-To: <s5hk5pn47d1.wl%tiwai@suse.de>
On Tue, Oct 16, 2007 at 01:38:34PM +0200, Takashi Iwai wrote:
> At Mon, 15 Oct 2007 16:34:21 -0400,
> Peter Skensved wrote:
> >
> > On Mon, Oct 15, 2007 at 01:29:50PM +0200, Takashi Iwai wrote:
> > > At Sun, 14 Oct 2007 22:53:03 -0400,
> > > Peter Skensved wrote:
> > > >
> > > > Hi,
> > > > I've come across a problem with the 1.0.15rc3 alsa driver on my Lenovo 3000 N100 laptop using
> > > > the auto mute feature - it appears to work backwards ! Plugging in the headphones unmutes the
> > > > external speakers and unplugging the heaphones mutes them ...
> > > >
> > > > Changing the if statement in line ~600 in patch_analog.c in ad1986a_update_hp to
> > > >
> > > > if (!spec->jack_preset)
> > > >
> > > > makes it work the intended way. ( spec->jack_present changes state _before_ the call to
> > > > ad1986a_hp_automute )
> > >
> > > Hmm, the code logic looks correct to me. If HP jack is present, the
> > > internal speaker should be muted. Otherwise it follows the state of
> > > HP jack (muted/unmuted, that acts as a master switch).
> > >
> >
> > Well - in the default mode the jack is present and the internal speakers are permanently
> > muted until I plug in a set of headphones no matter how I toggle the speaker mute in the mixer.
> >
> > With headphones plugged in I can mute and unmute the internal speakers in alsa mixer
> >
> >
> > Surely the default cannot be that I have to carry a set of headphones with my
> > laptop all the time ???!!???
> >
> >
> > > Is jack_present set/reset correctly when HP jack is plugged/unplugged
> > > at all? Or, the pin NID is swapped, or any other reason?
> > >
> >
> > I sprinkled some printk's in the driver :
> > On entry to ad1986a_update_hp : plugging headphones into jack : spec->jack_present = 0
> > removing headphones from jack : spec->jack_present = 1
>
> This implies rather that the jack detection itself is reversed from
> the standard. Could you try the patch below?
>
>
> thanks,
>
> Takashi
>
It works -
peter
prev parent reply other threads:[~2007-10-17 14:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-15 2:53 1.0.15rc3 patch_analog.s bug + fix Peter Skensved
2007-10-15 11:29 ` Takashi Iwai
2007-10-15 20:34 ` Peter Skensved
2007-10-16 7:39 ` Vasily Khoruzhick
2007-10-16 11:25 ` Takashi Iwai
2007-10-16 18:30 ` Vasily Khoruzhick
2007-10-17 7:34 ` Takashi Iwai
2007-10-17 16:10 ` Василий
2007-10-17 15:43 ` Takashi Iwai
2007-10-16 7:58 ` Vasily Khoruzhick
2007-10-16 11:32 ` Takashi Iwai
2007-10-16 12:14 ` Ma Begaj
2007-10-16 11:38 ` Takashi Iwai
2007-10-17 14:55 ` Peter Skensved [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=20071017145546.GA23576@jay.phy.queensu.ca \
--to=peter@jay.phy.queensu.ca \
--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.