From patchwork Fri Nov 9 23:45:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10676719 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 AC68913BF for ; Fri, 9 Nov 2018 23:45:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E7B3290B9 for ; Fri, 9 Nov 2018 23:45:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 911412EF0A; Fri, 9 Nov 2018 23:45:39 +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 1DC36290B9 for ; Fri, 9 Nov 2018 23:45:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727322AbeKJJ2a (ORCPT ); Sat, 10 Nov 2018 04:28:30 -0500 Received: from mail-vs1-f67.google.com ([209.85.217.67]:44759 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbeKJJ2a (ORCPT ); Sat, 10 Nov 2018 04:28:30 -0500 Received: by mail-vs1-f67.google.com with SMTP id g68so2027608vsd.11; Fri, 09 Nov 2018 15:45:38 -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=sLfJw0GuyPTj4RaFKW2sErJcEqqrq+Zshbm/v1k+N+o=; b=OZZAzt7wdzJ3yklRV1/HY2m6XG+hJljb1AF+QWYrH51btp1zg+KpDutQvq2ifrat59 tYt7ttsQOAxJcOyWn8hYc9PHJyljYiuB4Rwby4JpEy76CZjucRfn21MA2ZRf52/HOLOU V6O3R32oaUx90D7cp/47APRLSf+9A0hm8Z6n9tDGWaPgYMZeIZjQgdL3qQNcs2KoKtSr vtv6wwV7WMwOVyV5iY69RMn2Og9wuz8ZIXSXYmj/JwbHdl8jQhHTlSHEleMW26WlUz2M SlQx/Q7x4CQmQOIz3GpalVyR7i9Us5CLMrW5Qpm/xBWjr+H1UEd3zBdyhAaYlZE3AFBf 3U7g== 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=sLfJw0GuyPTj4RaFKW2sErJcEqqrq+Zshbm/v1k+N+o=; b=qxoW/Z6cXiswxj478BMt2nxKv3eQcjT531vFNu0+HbT+ucAlkAr9D0rusjuT0dMvG+ tuDV8132M6WPW/zggpaD2+JOYAqTcaGRFsSrmbGFUzelVNzaeGhMhWw6NXzPH7W1zh2c qEE47pps8fJQmXZTPSBXJpmVNbbzpZC6YuurVkYGqgldMShjzuaIj2TSgGx7gfOwB5E4 JnE2Mhc6PwYliRAZEYqHesqoUQYvJMqBih24Ri0KaMVEIRD45Fix9OTzQFtPbu1nM08j WQ9rEoBKPsoZIOjsbySb36KrII28KvCRoCkTKGReA1LLErT/wJWOf+82yuXE277zEnpS 2t2A== X-Gm-Message-State: AGRZ1gLlLLAzB3uvZa+bF7AwbvVsOCZq1muzzNvCMPJBh2A0Oxr9S189 6BEwgOb9aI6k5vD6eeEfWs9EWzlNSA== X-Google-Smtp-Source: AJdET5f10qQhCzuInsGximosrfP7N4FuivuCWhHnLWUYs5IhhlEyJXQ38qrnkuTIIShFsVSX3XD+wg== X-Received: by 2002:a67:6b44:: with SMTP id g65-v6mr1175117vsc.150.1541807137365; Fri, 09 Nov 2018 15:45:37 -0800 (PST) Received: from localhost.localdomain ([2601:902:c200:6512:a50b:fc5d:3604:d966]) by smtp.gmail.com with ESMTPSA id c71sm2395689vsd.9.2018.11.09.15.45.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Nov 2018 15:45:36 -0800 (PST) From: Ayman Bagabas To: Darren Hart , Andy Shevchenko , Ayman Bagabas , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: [PATCH v4 0/3] Huawei laptops Date: Fri, 9 Nov 2018 18:45:18 -0500 Message-Id: <20181109234526.4280-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 v3: * Code formatting 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 with these IDs: 1. Matebook X (19e5:3200) 2. Matebook X (19e5:3201) 3. Matebook X Pro (19e5:3204) 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 | 10 + drivers/platform/x86/Makefile | 1 + drivers/platform/x86/huawei_wmi.c | 215 +++++++++++++++++++ include/linux/platform_data/x86/huawei_wmi.h | 9 + sound/pci/hda/huawei_wmi_helper.c | 47 ++++ sound/pci/hda/patch_realtek.c | 30 +++ 6 files changed, 312 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