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: 10783791 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 E8F6C14E1 for ; Mon, 28 Jan 2019 14:28:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D4B922AD8A for ; Mon, 28 Jan 2019 14:28:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6D8A2AD77; Mon, 28 Jan 2019 14:28:37 +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 F307E2AD77 for ; Mon, 28 Jan 2019 14:28:36 +0000 (UTC) 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) 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-Google-Smtp-Source: ALg8bN5KnLzaamCtJWfuAFSH2rV79K/kHPGHu8KWVn5Ckbe975eUNWlv2CBKYtZvJxBdpEzv1QTe5Q== 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 X-Virus-Scanned: ClamAV using ClamSMTP 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