Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2466758yba; Mon, 15 Apr 2019 12:14:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxeNIhA0zXE1oweWVoWsscj+Np+BAaKWjTk3X5UsXP3GwLT7qkFlWMUPCQMEED+MKEt10Gi X-Received: by 2002:a17:902:102a:: with SMTP id b39mr42475677pla.188.1555355663234; Mon, 15 Apr 2019 12:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555355663; cv=none; d=google.com; s=arc-20160816; b=v0GlKKu5rWJsVmMy0OsMnPyB5CRd/QIK7WJfDou99b+CIHHZgqdK1GhAjgSRWAtvIQ sT5fXBRf0PbrZvcl8lx9p/BLonKBEDXWoOz2vCco8AZFrQJ4Tr75CUBo4sqS+lc29Chj YnwNQQ4q+FpgwNzBGRyCnIUT0BvsL6jCyUR2FmMla0wFqmFjAyPiGx6wmG/3NC9TjgA1 RbX/YyDz3/bBbedw3QNxkxaWOY1ld4K/S+KpusVEU7O+bv7UKZaTRqZi/Q+YSbwVdb4/ sGWHucuNAB4t6oM19EO/yx1HrS8rb7M03pwGfaZA/FjOOM7lnoZClNZIgsjVUk7SXCZ1 2XbQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZnM0lOmItUhB2Vefn87/7k1+yfLEEBhrV7CnSUNJIew=; b=olvr6VX4LhnEgmYFgGZdcJcwL2xjShZGT5DNrRM0doS6K+jN+0uSl5LYzGHhIt6DoA SDK4C7uhxs1VlkEs/Tgr7c/xxfmqz1upmVLOTJxCcSptYupQs497ur5fUlJdeG3RAjwJ 2vYyB6LFGHkojjb0WTby/7inogRXastEc5cotaDa/p3m8gcwyJl27QEq809KmiXQ2ymG JU/QEkMMpHMFnOzA/+lN7qy0hNGXcKbihfpNjEH5P3dvKwvUwpbD5YVGekCFeFigIsI+ g9JY34dDJfbPH6q55aeufwsVzYxMjdWrN2f429ASu3kkNzRg9p5TbmJ97gMVMMRhuuOv sGVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ywFrGIrz; 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 n69si13851151pfb.256.2019.04.15.12.14.07; Mon, 15 Apr 2019 12:14:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b=ywFrGIrz; 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 S1731245AbfDOTLd (ORCPT + 99 others); Mon, 15 Apr 2019 15:11:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:48498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730727AbfDOTLc (ORCPT ); Mon, 15 Apr 2019 15:11:32 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7154620880; Mon, 15 Apr 2019 19:11:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555355490; bh=xM3lO0D/WMjPUUXa5Kb+MEXDxyEQ3e930JfPQ5fvUxc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ywFrGIrzZWDYfG3ZzaIhpql/z6swFGXmouu72oOKyIzbZVmzyKimonJSNwM0Ulm9y cQw8farzBB99Um8BylJ3ImQ8p4EWcWG2G8tTuf7qY1LiDnJgzdPRT7gAMy2PQurGU0 4V63248w5rIgX7JTd0gMjbnD6CwOOsJg2ISkHF98= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Richard Sailer , Takashi Iwai Subject: [PATCH 5.0 055/117] ALSA: hda/realtek - Add quirk for Tuxedo XC 1509 Date: Mon, 15 Apr 2019 21:00:25 +0200 Message-Id: <20190415183747.736640032@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190415183744.887851196@linuxfoundation.org> References: <20190415183744.887851196@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Richard Sailer commit 80690a276f444a68a332136d98bfea1c338bc263 upstream. This adds a SND_PCI_QUIRK(...) line for the Tuxedo XC 1509. The Tuxedo XC 1509 and the System76 oryp5 are the same barebone notebooks manufactured by Clevo. To name the fixups both use after the actual underlying hardware, this patch also changes System76_orpy5 to clevo_pb51ed in 2 enum symbols and one function name, matching the other pci_quirk entries which are also named after the device ODM. Fixes: 7f665b1c3283 ("ALSA: hda/realtek - Headset microphone and internal speaker support for System76 oryp5") Signed-off-by: Richard Sailer Cc: Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/pci/hda/patch_realtek.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -1864,8 +1864,8 @@ enum { ALC887_FIXUP_BASS_CHMAP, ALC1220_FIXUP_GB_DUAL_CODECS, ALC1220_FIXUP_CLEVO_P950, - ALC1220_FIXUP_SYSTEM76_ORYP5, - ALC1220_FIXUP_SYSTEM76_ORYP5_PINS, + ALC1220_FIXUP_CLEVO_PB51ED, + ALC1220_FIXUP_CLEVO_PB51ED_PINS, }; static void alc889_fixup_coef(struct hda_codec *codec, @@ -2070,7 +2070,7 @@ static void alc1220_fixup_clevo_p950(str static void alc_fixup_headset_mode_no_hp_mic(struct hda_codec *codec, const struct hda_fixup *fix, int action); -static void alc1220_fixup_system76_oryp5(struct hda_codec *codec, +static void alc1220_fixup_clevo_pb51ed(struct hda_codec *codec, const struct hda_fixup *fix, int action) { @@ -2322,18 +2322,18 @@ static const struct hda_fixup alc882_fix .type = HDA_FIXUP_FUNC, .v.func = alc1220_fixup_clevo_p950, }, - [ALC1220_FIXUP_SYSTEM76_ORYP5] = { + [ALC1220_FIXUP_CLEVO_PB51ED] = { .type = HDA_FIXUP_FUNC, - .v.func = alc1220_fixup_system76_oryp5, + .v.func = alc1220_fixup_clevo_pb51ed, }, - [ALC1220_FIXUP_SYSTEM76_ORYP5_PINS] = { + [ALC1220_FIXUP_CLEVO_PB51ED_PINS] = { .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 = ALC1220_FIXUP_SYSTEM76_ORYP5, + .chain_id = ALC1220_FIXUP_CLEVO_PB51ED, }, }; @@ -2411,8 +2411,9 @@ static const struct snd_pci_quirk alc882 SND_PCI_QUIRK(0x1558, 0x9501, "Clevo P950HR", ALC1220_FIXUP_CLEVO_P950), SND_PCI_QUIRK(0x1558, 0x95e1, "Clevo P95xER", ALC1220_FIXUP_CLEVO_P950), SND_PCI_QUIRK(0x1558, 0x95e2, "Clevo P950ER", ALC1220_FIXUP_CLEVO_P950), - SND_PCI_QUIRK(0x1558, 0x96e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_SYSTEM76_ORYP5_PINS), - SND_PCI_QUIRK(0x1558, 0x97e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_SYSTEM76_ORYP5_PINS), + SND_PCI_QUIRK(0x1558, 0x96e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_CLEVO_PB51ED_PINS), + SND_PCI_QUIRK(0x1558, 0x97e1, "System76 Oryx Pro (oryp5)", ALC1220_FIXUP_CLEVO_PB51ED_PINS), + SND_PCI_QUIRK(0x1558, 0x65d1, "Tuxedo Book XC1509", ALC1220_FIXUP_CLEVO_PB51ED_PINS), SND_PCI_QUIRK_VENDOR(0x1558, "Clevo laptop", ALC882_FIXUP_EAPD), SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_FIXUP_EAPD), SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Y530", ALC882_FIXUP_LENOVO_Y530),