From patchwork Wed Dec 12 09:25:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hui Wang X-Patchwork-Id: 1011703 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43FBJS3QjFz9sCh; Wed, 12 Dec 2018 20:26:16 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gX0mP-0000Fx-OB; Wed, 12 Dec 2018 09:26:09 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gX0mO-0000Fl-Ct for kernel-team@lists.ubuntu.com; Wed, 12 Dec 2018 09:26:08 +0000 Received: from [125.35.49.90] (helo=hwang4-Lenovo-V480c.bluefin) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1gX0mN-0002iI-Gm for kernel-team@lists.ubuntu.com; Wed, 12 Dec 2018 09:26:08 +0000 From: Hui Wang To: kernel-team@lists.ubuntu.com Subject: [SRU][Bionic/OEM-B][PATCH 0/6] Add support for ALC3277 codec on new Dell edge gateways Date: Wed, 12 Dec 2018 17:25:53 +0800 Message-Id: <20181212092600.4505-1-hui.wang@canonical.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1807334 This patchset is for the Dell Edge IoT Gateway Gen2 project. The pachset for Gen1 is already merged to bionic kernel, and this patchset is partly based on Gen1's patches. Originally Shrirang is the developer of this driver, but later he had a new OEM project, then I took over the left work about this driver. The machine driver of the Gen2 is under the process of upstreaming now (http://mailman.alsa-project.org/pipermail/alsa-devel/2018-December/142936.html), but there are 2 reasons that we can't wait for it: 1) due to the schedule of project, the driver need to be merged to OEM kernel asap. 2) because the driver of Gen1 is in the bionic kernel and ASoC API changed significantly since kernel-4.15, the upstreamed driver can't be backported to bionic kernel easily. So the plan is to send this patchset to bionic and oem-b kernel, and backport the upstreamed driver to cosmic and disco kernel later. We have 2 0006-xxx.patch, one is for bionic kernel, the other is for oem-b kernel. [Impact] The Dell Edge IoT Gateway is based on kabylake, and the audio codec is alc3277 which is connected to kabylake PCH via SSP0, there is no ASoC machine driver for this board, so the audio (line-out and line-in) can't work. [Fix] write a ASoC machine driver for this board, and this driver is based on the existing driver kbl_rt5663_max98927.c [Test Case] play sound via line-out jack, record sound via line-in jack, all work well. [Regression Potential] Very low, this machine driver is specific to Dell Edge IoT Gateway. Only the machine with the HID:10EC3277 in the BIOS can use this driver. Hui Wang (1): UBUNTU: SAUCE: ASoC: Intel: (no-up) Update Skylake/Kabylake alc3277 i2s machine driver Shrirang Bagul (5): UBUNTU: SAUCE: ASoC: Intel: kbl: (no-up) Add Kabylake machine driver for RT5660 UBUNTU: SAUCE: ASoC: Intel: Kbl: (no-up) Add ACPI GPIO mapping for lineout-mute UBUNTU: SAUCE: ASoC: rt5660: (no-up) Move platform code to board file UBUNTU: SAUCE: ASoC: Intel: (no-up) Add Skylake/Kabylake alc3277 i2s machine driver entry UBUNTU: [Config] CONFIG_SND_SOC_INTEL_KBL_RT5660_MACH=m debian.master/config/config.common.ubuntu | 1 + sound/soc/codecs/rt5660.c | 25 - sound/soc/intel/boards/Kconfig | 13 + sound/soc/intel/boards/Makefile | 2 + sound/soc/intel/boards/bytcr_rt5660.c | 19 +- sound/soc/intel/boards/kbl_rt5660.c | 542 ++++++++++++++++++++++ sound/soc/intel/skylake/skl.c | 11 +- 7 files changed, 582 insertions(+), 31 deletions(-) create mode 100644 sound/soc/intel/boards/kbl_rt5660.c