All of lore.kernel.org
 help / color / mirror / Atom feed
From: huangwenhui <huangwenhuia@uniontech.com>
To: "Takashi Iwai" <tiwai@suse.de>
Cc: alsa-devel <alsa-devel@alsa-project.org>,
	kailang <kailang@realtek.com>,
	tanureal <tanureal@opensource.cirrus.com>,
	"jeremy.szu" <jeremy.szu@canonical.com>,
	linux-kernel <linux-kernel@vger.kernel.org>,
	tiwai <tiwai@suse.com>, wse <wse@tuxedocomputers.com>,
	"hui.wang" <hui.wang@canonical.com>, sami <sami@loone.fi>,
	cam <cam@neo-zeon.de>
Subject: Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671
Date: Fri, 11 Mar 2022 16:51:38 +0800	[thread overview]
Message-ID: <tencent_1FFDCEAB776DE8D712987685@qq.com> (raw)
In-Reply-To: <s5ho82cevra.wl-tiwai@suse.de>

I will modify the patch and commit again.


Thanks.
&nbsp;
&nbsp;
------------------&nbsp;Original&nbsp;------------------
From: &nbsp;"Takashi&nbsp;Iwai"<tiwai@suse.de&gt;;
Date: &nbsp;Fri, Mar 11, 2022 04:30 PM
To: &nbsp;"huangwenhui"<huangwenhuia@uniontech.com&gt;; 
Cc: &nbsp;"perex"<perex@perex.cz&gt;; "tiwai"<tiwai@suse.com&gt;; "jeremy.szu"<jeremy.szu@canonical.com&gt;; "hui.wang"<hui.wang@canonical.com&gt;; "wse"<wse@tuxedocomputers.com&gt;; "cam"<cam@neo-zeon.de&gt;; "kailang"<kailang@realtek.com&gt;; "tanureal"<tanureal@opensource.cirrus.com&gt;; "sami"<sami@loone.fi&gt;; "alsa-devel"<alsa-devel@alsa-project.org&gt;; "linux-kernel"<linux-kernel@vger.kernel.org&gt;; 
Subject: &nbsp;Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671

&nbsp;

On Fri, 11 Mar 2022 02:20:42 +0100,
huangwenhui wrote:
&gt; 
&gt; Hi&nbsp; Takashi,
&gt; 
&gt; if adjusting the mixer element or replugging the headset, the headphone would
&gt; be unmuted.
&gt; But most users hope that the default state is unmuted.
&gt; Should this unconditional unmute be required?

It's the standard behavior for most of ALSA drivers.

The initial mute state is rather controlled via alsactl, restoring the
previous state.&nbsp; Also, the sound server like PulseAudio or pipewire
does unmute automatically.&nbsp; If this doesn't work as expected, that's a
more problem to diagnose.


Takashi

&gt; 
&gt; Thanks.
&gt; 
&gt; ------------------ Original ------------------
&gt; From:&nbsp; "Takashi Iwai"<tiwai@suse.de&gt;;
&gt; Date:&nbsp; Thu, Mar 10, 2022 10:03 PM
&gt; To:&nbsp; "huangwenhui"<huangwenhuia@uniontech.com&gt;;
&gt; Cc:&nbsp; "perex"<perex@perex.cz&gt;; "tiwai"<tiwai@suse.com&gt;; "jeremy.szu"
&gt; <jeremy.szu@canonical.com&gt;; "hui.wang"<hui.wang@canonical.com&gt;; "wse"
&gt; <wse@tuxedocomputers.com&gt;; "cam"<cam@neo-zeon.de&gt;; "kailang"
&gt; <kailang@realtek.com&gt;; "tanureal"<tanureal@opensource.cirrus.com&gt;; "sami"
&gt; <sami@loone.fi&gt;; "alsa-devel"<alsa-devel@alsa-project.org&gt;; "linux-kernel"
&gt; <linux-kernel@vger.kernel.org&gt;;
&gt; Subject:&nbsp; Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP
&gt; machine with alc671
&gt;&nbsp; 
&gt; On Thu, 10 Mar 2022 14:58:36 +0100,
&gt; huangwenhui wrote:
&gt; &gt;
&gt; &gt; Hi&nbsp; Takashi,
&gt; &gt;
&gt; &gt; Thank you for your reply.
&gt; &gt;
&gt; &gt; When booting with plugged headset, the headphone will be muted.
&gt; 
&gt; The muted state is the default behavior.&nbsp; Wouldn't it be unmuted if
&gt; you adjust the corresponding mixer element?
&gt; 
&gt; Takashi
&gt; 
&gt; &gt;
&gt; &gt; Thanks.
&gt; &gt; 
&gt; &gt; ------------------ Original ------------------
&gt; &gt; From:&nbsp; "Takashi Iwai"<tiwai@suse.de&gt;;
&gt; &gt; Date:&nbsp; Thu, Mar 10, 2022 09:29 PM
&gt; &gt; To:&nbsp; "huangwenhui"<huangwenhuia@uniontech.com&gt;;
&gt; &gt; Cc:&nbsp; "perex"<perex@perex.cz&gt;; "tiwai"<tiwai@suse.com&gt;; "jeremy.szu"
&gt; &gt; <jeremy.szu@canonical.com&gt;; "hui.wang"<hui.wang@canonical.com&gt;; "wse"
&gt; &gt; <wse@tuxedocomputers.com&gt;; "cam"<cam@neo-zeon.de&gt;; "kailang"
&gt; &gt; <kailang@realtek.com&gt;; "tanureal"<tanureal@opensource.cirrus.com&gt;; "sami"
&gt; &gt; <sami@loone.fi&gt;; "alsa-devel"<alsa-devel@alsa-project.org&gt;; "linux-kernel"
&gt; &gt; <linux-kernel@vger.kernel.org&gt;;
&gt; &gt; Subject:&nbsp; Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP
&gt; &gt; machine with alc671
&gt; &gt; 
&gt; &gt; On Thu, 10 Mar 2022 14:03:01 +0100,
&gt; &gt; huangwenhui wrote:
&gt; &gt; &gt;
&gt; &gt; &gt; On a HP 288 Pro G8, the front Mic could not be detected.
&gt; &gt; &gt;
&gt; &gt; &gt; Signed-off-by: huangwenhui <huangwenhuia@uniontech.com&gt;
&gt; &gt;
&gt; &gt; Thanks for the patch.&nbsp; Most of the changes look OK, but one thing I
&gt; &gt; still don't get:
&gt; &gt;
&gt; &gt; &gt; + case HDA_FIXUP_ACT_INIT:
&gt; &gt; &gt; + alc_write_coef_idx(codec, 0x19, 0xa054);
&gt; &gt; &gt; + msleep(80);
&gt; &gt; &gt; + snd_hda_codec_write(codec, hp_pin, 0,
&gt; &gt; &gt; +&nbsp;&nbsp;&nbsp;&nbsp; AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE);
&gt; &gt;
&gt; &gt; Why this unconditional unmute is required for fixing the mic problem?
&gt; &gt;
&gt; &gt; Takashi
&gt; &gt;
&gt; &gt;
&gt; 
&gt;

  reply	other threads:[~2022-03-14  7:02 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-11  1:20 [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671 huangwenhui
2022-03-11  8:30 ` Takashi Iwai
2022-03-11  8:30   ` Takashi Iwai
2022-03-11  8:51   ` huangwenhui [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-07-12  9:22 Meng Tang
2022-07-12  9:22 ` Meng Tang
2022-07-12  9:31 ` Takashi Iwai
2022-07-12  9:31   ` Takashi Iwai
2022-03-11  9:38 huangwenhui
2022-03-11  9:38 ` huangwenhui
2022-03-11 16:05 ` Takashi Iwai
2022-03-11 16:05   ` Takashi Iwai
2022-03-10 13:03 huangwenhui
2022-03-10 13:03 ` huangwenhui
2022-03-10 13:29 ` Takashi Iwai
2022-03-10 13:29   ` Takashi Iwai
2022-03-10 13:58   ` 黄文辉
2022-03-10 14:02     ` Takashi Iwai
2022-03-10 14:02       ` 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=tencent_1FFDCEAB776DE8D712987685@qq.com \
    --to=huangwenhuia@uniontech.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=cam@neo-zeon.de \
    --cc=hui.wang@canonical.com \
    --cc=jeremy.szu@canonical.com \
    --cc=kailang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sami@loone.fi \
    --cc=tanureal@opensource.cirrus.com \
    --cc=tiwai@suse.com \
    --cc=tiwai@suse.de \
    --cc=wse@tuxedocomputers.com \
    /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.