Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2460465ybk; Mon, 11 May 2020 23:18:34 -0700 (PDT) X-Google-Smtp-Source: APiQypI2o5Fqhatg4LHWcSXpkW5Wrs7HjNd/FMAtu9cRABcEEELSzZQceT5oPIk6fP0/pOicBAUg X-Received: by 2002:a05:6402:30ad:: with SMTP id df13mr16629000edb.339.1589264314196; Mon, 11 May 2020 23:18:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589264314; cv=none; d=google.com; s=arc-20160816; b=VaUenHtkjiblvyyZ0FzbpTnyWDlsNQ5t5EIWxcYIfyLf/eR3boOCzy6T1BJBArMLL9 iQNOrPQ7wVBgdaU/LoKVudNlY4KM6rjsZ74zBRROT8qGqWZhpOt+i6ldnJCZo8sZWrt5 9bEJHk1T/T7o1+TlgE5whhNn/fGbYT87Z4yxa+fmM4M2Q7aZO5U24XLE6otFlyjukdYi 9RLB3nF1mRE/UOvY6jCU6j9l4F15ibnu1l84CmzFYmUbe+z/k6aWBcvHFKNKPhZZaVLS 8xwLvHcSo2mYybAKZ7v1IqBEtAS3m67qChsxKy/dDidAIXllrBWC2XrAPvMI3SN9BuQx 6arA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=BM7WTJ+qHi8yY8b7KAWbv88JG8UJulCC8C6JMceeobc=; b=kHaDXoEIaksWhB5h0TtXx9yfX8sTV7aWhwxa1/HxRoQEe5mIAuJrybMXhG3DgInbt1 YJUMD8vxcfxpdZz0X/XzPouwN8mY1l+ouxUbFakV3a0kaEZxnFYNR6NY1c5V8z3VZogO uUd6ZN52HSmrgRcd9+MSi9zK3rQ6E9kECSHMwlltLceTlZLMXdgDHHoIYqFgLJBwraoZ w9YmRTT57bANHdixm8SWWCGmOrwu9xNf5NpJ9KkKN7DUSPCwz+5dZCRS5NJ7pWMwHzje wWGqaUIzc0brN/G7faVo1l+7oM3pjSx8zMCmH/RR+dJ8kNpaM/R8SrRpGKkY1qX/uC5V nwcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=OnGZ+FXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si7736373edv.216.2020.05.11.23.18.11; Mon, 11 May 2020 23:18:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@endlessm-com.20150623.gappssmtp.com header.s=20150623 header.b=OnGZ+FXc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728073AbgELGQd (ORCPT + 99 others); Tue, 12 May 2020 02:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725536AbgELGQb (ORCPT ); Tue, 12 May 2020 02:16:31 -0400 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C36AFC061A0C for ; Mon, 11 May 2020 23:16:31 -0700 (PDT) Received: by mail-pl1-x643.google.com with SMTP id m7so4948653plt.5 for ; Mon, 11 May 2020 23:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=endlessm-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BM7WTJ+qHi8yY8b7KAWbv88JG8UJulCC8C6JMceeobc=; b=OnGZ+FXckmCHP2iepPXFweAerr9YMNBlumuTJaRywQvBwbdOtLbtj0PPEACD6JWAs6 vVXEBeHISJxaMuaExta6ea+wem+0QLiTV2CwpegD8snEpn3t8O67B0g+FLWuToNrGzvj 7RSZomgqFPsshdznuwTfbqlUe+nh5/vEk6fTjOKVrCGxwBmc4FS1aALzByLaLaLFqEKY CY4BaS7T4BSwm//cL3yi/R5njWkny+i17MJtmwgVbHflewTa3N3LspbacGRvhGUdtnY3 USidUjuMHhcNPeF9a2tLOKucWnzfb0F7FDHwTXvg8UhBnbXtGPLLC84aASK4jsv/z1Hy j2qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BM7WTJ+qHi8yY8b7KAWbv88JG8UJulCC8C6JMceeobc=; b=bcFqaQZVtqbaP+i8m+h5otjxo+E9pysqvQX/aYwdp+oRWQuZG//UB8n8yUeQaPv36o KcWy6xqRZ+496jxQGrUJWy7Udz6dH3BGTto4mDEoBvrzmU/I68ERsahpyOWHeVLcam49 BVI/AkjDfhnOkZtj3o2UlMXGiw4b9PhUBB0KmeEphW2CrkH8iGNSfEXQQ+h5XxbiznRF p2WDdY4rFbBM4lo0jMX5WqtAuIq5a6baUht9aIzis5V4IwNdcrcJw2yqXCFIUoQ4cFBZ YEA2fTSKclsbtb+A55NEROf10oZ/G3LPH2VBd9vxCUGVlyBAkJLSTywl2piFRuPP38Qc ESPg== X-Gm-Message-State: AGi0PuadSlg0AN5UYUn7Bix0wsXU62H9kaFm39WnwXMgbbNTo+gvAnwX 1863IlG6WpmMoHQPy5GQEVomuw== X-Received: by 2002:a17:90a:2fc8:: with SMTP id n8mr27720360pjm.159.1589264191146; Mon, 11 May 2020 23:16:31 -0700 (PDT) Received: from starnight.localdomain (123-204-46-122.static.seed.net.tw. [123.204.46.122]) by smtp.googlemail.com with ESMTPSA id m14sm9660554pgk.56.2020.05.11.23.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2020 23:16:30 -0700 (PDT) From: Jian-Hong Pan To: Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, linux@endlessm.com, Chris Chiu , Daniel Drake , Jian-Hong Pan Subject: [PATCH 1/3] ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295 Date: Tue, 12 May 2020 14:15:24 +0800 Message-Id: <20200512061525.133985-1-jian-hong@endlessm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Chiu The ASUS laptop GL503VM with ALC295 can't detect the headset microphone. The headset microphone does not work until pin 0x19 is enabled for it. Signed-off-by: Chris Chiu Signed-off-by: Daniel Drake Signed-off-by: Jian-Hong Pan --- sound/pci/hda/patch_realtek.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index c16f63957c5a..6c996df16201 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6083,6 +6083,7 @@ enum { ALC285_FIXUP_HP_GPIO_LED, ALC285_FIXUP_HP_MUTE_LED, ALC236_FIXUP_HP_MUTE_LED, + ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, }; static const struct hda_fixup alc269_fixups[] = { @@ -7216,6 +7217,15 @@ static const struct hda_fixup alc269_fixups[] = { .type = HDA_FIXUP_FUNC, .v.func = alc236_fixup_hp_mute_led, }, + [ALC295_FIXUP_ASUS_MIC_NO_PRESENCE] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ + { } + }, + .chained = true, + .chain_id = ALC269_FIXUP_HEADSET_MODE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -7993,6 +8003,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { {0x12, 0x90a60130}, {0x17, 0x90170110}, {0x21, 0x03211020}), + SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x03211020}), SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, {0x14, 0x90170110}, {0x21, 0x04211020}), -- 2.26.2