From patchwork Wed Nov 14 15:25:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayman Bagabas X-Patchwork-Id: 10682759 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 87C3714BA for ; Wed, 14 Nov 2018 15:26:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 792B62BA89 for ; Wed, 14 Nov 2018 15:26:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6CE992BA8C; Wed, 14 Nov 2018 15:26:07 +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 1038E2BA89 for ; Wed, 14 Nov 2018 15:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733101AbeKOB3r (ORCPT ); Wed, 14 Nov 2018 20:29:47 -0500 Received: from mail-yw1-f67.google.com ([209.85.161.67]:36510 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727972AbeKOB3q (ORCPT ); Wed, 14 Nov 2018 20:29:46 -0500 Received: by mail-yw1-f67.google.com with SMTP id h21-v6so7425900ywa.3; Wed, 14 Nov 2018 07:26:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=tIWET2q5aixH8OxBE4jO1vcLc9D0KtE2dF4/vVPZ7+I=; b=JguNsCKQxd6NKOYJ/eWLNT5kmPxFEmUeTGEctWCqb1p6sFgymQ5v0y7PQdFeeRA3GC nvnhlEiWhujPjfEFEF7gFYisX7lN8NUNZ3/r23J6nApRNqYYBSBJ5g2sen52Zy2OS8nH OKGCQJ930EEU2EecRUpg1k5Ye9UL+rfRjvga3uXYCyKq0u9OvwOhDnaT8cZzTAqyrmLL XvS2EsCXFmXJojH+PCKkujSYBzHVIT3wuFZVLSU5fPK2b21XzPmPZpVfaB3C2oGJWBuf r35ySbpHdpqVFlDD+S9rTdIZjuVA87cXCFj8qPva98EnHPoovH3tQjuJbs9Gbz+qYW3J xR7Q== 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:mime-version :content-transfer-encoding; bh=tIWET2q5aixH8OxBE4jO1vcLc9D0KtE2dF4/vVPZ7+I=; b=aKAyh3rLaZvZZcbGyUeKuiOjFzg1bN5/ZUD/++VFqReRhFyJ5ewP5At1YdVzHOMzih uLAoue8LTfvfn397KOvbdKyU7hZHS5qguDTvZ93k58/WeomWw06krWMf0V0EgmslFm5x 5Gp4bDzhcOSc1V5dMPEahXazQmjBvq96qcC/a/KQ9RtG4U1/mrsnPXfCs4VcI3mAZsJV ZE/wKsasCZ5QOzdHiEda8m2g1fMtAXBTKPaeCpyNwlFWewIBiG84GNF0NlOuo2QMxZkh VopflaRlTxyJFLUJIMrvPro3vgkE+JwzM9DFE3lbEksZyu3N0Tzf4WCHXNtGxxX0K/oT FzfQ== X-Gm-Message-State: AGRZ1gKN+UKFBr+22td/DbV0XWK1Ak94buAYaQJzLvZEbOJsP3rk3gcZ kxTkdlcDix/nq34Yn+1yXg== X-Google-Smtp-Source: AJdET5edPFG9UQhGNXtn/VKWZU/FadQm3EEKsxSumXAuqytJPPzeOQkMMGffTbPzKhyUi5ovsiEwXw== X-Received: by 2002:a81:6f03:: with SMTP id k3mr1925397ywc.424.1542209165110; Wed, 14 Nov 2018 07:26:05 -0800 (PST) Received: from 960.armstrong.edu ([130.254.104.55]) by smtp.gmail.com with ESMTPSA id b196-v6sm11573815ywh.108.2018.11.14.07.26.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 14 Nov 2018 07:26:04 -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 v6 0/3] Huawei laptops Date: Wed, 14 Nov 2018 10:25:55 -0500 Message-Id: <20181114152602.7842-1-ayman.bagabas@gmail.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 v5: * Review tags Changes from v4: * Consistency in file names * How module would be enabled (Kconfig) * Match license in SPDX and MODULE_LICENSE Changes from v3: * Code formatting Changes from v2: * Support for Huawei MBX * Style and formatting issues [PATCH 1/3] The first patch adds support for missing hotkeys on some models. [PATCH 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 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