From patchwork Thu Nov 8 17:16:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10674719 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 105B61709 for ; Thu, 8 Nov 2018 17:17:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E8A0A2DA63 for ; Thu, 8 Nov 2018 17:17:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D9BD02DA26; Thu, 8 Nov 2018 17:17:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E20D2DA26 for ; Thu, 8 Nov 2018 17:17:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726684AbeKICxu (ORCPT ); Thu, 8 Nov 2018 21:53:50 -0500 Received: from mail-vs1-f66.google.com ([209.85.217.66]:37446 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbeKICxt (ORCPT ); Thu, 8 Nov 2018 21:53:49 -0500 Received: by mail-vs1-f66.google.com with SMTP id h18so12053679vsj.4; Thu, 08 Nov 2018 09:17:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=/dhd2ueTuNqkusoDQzQ2yNn/NgzjYx2rSwp0ao+rnsQ=; b=gn58IVl2Zy3BlUK+Tb+I7rNAVuJqMxtsOSCTpT5kVgW4dfuNMCLU+pPXlXbInybuii flUBsfeKMUDqreb1Wj0tjzYO6hLKrEmUQZn+s0UHIIv+i7qN2SYZS9r1Lus991uL8V39 SF38zZCKS+jOmzU3mCC9pSHf7pMsbiJlZDdlnQARRp+Fvai4hyuDdIMJiUuJbgdgAt5f eyjPEcnBdQ5IoavHfV1cDwDnDQn6vyPw+NuJJ9Rm9NO6lP5S4S9hm95UcAuA4KvbF6c0 KWQN1pLNBzot45g4T4B/+YMg09QbAzHF1NGTIrubA0+teLVkvr6zs6BBmsL8DR3mXHW2 hlDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=/dhd2ueTuNqkusoDQzQ2yNn/NgzjYx2rSwp0ao+rnsQ=; b=CyynCdYxeLcfWZ9KluGWKueohgolkI0Tdxai658qfyaAu8WxSnKcPsnBquZGvE4EXP cTRsGb7+Dz0w6roem6D9TqHRbNt9JM/1ENKsqf+85YvY6xzXEU6DUVBD4F+0jJO/DznT wM6poGnGmCgDAZbDcmeYfMsu09hEdCyvX1OcA7o+IPswN1LKMkkqFZvDjPK/8C+bUyi5 0qXser21QcBg5N0HYf7FDvBf/mqcwoVjugyDxDHQaEIreGIhwkuTAHoWJSZiJ6qew9Os av0JJPjQcd3u48XG5Gr5aZftuB7/vaYMEKI65SckXA0oADzM2OcGyZXK3pIy3RQ5eaD8 UvMw== X-Gm-Message-State: AGRZ1gLLLl8Bjf28+P8iFFZSDpWQMC2rKA8M8Bdj1kuegcc+QCESanrK yZiBpBroMuQRSDr6gs9VgA== X-Google-Smtp-Source: AJdET5f33bwOXte1yUcWGhx3buziHDh67zI1LiFtk1eayy0xlDN9tRonClHVXbahwRwAkCncybvQxg== X-Received: by 2002:a67:7106:: with SMTP id m6mr2274513vsc.67.1541697441153; Thu, 08 Nov 2018 09:17:21 -0800 (PST) Received: from localhost.localdomain ([2601:902:c200:6512:a50b:fc5d:3604:d966]) by smtp.gmail.com with ESMTPSA id y195sm1792776vkd.0.2018.11.08.09.17.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 09:17:20 -0800 (PST) From: Ayman Bagabas To: Darren Hart , Andy Shevchenko , Jaroslav Kysela , Takashi Iwai , Ayman Bagabas , Kailang Yang , Hui Wang , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, alsa-devel@alsa-project.org Subject: [PATCH v3 0/3] Huawei laptops Date: Thu, 8 Nov 2018 12:16:52 -0500 Message-Id: <20181108171701.4444-1-ayman.bagabas@gmail.com> X-Mailer: git-send-email 2.17.2 Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Changes from v2: * Support for Huawei MBX * Style and formating issues [PATCH v3 1/3] The first patch adds support for missing hotkeys on some models. [PATCH v3 2/3] This one enables the front speakers on the Huawei Matebook X Pro (MBXP). This solves bug 200501 https://bugzilla.kernel.org/show_bug.cgi?id=200501 It simply uses the pins configurations generated by hdajackretast using the settings posted on the bug page https://imgur.com/a/N1xsCVZ [PATCH v3 3/3] This enables the micmute LED on Huawei laptops using ACPI calls. Ayman Bagabas (3): x86: add support for Huawei WMI hotkeys. ALSA: hda: fix front speakers on Huawei MBXP. ALSA: hda: add support for Huawei WMI micmute LED drivers/platform/x86/Kconfig | 11 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/huawei_wmi.c | 236 +++++++++++++++++++ include/linux/platform_data/x86/huawei_wmi.h | 9 + sound/pci/hda/huawei_wmi_helper.c | 47 ++++ sound/pci/hda/patch_realtek.c | 29 +++ 6 files changed, 333 insertions(+) create mode 100644 drivers/platform/x86/huawei_wmi.c create mode 100644 include/linux/platform_data/x86/huawei_wmi.h create mode 100644 sound/pci/hda/huawei_wmi_helper.c