Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp747228pxp; Fri, 11 Mar 2022 14:04:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4NaSKqDKosy6yG/wCerc9k8VA7hD2QCUYUbF4MtHiB6I2yG/hQ9f2L6AJk46hkax5oVNA X-Received: by 2002:a17:902:ef45:b0:151:8302:e0da with SMTP id e5-20020a170902ef4500b001518302e0damr12380036plx.21.1647036275785; Fri, 11 Mar 2022 14:04:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647036275; cv=none; d=google.com; s=arc-20160816; b=NIDrcKSA81s+u8UQM39r12dFXEq2/d2j2/VezPMqLaFYZ0kgr5PGSy/H9zkFHwKzEl umwlkvr40OISAwy3qIFNBsJYKQf0xPsVHf8SicXZp4SdtqlEfHCMQpEwj/hokdpbNNsH F/q+jyaXWl1fSFnw9DutwDiymmgNHfpVY+Dg4PfmhfygnKmxQAKGmcsCZo/rKKKL0C9t Y5cZPA4Usv5XJpbLweTisCFfWzoE836t/6p8HkNDQrpKdB2/Gy/bkefBSGVMbPABoLoa /ny90+VBixdj4sf+16ecpr73Em2FyTRoeYoai9JELR/+tn/yr0z2PLNqG20o0kAoFqqt EZLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:dkim-signature:dkim-signature; bh=dzGcwM7v+f34q9OHR146SuStt4YJu5AWHYm6yTSEKbU=; b=r+V6fan7k16yIQETaRnn8th0ruldjdW862cQtnXDypbHSVicupevkJ4+N5+OHoqpXm yh3MyhzbaET2I1RMQr7M06KFtdNFc3+BZOCtAoU+9ASZq+QI8N6SDomRC2qNDjXdQ8+h tk5esc8E3d6iKB83/lfYA7ZWLMSFJzyJ75N4pbEvIclKFN0Xl207fpusxRlukHzUNcpB y2RNV8UYCCnxeFGpWpLp7bCbPOZkecXAKI3Kdcmb+fNAr7UrQlhK2qo99PHuIOV66qMp SNVUvg98vu8VLXiB0yulRmFZeZ8aATsBrQHXEbLKCYHRavd4lIxHbK0wQuEGkg241kQz XtJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VN+qHiXE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q15-20020a056a00088f00b004f670a1eba4si9896914pfj.0.2022.03.11.14.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 14:04:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=VN+qHiXE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9084D27BC0F; Fri, 11 Mar 2022 13:19:26 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237127AbiCKIb4 (ORCPT + 99 others); Fri, 11 Mar 2022 03:31:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbiCKIby (ORCPT ); Fri, 11 Mar 2022 03:31:54 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93A741B8FF7 for ; Fri, 11 Mar 2022 00:30:51 -0800 (PST) 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" 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 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 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > > >