Received: by 10.213.65.68 with SMTP id h4csp432160imn; Tue, 13 Mar 2018 08:53:09 -0700 (PDT) X-Google-Smtp-Source: AG47ELshHnoILdQJxlMwNeX4ykZVFTBNj+zhlySKcAJchUvwsUEPS3rcxHfWTDNwXrPSXCTlRYRz X-Received: by 2002:a17:902:7d88:: with SMTP id a8-v6mr966126plm.283.1520956389626; Tue, 13 Mar 2018 08:53:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520956389; cv=none; d=google.com; s=arc-20160816; b=m02+llVu97zP9/7i9YIa0SWjRnbVwYcgcLPOU5do3PnrDhLE9Q7X8Ki8TNMhQHU9QE yVyncjjOvaIydFwnRnLHgiVmT0MwESERNGZjsQbqRjwf+FRFXygqWhx+V0ndEugCK+nU j9GeIntB/PmyKZRvTyeBzHwzM/FlsXUzdaRF36z2DcdL7XFMFprEtPRIAXNZioiraxBd HOCCuQunIFfE21ePhHoN/kQMUY+3DCF/Q+l56/TjuHvaOyNKv5ZqtxUiZwZEXgYR40j7 vx2yAXrcekNjef0RZXHbYupnTN17RwUAKt+fC+6tFh61CrZlYuE3F/5s7iACdzoCvzyw M3Cw== 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=YOjl0fm+GRRGKdJojoVqvBGbY3i2KoYpls1GZ4pIkss=; b=G/HEx6E4+1vncYv+vpNDC3OjydBp6kMd2lqIgB5NnOWKTBTYnMjP9ZOsA+rWhxfAEq Lb+WFbulRq46/NnyrNuVfduhTugvF8T+xHCHpaCqHjRm0W5Kbqkg+fOjk3h0Gtp1UOhH iqC5ZiGMrIFbHUyrEa1t2EJ/gf+XEHKaHS71+WxiGzRHVF/ZxxM9fTGz+uC1tXKhkaSS 0vHRrH4IGUKx5+EglW26CAcUX0RtnfMrD7tcfBbjRgfOxUlOCUcpaMl0W/HD9D2usBfe eDaQpmNaERVrSHRiGfwCWVmCS4oJjgwHrxguy2tY8gyKbWndERrC3reckUGpawGCi5+p TUmg== 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 c7si285753pfi.323.2018.03.13.08.52.55; Tue, 13 Mar 2018 08:53:09 -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 S934910AbeCMPvZ (ORCPT + 99 others); Tue, 13 Mar 2018 11:51:25 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35462 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934796AbeCMPju (ORCPT ); Tue, 13 Mar 2018 11:39:50 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D80FDFE5; Tue, 13 Mar 2018 15:39:49 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kailang Yang , Takashi Iwai Subject: [PATCH 4.14 102/140] ALSA: hda/realtek - Add headset mode support for Dell laptop Date: Tue, 13 Mar 2018 16:25:05 +0100 Message-Id: <20180313152505.002561006@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kailang Yang commit ae104a21e52b1f9aab342cf6924405177b720069 upstream. This platform was only one phone Jack. Add dummy lineout verb to fix automute mode disable. This just the workaround. [ More background information: since the platform has only a headphone jack without speaker, the driver doesn't create the auto-mute control. Meanwhile we do update the headset mode via the automute hook in the driver, thus with this setup, the headset won't be updated any longer. By adding a dummy line-out pin here, the auto-mute is added by the driver, and the headset update is triggered properly. Note that this is different from the other ALC274_FIXUP_DELL_AIO_LINEOUT_VERB, which has the real line-out pin, while this quirk adds a dummy line-out pin. -- tiwai ] Signed-off-by: Kailang Yang Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -5340,6 +5340,7 @@ enum { ALC274_FIXUP_DELL_BIND_DACS, ALC274_FIXUP_DELL_AIO_LINEOUT_VERB, ALC298_FIXUP_TPT470_DOCK, + ALC255_FIXUP_DUMMY_LINEOUT_VERB, }; static const struct hda_fixup alc269_fixups[] = { @@ -6187,6 +6188,15 @@ static const struct hda_fixup alc269_fix .chained = true, .chain_id = ALC293_FIXUP_LENOVO_SPK_NOISE }, + [ALC255_FIXUP_DUMMY_LINEOUT_VERB] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { + { 0x14, 0x0201101f }, + { } + }, + .chained = true, + .chain_id = ALC255_FIXUP_DELL1_MIC_NO_PRESENCE + }, }; static const struct snd_pci_quirk alc269_fixup_tbl[] = { @@ -6240,6 +6250,7 @@ static const struct snd_pci_quirk alc269 SND_PCI_QUIRK(0x1028, 0x082a, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE), SND_PCI_QUIRK(0x1028, 0x084b, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB), SND_PCI_QUIRK(0x1028, 0x084e, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB), + SND_PCI_QUIRK(0x1028, 0x0873, "Dell Precision 3930", ALC255_FIXUP_DUMMY_LINEOUT_VERB), SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),