From patchwork Thu Jan 10 15:06:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10756015 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 50FAF13B5 for ; Thu, 10 Jan 2019 15:06:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CD9D29960 for ; Thu, 10 Jan 2019 15:06:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FE8229A25; Thu, 10 Jan 2019 15:06:33 +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=-2.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 363E929960 for ; Thu, 10 Jan 2019 15:06:31 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C663F2674BA; Thu, 10 Jan 2019 16:06:29 +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 181602674C5; Thu, 10 Jan 2019 16:06:27 +0100 (CET) Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by alsa0.perex.cz (Postfix) with ESMTP id DB78726712B for ; Thu, 10 Jan 2019 16:06:24 +0100 (CET) Received: by mail-wm1-f67.google.com with SMTP id a62so11597789wmh.4 for ; Thu, 10 Jan 2019 07:06:24 -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=8maFnBPTpmay9QuQUCsxmg+Of1sOU1fT8fC7dqM80v8=; b=SdxGfC9Rw2nzjnPy9sLnWcIlRT1w8SfvrLN/RSRykXHQdnGmOolU7xlx/rmH7fR1um F9+rDpNW6l1jm9hLRwrD/RGTkeFnRxcLKA25bj0Xzh6RyVKaPtftKITNEk46ddMzF28R CGcfX2Vo6U/HOZOkv0Ef549wi/fP75SVqlrg8= 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=8maFnBPTpmay9QuQUCsxmg+Of1sOU1fT8fC7dqM80v8=; b=WwzRCewECHmLBiT8kolD/uM9K4wklEBtg0rLFmle95uXccuMQ9NKfBaC1QuZsyPi6A d3lQZnUPg/YRPuLQhI1KpTHb7KTr8cNitoVuQA+lTTMFzbrYsCIjIccPPaGq5XQ7KL0m /bHPst4EA5fJj1fPWuuACUUCyCkY89hVvvhl18bk7kZWkSqa3BJPHc8l1BXj2s1Oo0PD 9SCtuDYsHrXndozfpjnLwQE50rvlkcw+38+bICXWLQ6PH3YGmcRUKTR7SOqbxGVZvzUS 1sAT3JR+v/mxXGGWt5ax+k+rilrf0MrTTiuVmRf3ZGVSGIf9BCfcqN2+YWEtvgVSXT8l NVYA== X-Gm-Message-State: AJcUukc632o+pemVNbBPFs3aSR2WkDkZ4JRhMBAHmhxVD1SYyabRDV4i 0U6d2doL3pl0by8YWHKqIT4odw== X-Google-Smtp-Source: ALg8bN515Ui3pME8BUv4OD13Z4V9Ks4AkeqNjXRsyp3u2PjHd5VH0wybG21ZmV1gNLz27sofM3sRyA== X-Received: by 2002:a7b:c34c:: with SMTP id l12mr10103657wmj.147.1547132784123; Thu, 10 Jan 2019 07:06:24 -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 b12sm51063754wrt.17.2019.01.10.07.06.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Jan 2019 07:06:23 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Date: Thu, 10 Jan 2019 15:06:08 +0000 Message-Id: <20190110150616.2332-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, robh+dt@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v5 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 X-Virus-Scanned: ClamAV using ClamSMTP Thankyou for reviewing v4 patchset, here is v5 addressing comments from v4. Major change is moving the driver out of MFD as there are no immediate plans to add support to other drivers on this codec. 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 v4 (https://lkml.org/lkml/2018/9/17/21/) - Move the driver out of MFD as discussed with Lee - defer support to MBHC for more testing! 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 | 6 + 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 | 5275 +++++++++++++++++ sound/soc/codecs/wcd9335.h | 640 ++ sound/soc/qcom/apq8096.c | 71 +- 8 files changed, 6623 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