Received: by 10.223.185.116 with SMTP id b49csp1112155wrg; Fri, 23 Feb 2018 12:08:20 -0800 (PST) X-Google-Smtp-Source: AH8x225u6WpIcsk7XjDtS/dkAVcfmFGx33V1OEsqFL7locCydkX7TzxGQ8o4xQTRd1OA6qa8HS/m X-Received: by 10.98.68.129 with SMTP id m1mr2772485pfi.171.1519416500673; Fri, 23 Feb 2018 12:08:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519416500; cv=none; d=google.com; s=arc-20160816; b=bgLPXymRi7m8XFotXVJbo9hTxWeUqFjJA3epxmTog7eRlcsr2hJ6xEOsajTRFfpDW0 HMiylldO8//qpbgz5S8K8Ne5A/9KS1KRHS9WsSYTOWLKyvyQsMM0j6QCoo6PSVjl0Ers 0QN5NLFV1YLAMQta9l9zs++ktpNmVhzb7gfAXryhiYqYYh0R77uLe1Dw9bd2eSHzqshM p1IK6Z7qexrdTh+EgEDDbaz72DpLle15V8zA0uvf0tyeCnarefG2MvYQDXcRqlWPRh3S kLRpNi89eE0IAbFHiNRn70NoZ0dXh71vQhyM6Mzxm6MEaUcRzDY2J32YxZw2H7lBLx22 Rgzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=7hvmmS4Y/w7MLiNUA6Ektua5ZZ5QK1ekOlHlYGcXz/o=; b=qWuDZZSD8W+J9I75HyVGC7KgYQXCVkj9DGo7gL12tnMMXAimobK/fwbD45z1MEGWou pXTORPM4Jlc5icmmEijFmgXJ40rfI1AcPq2ohrUOVu3Cqgzqnl+CXRm/ed6bCpVxzsVV SQLWbIL5cYvbs2xvy1noZd6zP3H5ndxNkqwilHgxTu0NO6v0F+M7eA/7Ssxu90fqqquT wG1jS/lkocHPfDMyE1ZNQmRNmmQ1eR7hAjJxRY4evj/r26bg0XPlFKpgk0weVNmWW7YK K2LDQM60ZP27j1xp4PLCGPHTbCgwqw1GKfyLxOeP91OAKgBvaUWqTAHoet2jK1PcNF5k noRA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si2210283plr.109.2018.02.23.12.08.05; Fri, 23 Feb 2018 12:08:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755031AbeBWUDG (ORCPT + 99 others); Fri, 23 Feb 2018 15:03:06 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38220 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754727AbeBWUDE (ORCPT ); Fri, 23 Feb 2018 15:03:04 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 555C0265A40 From: Sebastian Reichel To: Sebastian Reichel , Liam Girdwood , Mark Brown , Rob Herring , Tony Lindgren , Lee Jones Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Sebastian Reichel Subject: [PATCHv5 0/5] Motorola Droid 4 Audio Support Date: Fri, 23 Feb 2018 21:02:49 +0100 Message-Id: <20180223200254.25685-1-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This adds audio support to Motorola Droid 4. I dropped the regulator from the DT binding as requested by Mark. Tested: - Playing via both DACs using Speaker, Earpiece, Headphone - Recording using internal Mic - Volume Controls Known not to work: - 3.5mm detection support (requires closed source firmware, needs further investigation) - Modem / Bluetooth Audio (this needs something more sophisticated than the audio-graph-card driver. I will have a look once the basic support has been merged) Changes since PATCHv4: * Replace verbose GPL text with SPDX header * Use "GPL v2" as MODULE_LICENSE * Drop "default MFD_CPCAP" for the codec driver * Use SOC_SINGLE instead of SOC_ENUM for Phase invert switches * Find DT node by node name instead of by compatible property - Drop Acked-by from Rob Herring * Add new patch for MFD driver to implement the mentioned DT change Changes since PATCHv3: * Drop regulator from DT binding, request VAUDIO from global regulator namespace instead Changes since PATCHv2: * Fix a whitespace issue * Fix const notes Takashi provided * Fix a DAPM route issue I accidently introduced in v2 Changes since PATCHv1: * Add patch from Tony exporting soc_dpcm_runtime_update * Integrate DT patch for vaudio initial mode * Split dt-binding from codec patch and add Ack from Rob * Fix CPCAP position in Kconfig/Makefile * Avoid "err +=" constructs * Simplify reset function * Drop cpcap_audio_read/write helpers * Do not use tertiary operator for mute register value * Update Input Mux logic * Switch from simple-audio-card to audio-graph-card -- Sebastian Sebastian Reichel (5): dt-bindings: mfd: motorola-cpcap: document audio-codec ASoC: codec: cpcap: new codec mfd: motorola-cpcap: Add audio-codec support ARM: dts: motorola-cpcap-mapphone: add audio-codec ARM: dts: omap4-droid4: add soundcard .../devicetree/bindings/mfd/motorola-cpcap.txt | 42 + arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 13 + arch/arm/boot/dts/omap4-droid4-xt894.dts | 78 + drivers/mfd/motorola-cpcap.c | 51 +- sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/cpcap.c | 1568 ++++++++++++++++++++ 7 files changed, 1757 insertions(+), 1 deletion(-) create mode 100644 sound/soc/codecs/cpcap.c -- 2.16.1