From patchwork Mon Jan 28 14:27:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 156750 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp3491613jaa; Mon, 28 Jan 2019 06:28:36 -0800 (PST) X-Google-Smtp-Source: ALg8bN4CPZ9jNyWLX5CIWt3lQdbTCJFHY33oVa8arJWI60FjmLMgpRBsXdp/Ty3k5G6BH///B6Lb X-Received: by 2002:adf:d0c9:: with SMTP id z9mr21062209wrh.317.1548685716324; Mon, 28 Jan 2019 06:28:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548685716; cv=none; d=google.com; s=arc-20160816; b=F37HNidu63Rq4wJbV3kye+Uf7iv356SZHxbJ+bfNqWbT2GTQz+e3H1oMtKkSNq2Bv5 LM6s4KX8lPdVXBaLwd/le2Rwhnwng2/p0aluIfwVAQUL9aJEDbA2KzyNlD+dk8UHnls2 5TB8Lrxxwp5ECH25gq2capxfF7Dwhft3LieFvFVSoY7dC2gug4ERlxns1VayHWNPQR9i Bj4+oDl5bJkt8jThpexnEes5TOMmb9rThOmCI4bJ2chp5hUKGHAn9WD8WPCvf16dqcZ5 bjwZ60FPepfBfIER5+HOTyHSfhcTF6lwDtLd174Ygz5WMCcbKlbBtq9jxRf3sZPuqxAD u4mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :cc:mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=YOTaxiJYCzPS+vitnHzGqtLgzcirGEfR5G8X/TAV3ls=; b=qJz6j62i4kgucqqvN2dph6p6wQPaiIaICKssoVESuy/zUu0xSNnZAbuf9DrSaOcbns 2tKv+FIKJcPq9DlmfR6E3W8jmcsRE3tqAdwo9C4ZnfH1Nps6RlaP+qTiyXVjVvyHwLYg L4IQiXTzMry6Rlz5SN5jQj7WpkezSD6aRuqh9IHb2i6tTcXyOrCWTpjjlcO/xym2IhJD RD0+5eIApp2EHsYUAeLlG0siO3rulP0dvSiFOxU39oZX6BG3l7sMXVCV2ronLCQfAPyX elgytOMlOQ1eZ2V4tfIKoW22ablnzqdrnhrX9G/ei4FoWfYfgxeqNj5QN6mBQAcm1VPo osGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=W0z4BEbG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id s82si46575016wmf.82.2019.01.28.06.28.36; Mon, 28 Jan 2019 06:28:36 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=W0z4BEbG; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 78FE2267467; Mon, 28 Jan 2019 15:28:35 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 330BB267481; Mon, 28 Jan 2019 15:28:33 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by alsa0.perex.cz (Postfix) with ESMTP id 14D1C267456 for ; Mon, 28 Jan 2019 15:28:30 +0100 (CET) Received: by mail-wr1-f68.google.com with SMTP id v13so18249537wrw.5 for ; Mon, 28 Jan 2019 06:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=g0YaOvHISH8B5chvvH6mDT40uac7FvLZQtTSed3bKqE=; b=W0z4BEbG+wU3ypb25QzM6pMONXsBHN4vJUxFQ6DtgFXcd0sxhOMtgTZhNDWrqnHwWN JP/EkxzQVxr4PuDPKWvHL1FxAuJkMoHH1uiU7ImLKpH2/P8gs9RgOsfC9KEeRcV1viw9 46qwSheVDOLODb4cA/hYI7cGdsmXCHpqXfco8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=g0YaOvHISH8B5chvvH6mDT40uac7FvLZQtTSed3bKqE=; b=tdvE9JF0wj7Ov2oqiBFj7c7Fp8l5gsq7kXKn2Wa7CxeqgIbvT9DkA/gh5j3dj4Bw5W iXBMHU17cOkAff1kywTclzXTAdmVDZ0bL3R6FbgCm7qHWu9rJBeKl/G2L/MleojfBmIO y/i483FgubzWQEVG/d0//gWdv/Vp8ojbsP/S6gOuWtoEPfFDA4BqyiydQScNMPzzsT8I 0kmRDy6Tb0sdJOL/GusWPOl0gYKMwKJFmY4sIEn84GuG1b6PbYDnk8WqpLPUtmdb/IZP IqKqADTozHZTgZegSFfz2CDsHqyXQt5eDnSaHY2DxtT9WaNGbCX+uuLUwxsFdrpt4qqh 3oMw== X-Gm-Message-State: AJcUukd4V9bf7NheluG0HJHfJa7ZiKunRNOW99McH3zuxEau2yI/tD2C AQX+Ymf2Bar6qmFCw+ereJIgEg== X-Received: by 2002:a5d:68c3:: with SMTP id p3mr22554070wrw.34.1548685710181; Mon, 28 Jan 2019 06:28:30 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id x1sm27261123wru.34.2019.01.28.06.28.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Jan 2019 06:28:29 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Date: Mon, 28 Jan 2019 14:27:45 +0000 Message-Id: <20190128142753.22396-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: alsa-devel@alsa-project.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, vkoul@kernel.org, robh+dt@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v6 0/8] ASoC: Add support to WCD9335 Audio Codec X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org Thankyou for reviewing v5 patchset, here is v6 addressing comments from v5. Qualcomm WCD9335 Codec is a standalone Hi-Fi audio codec IC. It is integrated in multiple Qualcomm SoCs like: MSM8996, MSM8976, and MSM8956 chipsets. WCD9335 had multiple functional blocks, like: Soundwire controller, interrupt mux, pin controller, Audio codec, MBHC, MAD(Mic activity Detection), Ultrasonic proximity and pen detection, Battery-voltage monitoring and Codec processing engine. Currently this patchset has been only tested with SLIMbus interface due to hardware avaiablity, but it can be easily made to work with both SLIMbus and I2C/I2S. This patchset adds very basic playback and capture support without much fancy features. New features will be added once the basic support is in. This patchset is tested on top of linux-next on DB820c for both playback , capture paths and MBHC. Some parts of the code has been inherited from Qualcomm andriod kernel, so credits to various authors. WCD9335 can be interfaced via I2S/I2C or SLIMbus. Here is our integration branch incase someone want to try this out: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git/log/?h=integration-linux-qcomlt Thanks, Srini Changes since v5 (https://patchwork.kernel.org/cover/10756015/) - Added codec to SND_SOC_ALL_CODECS, also fixed irq return as suggested by Mark. - converted ear_pa gain to proper tlv as suggested by Mark. - converted rx_hph_mode_mux_text to more human readable strings as suggested by Mark. Srinivas Kandagatla (8): ASoC: dt-bindings: update wcd9335 bindings. ASoC: wcd9335: add support to wcd9335 codec ASoC: wcd9335: add CLASS-H Controller support ASoC: wcd9335: add basic controls ASoC: wcd9335: add playback dapm widgets ASoC: wcd9335: add capture dapm widgets ASoC: wcd9335: add audio routings ASoC: apq8096: add slim support .../bindings/sound/qcom,wcd9335.txt | 10 +- sound/soc/codecs/Kconfig | 9 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wcd-clsh-v2.c | 576 ++ sound/soc/codecs/wcd-clsh-v2.h | 49 + sound/soc/codecs/wcd9335.c | 5248 +++++++++++++++++ sound/soc/codecs/wcd9335.h | 640 ++ sound/soc/qcom/apq8096.c | 71 +- 8 files changed, 6599 insertions(+), 6 deletions(-) create mode 100644 sound/soc/codecs/wcd-clsh-v2.c create mode 100644 sound/soc/codecs/wcd-clsh-v2.h create mode 100644 sound/soc/codecs/wcd9335.c create mode 100644 sound/soc/codecs/wcd9335.h -- 2.20.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel