All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: Raymond Yau <superquad.vortex2@gmail.com>,
	939161@bugs.launchpad.net, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: hda - Remove ignore_misc_bit
Date: Mon, 17 Sep 2012 09:39:01 +0200	[thread overview]
Message-ID: <5056D395.4090603@canonical.com> (raw)
In-Reply-To: <s5h392rhbyu.wl%tiwai@suse.de>

On 09/09/2012 09:50 AM, Takashi Iwai wrote:
> At Sat, 8 Sep 2012 09:10:14 +0800,
> Raymond Yau wrote:
>>
>> 2012-9-7 下午1:26 於 "David Henningsson" <david.henningsson@canonical.com> 寫道:
>>>
>>> The purpose of this flag is unclear. If the problem is that some machines
>>> have broken misc/NO_PRESENCE bits, they should be fixed by pin fixups.
>>>
>>> In addition, this causes jack detection functionality to be flawed on
>>> the M31EI, where there are two jacks without jack detection (which is
>>> properly marked as NO_PRESENCE), but due to ignore_misc_bit, these
>>> jacks are instead being reported as being present but always unplugged.
>>>
>>> BugLink: 	
>>
>> do you mean the commit does not fix the bug?
>>
>> ALSA: hda - add support for Uniwill ECS M31EI notebook
>>
>> This hardware requires same fixup for the node 0x0f like Asus A6Rp.
>> More information: https://bugzilla.redhat.com/show_bug.cgi?id=785417
>>
>> http://git.kernel.org/?p=linux/kernel/git/tiwai/sound.git;a=commit;h=416846d2b31fc740ed9d5a5ec116964fb43c4358

The PCI SSIDs are different, so I don't think that commit will affect 
the bug I was trying to fix.

>> the real cases are those desktop which does not use hda front audio panel ,
>> they just loss the auto mute since there is no jack detect circuit but they
>> can still hear sound from the headphone at anytime

If there is no HDA front panel connected to the motherboard physically, 
the codec should report front headphone and mic as unconnected.

If there is an AC'97 front panel connected, the BIOS should set 
NO_PRESENCE in the misc bit.

If BIOS/HW does not support these simple rules, we need to quirk them.

>> do pulseaudio need a phantom port for the front panel headphone and mic
>> without jack detection ?
>
> Actually this is one good point.
> The jack detection isn't always reliably on such old machines, and
> BIOS cannot know, too.

Can you be a bit more specific about this claim? What machines? How many 
machines? In what way is it unreliable?

 > That is, it has to be adjusted by user
 > manually, whether the jack detection is enabled or not.
>
> So far, we solved this by providing "Auto-Mute Mode" mixer switch.

This is not a proper way to "solve" it - "Auto-Mute mode" as the control 
name says is more closely related to the muting of outputs, than it is 
to the actual jack detection.

Also, "Auto-Mute mode" is 1) only related to outputs and 2) not 
available generically but only for specific codecs.

> But the jack detection controls don't follow this yet.  Maybe we can
> set such a jack control as inactive state when the jack detection is
> disabled.
>
> (And this reminds me that we can cut off "Phantom" name hack by
>   following the same rule -- just set the control inactive when it has
>   no real detection.  But it still appears in control list.)

Looking at the alsa-lib API, this seems doable. It seems possible to 
figure out using snd_hctl_elem_info and then 
snd_ctl_elem_info_is_inactive. If it is also runtime changeable (i e 
depending on some other mixer control), we need a callback to fire on 
the hctl.


-- 
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

  parent reply	other threads:[~2012-09-17  7:39 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-07  5:25 [PATCH] ALSA: hda - Remove ignore_misc_bit David Henningsson
2012-09-07 10:01 ` Takashi Iwai
2012-09-07 11:26   ` David Henningsson
2012-09-07 11:59     ` Takashi Iwai
2012-09-07 12:17       ` David Henningsson
2012-09-07 12:36         ` Takashi Iwai
2012-09-07 12:47           ` David Henningsson
2012-09-07 13:09             ` Takashi Iwai
2012-09-07 14:28               ` David Henningsson
2012-09-07 14:32                 ` Takashi Iwai
2012-09-07 15:39                   ` Tanu Kaskinen
     [not found]             ` <CAN8cciYOMpjXfEpQxYFwTve94rz_LLzJyA=nBdCCdtwOJ5Lnbw@mail.gmail.com>
2012-09-17  8:44               ` Raymond Yau
2012-09-08  1:10 ` Raymond Yau
2012-09-09  7:50   ` Takashi Iwai
2012-09-14  2:10     ` Raymond Yau
2012-09-17  7:39     ` David Henningsson [this message]
2012-09-18  8:26       ` Takashi Iwai
2012-09-18  8:40         ` David Henningsson
2012-09-18  8:58           ` Takashi Iwai
2012-09-19  0:35       ` Raymond Yau
2012-09-25 15:38         ` Raymond Yau
2012-09-19 15:20       ` Raymond Yau

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=5056D395.4090603@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=939161@bugs.launchpad.net \
    --cc=alsa-devel@alsa-project.org \
    --cc=superquad.vortex2@gmail.com \
    --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.