All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaud Patard <apatard@mandriva.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: HDA pin sense and presence detect capability
Date: Wed, 25 Jan 2006 16:50:40 +0100	[thread overview]
Message-ID: <m3fyncpar3.fsf@anduin.mandrakesoft.com> (raw)
In-Reply-To: <s5hu0bsb9du.wl%tiwai@suse.de> (Takashi Iwai's message of "Wed, 25 Jan 2006 16:43:57 +0100")

Takashi Iwai <tiwai@suse.de> writes:

> At Wed, 25 Jan 2006 16:34:22 +0100,
> Arnaud Patard wrote:
>> 
>> Hi,
>> 
>> 
>> On some laptops with HDA codecs, there are different nids for the
>> Headphones and for the built-in speakers. This results in having sound
>> on speakers and on headphones at the same time. imho, the expected
>> behaviour is to have sound only on headphones (without having to play
>> with the mixer).
>> 
>> This can be achieve with the presence detect capability (0x709,0xf09): When
>> plug/unplugging the headphones, one gets an unsollicited responsed and
>> the driver mute the channels.
>> 
>> Is there something to do that in the code or should I go and code it ?
>> Any opinion/comments about that ?
>
> You can find an example of such unsolicited event in
> patch_sigmatel.c.

okay. Thanks. 

About what's done in patch_sigmatel.c : what's the point of disabling
the output ? imho, you only need to mute the nid. 

Also, if there are several users of similar functions and on others chips than
sigmatel, shouldn't it be better to put something in hda_codec.c ?


Regards,
Arnaud

>
>
> Takashi



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642

  reply	other threads:[~2006-01-25 15:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-25 15:34 HDA pin sense and presence detect capability Arnaud Patard
2006-01-25 15:43 ` Takashi Iwai
2006-01-25 15:50   ` Arnaud Patard [this message]
2006-01-25 16:01     ` Takashi Iwai
2006-01-25 16:08     ` Matt Porter
2006-01-25 16:57       ` Arnaud Patard
2006-01-25 17:14         ` Matt Porter
2006-01-25 17:32           ` Arnaud Patard

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=m3fyncpar3.fsf@anduin.mandrakesoft.com \
    --to=apatard@mandriva.com \
    --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.