From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 60248C6786F for ; Fri, 2 Nov 2018 04:11:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBD4E2081B for ; Fri, 2 Nov 2018 04:11:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jC7ZDBUu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EBD4E2081B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727546AbeKBNRN (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: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- 2.17.2