From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A717C433F5 for ; Fri, 11 Mar 2022 08:31:53 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AC4B11845; Fri, 11 Mar 2022 09:31:00 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AC4B11845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1646987510; bh=L+96nSdfyhlOe1Ls62aQL/baNKdlBJzs9a1pW3RT1bc=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=pOEOsLdrW32gkvs/kq5MkZRpY7bI4u3QhXoJgkH/I+4vX4+av+IXgYMywshD95iAI Ge+j69/NVvD37seNDlVoV7qs1sKoj4g/JUP1y8iFy7rCBiTls7ZnTdUdbzX4x+GRQY yS3NbiHRf5eJXBGFFi3GHpHU1pSILJAPX/exjFBQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 42C1CF801D8; Fri, 11 Mar 2022 09:31:00 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 699E3F80227; Fri, 11 Mar 2022 09:30:58 +0100 (CET) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 768CFF800D2 for ; Fri, 11 Mar 2022 09:30:50 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 768CFF800D2 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="VN+qHiXE"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="hYQytmMr" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 2B7E41F441; Fri, 11 Mar 2022 08:30:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646987450; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dzGcwM7v+f34q9OHR146SuStt4YJu5AWHYm6yTSEKbU=; b=VN+qHiXECN9MeWHI6qSXge+yel8gPdwl2Vp8yAg/VuNjvwOdqDdSepXjm9VAgjlgEg2/XV whFUy28AcFcgi8Or3j1P/VBicHdar4zDrEq2C+nE/8YkdNTcpYtNGfMI2QQVEcR3+Jfl19 nMS23lpKQCBdCI9JHkkBcSv99h1E4VA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646987450; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=dzGcwM7v+f34q9OHR146SuStt4YJu5AWHYm6yTSEKbU=; b=hYQytmMrUrlQ/l8hINoIKeISYAqXeTfzMjJZc1EwUnqwjrKQOgjSwI/p46vgpzEUcSdlzM 8113T2KyKJ4nRXBQ== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 77DECA3B93; Fri, 11 Mar 2022 08:30:49 +0000 (UTC) Date: Fri, 11 Mar 2022 09:30:49 +0100 Message-ID: From: Takashi Iwai To: "huangwenhui" Subject: Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP machine with alc671 In-Reply-To: References: User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: alsa-devel , kailang , tanureal , "jeremy.szu" , linux-kernel , tiwai , wse , "hui.wang" , sami , cam X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Fri, 11 Mar 2022 02:20:42 +0100, huangwenhui wrote: > > Hi Takashi, > > if adjusting the mixer element or replugging the headset, the headphone would > be unmuted. > But most users hope that the default state is unmuted. > 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. Also, the sound server like PulseAudio or pipewire does unmute automatically. If this doesn't work as expected, that's a more problem to diagnose. Takashi > > Thanks. > > ------------------ Original ------------------ > From: "Takashi Iwai"; > Date: Thu, Mar 10, 2022 10:03 PM > To: "黄文辉"; > Cc: "perex"; "tiwai"; "jeremy.szu" > ; "hui.wang"; "wse" > ; "cam"; "kailang" > ; "tanureal"; "sami" > ; "alsa-devel"; "linux-kernel" > ; > Subject: Re: [PATCH] ALSA: hda/realtek - Fix headset mic problem for a HP > machine with alc671 > > On Thu, 10 Mar 2022 14:58:36 +0100, > huangwenhui 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"; > > Date: Thu, Mar 10, 2022 09:29 PM > > To: "huangwenhui"; > > Cc: "perex"; "tiwai"; "jeremy.szu" > > ; "hui.wang"; "wse" > > ; "cam"; "kailang" > > ; "tanureal"; "sami" > > ; "alsa-devel"; "linux-kernel" > > ; > > 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 > > > > 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 > > > > > >