From: David Henningsson <david.henningsson@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: [PATCH 2/5] ALSA: hda - More generic auto-mic switching for Realtek codecs
Date: Fri, 30 Nov 2012 08:54:43 +0100 [thread overview]
Message-ID: <50B86643.4010900@canonical.com> (raw)
In-Reply-To: <s5hboef4l17.wl%tiwai@suse.de>
On 11/30/2012 08:17 AM, Takashi Iwai wrote:
> At Fri, 30 Nov 2012 01:11:51 +0100,
> David Henningsson wrote:
>>
>> On 11/29/2012 04:21 PM, Takashi Iwai wrote:
>>> Instead of limiting the automatic input-source selection only to the
>>> mics (internal, external and dock mics), allow it for generic inputs,
>>> e.g. switching between the rear line-in and the front mic.
>>>
>>> It's been a frequent demand from desktop machines, and we already do
>>> it for the headphone auto-mute, so no reason to avoid it now.
>>>
>>> The logic is to check the attribute and location of input pins, and
>>> enable the automatic selection feature only if all such pins are in
>>> different locations (e.g. internal, front, rear, etc) and line-in or
>>> mic pins. That is, if multiple input pins are assigned to a single
>>> location, the feature isn't enabled because we don't know the
>>> priority.
>>
>> Hmm, I'm a bit worried about this, partially because it makes things
>> inconsistent between codecs (and kernel versions, too).
>
> The behavior change is an open question, yes.
> If we'd like to be conservative, auto_mic can be set to 0 except for
> non-laptop cases.
I'm not sure which one is better, really. If Windows/Mac does it in a
specific way then maybe people are used to that and want it to work that
way with Linux too. Maybe I should ask some design people about it...
>> In current PulseAudio, we disable the internal mic if any other mic is
>> being detected as plugged in.
>> But if there are other switches, say "front mic" and "rear mic", we
>> don't do such disabling. Now you're disabling one of them automatically
>> in the kernel, but for one codec only.
>
> Porting this to other codecs shouldn't be too hard.
>
>> So my point is, when both "Front mic" and "Rear mic" are plugged in, we
>> don't know whether to present to the user to choose between "Front Mic"
>> and "Rear Mic", or to disable one of them.
>
> The input is exclusive, so one of them is chosen. It's the front one.
Right, but this goes only for Realtek (given the current set of patches).
But thinking some more about it, I guess we could implement the same
priority order in PulseAudio, so that the mic will autoswitch regardless
of codec. That would ensure a consistent experience between codecs, and
would be easier (and better) than trying to detect if the current codec
is a Realtek or not.
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
next prev parent reply other threads:[~2012-11-30 7:54 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 15:21 [PATCH 0/5] Realtek auto-mic enhancements / cleanups Takashi Iwai
2012-11-29 15:21 ` [PATCH 1/5] ALSA: hda - Rearrange INPUT_PIN_ATTR_* Takashi Iwai
2012-11-29 23:54 ` David Henningsson
2012-11-30 7:03 ` Takashi Iwai
2012-11-30 7:31 ` David Henningsson
2012-11-29 15:21 ` [PATCH 2/5] ALSA: hda - More generic auto-mic switching for Realtek codecs Takashi Iwai
2012-11-30 0:11 ` David Henningsson
2012-11-30 7:17 ` Takashi Iwai
2012-11-30 7:54 ` David Henningsson [this message]
2012-12-02 1:55 ` Raymond Yau
2012-12-03 8:52 ` Takashi Iwai
2012-12-03 10:55 ` Takashi Iwai
2012-11-29 15:21 ` [PATCH 3/5] ALSA: hda - Use standard sort function in hda_auto_parser.c Takashi Iwai
2012-11-29 15:21 ` [PATCH 4/5] ALSA: hda - Implement shared front mic/hp jack for HP Z220 Takashi Iwai
2012-11-30 0:33 ` David Henningsson
2012-11-30 7:57 ` Takashi Iwai
2012-11-30 8:46 ` David Henningsson
2012-11-30 9:39 ` Takashi Iwai
2012-11-30 10:12 ` Takashi Iwai
2012-12-03 13:43 ` David Henningsson
2012-12-03 14:07 ` Takashi Iwai
2012-12-03 14:47 ` David Henningsson
2012-12-03 15:04 ` Takashi Iwai
2012-12-04 13:11 ` David Henningsson
2012-12-04 13:45 ` Takashi Iwai
2012-12-04 2:48 ` Raymond Yau
2012-11-30 7:21 ` Raymond Yau
2012-11-30 7:59 ` Takashi Iwai
2012-12-05 8:20 ` Raymond Yau
2012-12-05 8:27 ` Takashi Iwai
2012-11-29 15:21 ` [PATCH 5/5] ALSA: hda - Refactor alc_kcontrol_new() usages Takashi Iwai
2012-11-30 8:15 ` [PATCH 0/5] More patches for Relatek auto-mic things Takashi Iwai
2012-11-30 8:15 ` [PATCH 1/5] ALSA: hda - Create Capture Source enum even for auto-mic mode Takashi Iwai
2012-11-30 8:16 ` [PATCH 2/5] ALSA: hda - Add Auto-Mic Mode enum to Realtek codecs Takashi Iwai
2012-11-30 8:16 ` [PATCH 3/5] ALSA: hda - Disable auto-mic as default for non-laptop machines Takashi Iwai
2012-11-30 8:16 ` [PATCH 4/5] ALSA: hda - Pass errors properly in alc_auto_check_switches() Takashi Iwai
2012-11-30 8:16 ` [PATCH 5/5] ALSA: hda - Activate Capture Source selection only when auto_mic=0 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=50B86643.4010900@canonical.com \
--to=david.henningsson@canonical.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.