From patchwork Fri Nov 2 04:11:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10664907 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 C66CA13BF for ; Fri, 2 Nov 2018 04:11:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA6F72BE3B for ; Fri, 2 Nov 2018 04:11:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99BB72BE6B; Fri, 2 Nov 2018 04:11:32 +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 1B76B2BE3B for ; Fri, 2 Nov 2018 04:11:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727230AbeKBNRN (ORCPT ); Fri, 2 Nov 2018 09:17:13 -0400 Received: from mail-ua1-f66.google.com ([209.85.222.66]:38689 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbeKBNRN (ORCPT ); Fri, 2 Nov 2018 09:17:13 -0400 Received: by mail-ua1-f66.google.com with SMTP id g10so229667uak.5; Thu, 01 Nov 2018 21:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=4sSQdQIoVH+2AUkkaPtQvAzGhPEhS4T5xBJSRLJuQRE=; b=jC7ZDBUuIt8p3lyZ0w8LtWQ0b2U9RUYZpdkVIwrIv86Sgm61avPPSI3GFLqeSQWih+ 6dH6tSgdJW2bHcvM/Iqh5WgxZdHWxkkCNGk4TU7PS8/q1Nz2bx2yOivV4Ilf51hADzTH znoUlNQ7n1Xsz2Y/ygfWdReeBSHSlihXpbVj6OQ6s7cCV+pGh7Y2EwEPsqqHnlmtEOJK YvxH6dt3YUwnX0Pz7wiLdiVseVHPCcAugdaAU0oM536zFVJI0C1+CZdDEsCsovdPvF+d Jvw9jW3k5/2+qnUqME3Ir3CsHEOajemvO/e1QJyeNmEPZIm7KuZLsziZPAoCSLjBGOWC s6Eg== 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=4sSQdQIoVH+2AUkkaPtQvAzGhPEhS4T5xBJSRLJuQRE=; b=uMesEl8sruV+sNn+6w85/J8L9YfkIa1NtnlriMp9y3u45uAaIzyyGaKQk7ksNh9rTx D9/DlcHAzqMc3O+M6Ty2sJyW2k7GSw4ohokg3xZq0sFJRMGOBPNsTiOK6PinCX5ZIXLq Qa7yA3xwueSo+ZeGeHU5ZSD/USkn0Nu7bDCu34Z+wJrMT+0wHG7nRSQcXogSC+F71Mdd Tdei+/wfYZ12gSkBZ7UFjBol3y4316hpwqznwBwX6p6dKSNp9JeSaNVD96A08V6F1bTK gS6TbBZtnRiB22a1mJMqDDP84RFagHlAHE8t1N8ZmU9rNppW7Pl0iV/JOfaAEX3w5XXd dZsg== X-Gm-Message-State: AGRZ1gJEtUz0oilLSGaC2XIm+Fe7uZX4UJbWWKgekfgXnhGlla728Xot U7RGT0qUEBc2mQ9Xsh7ibQ== X-Google-Smtp-Source: AJdET5el5fT+q41payVo+TvF0GgViWWouKx1Yu8TbkbG1fC1BzVrrqkiE5WsWvU+2Vn0fbCYTizWLA== X-Received: by 2002:ab0:14e1:: with SMTP id f30mr4531953uae.81.1541131889322; Thu, 01 Nov 2018 21:11:29 -0700 (PDT) Received: from localhost.localdomain ([2601:902:c200:6512:a50b:fc5d:3604:d966]) by smtp.gmail.com with ESMTPSA id a2sm1661150uaa.15.2018.11.01.21.11.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 21:11:28 -0700 (PDT) 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 v2 0/3] Huawei laptops WMI & sound fixes Date: Fri, 2 Nov 2018 00:11:12 -0400 Message-Id: <20181102041120.7603-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 This patch set fixes some of the issues with Huawei laptops. [PATCH v2 1/3] The first patch adds support for missing hotkeys on some models. Some hotkeys, like brightness keys, work out of the box on these models. [PATCH v2 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 v2 3/3] This enables the micmute LED on Huawei laptops. It calls an WMI method, using PATCH #1, to turn the micmute LED on/off. 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 | 13 ++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/huawei_wmi.c | 224 ++++++++++++++++++++++++++++++ include/linux/huawei_wmi.h | 7 + sound/pci/hda/huawei_wmi_helper.c | 48 +++++++ sound/pci/hda/patch_realtek.c | 28 ++++ 6 files changed, 321 insertions(+) create mode 100644 drivers/platform/x86/huawei_wmi.c create mode 100644 include/linux/huawei_wmi.h create mode 100644 sound/pci/hda/huawei_wmi_helper.c