All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "\"黄文辉\"" <huangwenhuia@uniontech.com>
Cc: "perex" <perex@perex.cz>, "tiwai" <tiwai@suse.com>,
	"jeremy.szu" <jeremy.szu@canonical.com>,
	"hui.wang" <hui.wang@canonical.com>,
	"wse" <wse@tuxedocomputers.com>, "cam" <cam@neo-zeon.de>,
	"kailang" <kailang@realtek.com>,
	"tanureal" <tanureal@opensource.cirrus.com>,
	"sami" <sami@loone.fi>,
	"alsa-devel" <alsa-devel@alsa-project.org>,
	"linux-kernel" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671
Date: Thu, 10 Mar 2022 15:02:59 +0100	[thread overview]
Message-ID: <s5h5yolgb1o.wl-tiwai@suse.de> (raw)
In-Reply-To: <tencent_0D06988048F675F173385A1F@qq.com>

On Thu, 10 Mar 2022 14:58:36 +0100,
黄文辉 wrote:
> 
> Hi  Takashi,
> 
> Thank you for your reply.
> 
> When booting with plugged headset, the headphone will be muted.

The muted state is the default behavior.  Wouldn't it be unmuted if
you adjust the corresponding mixer element?


Takashi

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

WARNING: multiple messages have this Message-ID (diff)
From: Takashi Iwai <tiwai@suse.de>
To: "\"黄文辉\"" <huangwenhuia@uniontech.com>
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: Thu, 10 Mar 2022 15:02:59 +0100	[thread overview]
Message-ID: <s5h5yolgb1o.wl-tiwai@suse.de> (raw)
In-Reply-To: <tencent_0D06988048F675F173385A1F@qq.com>

On Thu, 10 Mar 2022 14:58:36 +0100,
黄文辉 wrote:
> 
> Hi  Takashi,
> 
> Thank you for your reply.
> 
> When booting with plugged headset, the headphone will be muted.

The muted state is the default behavior.  Wouldn't it be unmuted if
you adjust the corresponding mixer element?


Takashi

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

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

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-10 13:03 [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671 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 [this message]
2022-03-10 14:02       ` Takashi Iwai
2022-03-11  1:20 huangwenhui
2022-03-11  8:30 ` Takashi Iwai
2022-03-11  8:30   ` Takashi Iwai
2022-03-11  8:51   ` huangwenhui
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-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

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=s5h5yolgb1o.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=cam@neo-zeon.de \
    --cc=huangwenhuia@uniontech.com \
    --cc=hui.wang@canonical.com \
    --cc=jeremy.szu@canonical.com \
    --cc=kailang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=sami@loone.fi \
    --cc=tanureal@opensource.cirrus.com \
    --cc=tiwai@suse.com \
    --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.