Received: by 10.223.185.116 with SMTP id b49csp1257379wrg; Wed, 14 Feb 2018 14:11:27 -0800 (PST) X-Google-Smtp-Source: AH8x227fcXF1Opd5E8MsHae1ozkULZQEvwnWdLZgyQaPZHgZ5RX9/OIRm8/UjOVUHjVDtrmMMR4D X-Received: by 10.101.101.143 with SMTP id u15mr392030pgv.265.1518646287530; Wed, 14 Feb 2018 14:11:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518646287; cv=none; d=google.com; s=arc-20160816; b=UiXW54tt6LMwNZIt7ucO36ReoHYSWT6RXVo90JxOWy54rHmkpqmYZ+z+1UVrl+hMlq DGphiwBi0e3bKkUPWr6JB/VvIlbjrNVa4lxgpIKE5Oywfc2oDMamFxFz2eVV2NM9pKeU xlg4uch6cMwcWGqGyq7I6r+LWJTENiPmr2t7xppUt0gy01Yy1eNSfHJ69pyLjJBOJSgd zfNmCDR5DhbdoC140bJCZU+B7gT52z8vaa8mPnQECvQuCEcAHAdNWFiW9qCdchC8kl4R usuFMoAncRv3Syp9CopvIVlOO1gqeTRZYdcevM9DRO+H9oT6G+iHfsvEHuA3TFA+gQFy 2r3g== 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=/oFAzseEfoHr5DKLwMPkUP5F+BiZx3KRe1Icfnd3Vmw=; b=iCd/dtNNOBLSJyR76FSmRE+iUcxOietpTHq7OJYlIPNk9K3LOr9KyXGLfNZqQG/MJg ArI4JOqVt/1BnCsufgbLigOg8LFCFsMsR/rOrKPD1OdJBRwZVi1rolOo8BMzWocZ3cQi r4K2NteOoPe3prOcJ9q6JIHBH5Pcwo5HyFSdZztjWS6Q0XQgJmCB/APU9jjuJ0R5fqb3 FWjp8qIBH4tC7zYRgvTvtlbktdEzsOTFDp+BejaxHXPL/yu06lCNk3hhVPxKUWqfyFyg xmX/sMbiCZsN6y9mS0GIYOUTQQQ4lBJnTTfRtEZFrr+seSp878zH10C1bPYcgHMkQnuQ YJTA== 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 b8-v6si463435ple.359.2018.02.14.14.11.13; Wed, 14 Feb 2018 14:11:27 -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 S1031664AbeBNWHv (ORCPT + 99 others); Wed, 14 Feb 2018 17:07:51 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51790 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031527AbeBNWHt (ORCPT ); Wed, 14 Feb 2018 17:07:49 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 9121C270C37 From: Sebastian Reichel To: Sebastian Reichel , Liam Girdwood , Mark Brown , Rob Herring , Tony Lindgren Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel Subject: [PATCHv4 0/4] Motorola Droid 4 Audio Support Date: Wed, 14 Feb 2018 23:07:37 +0100 Message-Id: <20180214220741.28306-1-sebastian.reichel@collabora.co.uk> X-Mailer: git-send-email 2.15.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 (needs different DAI/I2S config) 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 (4): dt-bindings: sound: add motorola,cpcap-audio-codec ASoC: codec: cpcap: new codec ARM: dts: motorola-cpcap-mapphone: add audio-codec ARM: dts: omap4-droid4: add soundcard .../bindings/sound/motorola,cpcap-audio-codec.txt | 17 + arch/arm/boot/dts/motorola-cpcap-mapphone.dtsi | 5 + arch/arm/boot/dts/omap4-droid4-xt894.dts | 84 ++ sound/soc/codecs/Kconfig | 5 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/cpcap.c | 1588 ++++++++++++++++++++ 6 files changed, 1701 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/motorola,cpcap-audio-codec.txt create mode 100644 sound/soc/codecs/cpcap.c -- 2.15.1