Received: by 10.213.65.68 with SMTP id h4csp248207imn; Fri, 23 Mar 2018 03:53:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELtkm9P5LoJOT5el786BimzEuyypHJMqJaDW7SMwGcY8FzcywJNmk8nVtn2/G+q/8Ty0O3uH X-Received: by 2002:a17:902:5066:: with SMTP id f35-v6mr29118535plh.14.1521802418473; Fri, 23 Mar 2018 03:53:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521802418; cv=none; d=google.com; s=arc-20160816; b=b6lbzzQwsam4maS4miKUhySFNH9UDea/s6VlCGUvtAx8oBeVGOFdeLIvaZKczaGiHc OM1broN1gs6QxAxSGqEtWeb28NmEF1pfb2IE0nRNkxBVi6Ok0wOqg4VHzgoEkxx+f2yV vkcQXe93ipiiHB70YKN9gh/2nK4XQA43RLHnVgy8GSPs4v8AvZIeZCXXkcG/O+mbqftG kpFHoGicCXz2I6k6NhNV9Z4g2U4e+bKyjqURmhfkHESG9ORsQhJ6pRPzPt/yV7KNY2VD huRbPYA7+at1fyioSTzlgui0NQU/zFjdpxcqcKFETyH6/IkLUTmIWCp1JyJahngion5J eEwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=1fGt8G6xCr8JpU9PddLVcuRaTiIRSKqJESt3pyZFyGw=; b=sd686jLB7r5dBXGz9skCUUtEHhWZoZqjLq6n32xxss4gvkg0CGnj3d15dqCYiDt1S3 Xeg/RMVOJ6YbCO+HPwRqrdfM+Bu3/IKqTRC4BUJNrmlvH9ztOWzSLDelLDfrFxnvB/f3 4Tx8WlcjY/VN2tJqaZ02Vww4qunCeHl8UkJeZy0CzKM4UBJs5Uq/AwQlH81/gzcD7BOO 6M+JHHIERBXnr8WfuGw0ZNXm0Ft0jgCQfXfYVRULsGE85R4JOieIB23OGNe2zFB7KDMz C+IlVyjUQ3Stj4507m0AVFM0tzSrk5y1y/pVubyt+Ja2kGu5yMeskSs0NKldzhpeaTfh W0/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w2-v6si8618593plk.702.2018.03.23.03.53.24; Fri, 23 Mar 2018 03:53:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755347AbeCWKwX (ORCPT + 99 others); Fri, 23 Mar 2018 06:52:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45048 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755968AbeCWKOE (ORCPT ); Fri, 23 Mar 2018 06:14:04 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4318D1224; Fri, 23 Mar 2018 10:14:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikhail Paulyshka , Takashi Iwai , Sasha Levin Subject: [PATCH 4.4 30/97] ALSA: hda - Fix headset microphone detection for ASUS N551 and N751 Date: Fri, 23 Mar 2018 10:54:17 +0100 Message-Id: <20180323094159.325224861@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180323094157.535925724@linuxfoundation.org> References: <20180323094157.535925724@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mikhail Paulyshka [ Upstream commit fc7438b1eb12b6c93d7b7a62423779eb5dfc673c ] Headset microphone does not work out of the box on ASUS Nx51 laptops. This patch fixes it. Patch tested on Asus N551 laptop. Asus N751 part is not tested, but according to [1] this laptop uses the same audiosystem. 1. https://bugzilla.kernel.org/show_bug.cgi?id=117781 Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195437 Signed-off-by: Mikhail Paulyshka Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -6717,6 +6717,7 @@ enum { ALC668_FIXUP_DELL_DISABLE_AAMIX, ALC668_FIXUP_DELL_XPS13, ALC662_FIXUP_ASUS_Nx50, + ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, ALC668_FIXUP_ASUS_Nx51, }; @@ -6964,14 +6965,21 @@ static const struct hda_fixup alc662_fix .chained = true, .chain_id = ALC662_FIXUP_BASS_1A }, + [ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc_fixup_headset_mode_alc668, + .chain_id = ALC662_FIXUP_BASS_CHMAP + }, [ALC668_FIXUP_ASUS_Nx51] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { - {0x1a, 0x90170151}, /* bass speaker */ + { 0x19, 0x03a1913d }, /* use as headphone mic, without its own jack detect */ + { 0x1a, 0x90170151 }, /* bass speaker */ + { 0x1b, 0x03a1113c }, /* use as headset mic, without its own jack detect */ {} }, .chained = true, - .chain_id = ALC662_FIXUP_BASS_CHMAP, + .chain_id = ALC668_FIXUP_ASUS_Nx51_HEADSET_MODE, }, };