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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCDE8C433F5 for ; Tue, 12 Oct 2021 12:11:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF5FE60462 for ; Tue, 12 Oct 2021 12:11:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236282AbhJLMNV (ORCPT ); Tue, 12 Oct 2021 08:13:21 -0400 Received: from smtp-out2.suse.de ([195.135.220.29]:34870 "EHLO smtp-out2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236337AbhJLMNN (ORCPT ); Tue, 12 Oct 2021 08:13:13 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 9D0362008B; Tue, 12 Oct 2021 12:11:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634040668; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ykHv3j1Qd5l/6dD95/S3jdQeqZ5tnVUcjlF+EGxWNJA=; b=AZPlqrNb7XGH981tKKPeSNh0ZWYtgFITfXgXFycrvZ3Ck9VT2PjIy3odkkZRckMZpQiIK1 odT1SxdqOjqhFzN6gI80f/1WbDBbYHii82u7MzRXZhr9vRV9njidzRyvtMlpGe+lvx2JQS gqXDVjcfrn06UB/lDQ/aEycJIWcdn0s= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634040668; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ykHv3j1Qd5l/6dD95/S3jdQeqZ5tnVUcjlF+EGxWNJA=; b=61M1BtI17pjyuugZLYyQUwBuTI7xnZxleTp2GbjMRvIgPr4YD/aWPv02KpuL5SB5qNG1Xe 0UR8pm9S+kXCFnBg== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 8C1D9A3B81; Tue, 12 Oct 2021 12:11:08 +0000 (UTC) Date: Tue, 12 Oct 2021 14:11:08 +0200 Message-ID: From: Takashi Iwai To: Hui Wang Cc: alsa-devel@alsa-project.org, stable@vger.kernel.org, msd.mmq@gmail.com Subject: Re: [PATCH] ALSA: hda/realtek: Fix the mic type detection issue for ASUS G551JW In-Reply-To: <20211012114748.5238-1-hui.wang@canonical.com> References: <20211012114748.5238-1-hui.wang@canonical.com> 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=US-ASCII Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, 12 Oct 2021 13:47:48 +0200, Hui Wang wrote: > > We need to define the codec pin 0x1b to be the mic, but somehow > the mic doesn't support hot plugging detection, and Windows also has > this issue, so we set it to phantom headset-mic. > > Also the determine_headset_type() often returns the omtp type by a > mistake when we plug a ctia headset, this makes the mic can't record > sound at all. Because most of the headset are ctia type nowadays and > some machines have the fixed ctia type audio jack, it is possible this > machine has the fixed ctia jack too. Here we set this mic jack to > fixed ctia type, this could avoid the mic type detection mistake and > make the ctia headset work stable. > > BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214537 > Reported-and-tested-by: msd > Cc: > Signed-off-by: Hui Wang Thanks, applied. Takashi