From patchwork Thu Feb 11 12:27:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 380915 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2027858jah; Thu, 11 Feb 2021 04:31:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzYrcYSc5yFHJ2hNsWKOQN3n0DSoQY2jBT6LhcfKZucbP/qYANNL2WkYZYyv5Mv3u6ova3x X-Received: by 2002:a17:907:a059:: with SMTP id gz25mr8386640ejc.400.1613046683923; Thu, 11 Feb 2021 04:31:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613046683; cv=none; d=google.com; s=arc-20160816; b=wB0IcCwlzgPMoR5XkxYPyD04mHZkyKFCjXcKB2c1V1t9g8/lhfGwgipyBBxuLJbGoJ 2IrtEN0AZHtvQ20AY2pJwnWKMgypb9biA6mprElHRgBpIBA/GCNQmIb7G7JlFz2ktMvR gd+qz6J/+ZSLYv7PwvcDKXmWwYGyLJP1XR/+9OetY/s0c+rNLD2FCW7xPqlkNkIf46xx XVLMRa/0WD6McOfrBRhOSNBA6QFa6fT7JOmZHfaYajqnorhWRpE6OoWOL1EWGzClhmIn Gvv9xPpbaY8C2QUwyJ3OvLwp4lmyEnLiNGBmY03jRr7bvKWhNj3bbVMz/TxGdrWLr2qx hvLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=hcVy2hhO5lDAWG0A6BnQz5rAwn+vZs+FFC39Fm9Ww1o=; b=HFcPyYYVewyG6dMNuS3fbI/UsZVov6uKP1sxmMIRkJZFwPkHHW7eDfyksazqC3bEpf vCGVQXIpb/LrW3RDPxwzwAm2ppAsSe1JQN3g3bkmjo0CoYrU058OogqT99b6sJ/jDyPb Y1/l9Tqy5xYbfIJdRKxh6cVNqCUWBHsS3VLLUR2FppKrmLYqR55MHfyKiYq2ud7qIPJQ 498euJutegZnaVM0QFy9b1r5jpwoJMFaR695E4aoWLBjCzAPUEsUYlUKcdd6yzZRHkzC +uKoLeAnbGVblYQT3kGBKd9A353nGhB5aAeKJMGHa52cEqrSG0McKUvnXAAcHxIkRisO RUhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I9mSBvY7; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b18si3862311eju.554.2021.02.11.04.31.23; Thu, 11 Feb 2021 04:31:23 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I9mSBvY7; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbhBKMbK (ORCPT + 6 others); Thu, 11 Feb 2021 07:31:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231366AbhBKM20 (ORCPT ); Thu, 11 Feb 2021 07:28:26 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D47A3C061574 for ; Thu, 11 Feb 2021 04:27:45 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id r21so3974114wrr.9 for ; Thu, 11 Feb 2021 04:27:45 -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=hcVy2hhO5lDAWG0A6BnQz5rAwn+vZs+FFC39Fm9Ww1o=; b=I9mSBvY7RXW4LEA30FsIfm6l9OmFw8BV5mszH1j2qz7Q9xDosqu7Ej5vHgf5/p50LY GEKqChEshCwOyOIMrg4kB5WfZToSFT/9FO3fAVqaC3L2+/xhc1dg0u0N1f3X6Gd7THgf sNiz/p5X6IECP1oIx2XXnp1kdomULAyTocQw45yq3hrvVqL/fLBAVLMqyECTqYimOi0b xHFTJw7Nz2fjXEFs53IkNFyvljL3SvW4lCkBMazNJ0cZQwNGSCUaPFU+OKAjlwN9Zb6O QFvHs2D5adRijSqp8PIHki2rGMHyLyWyjQfDuTwLk2+wNAa+joqzE1h+criO1aF3BLR7 KRpg== 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=hcVy2hhO5lDAWG0A6BnQz5rAwn+vZs+FFC39Fm9Ww1o=; b=aORlA5GGbIg7il1jy8RDn/jLbVtphZcIzcOe46dY0AAHOOCIDsWXdbJk7QZi5dSedo S45OdFLq9qI064QgdvHR238NmIOMTAajQkFPOcT18f/ck3TEYL+2g3uipjqyPMQl0ZOZ lNg0hjbeU2qUrMLI8lBrWBu5yAaJ4+GrGQne07xuk61ojKlzx2/b8Qb4oBLA5LmPJZ76 0a3DnGlvRh7epbLwxrKcteZKK5UEDTPVq3IWBq5IUqt9Arpy/TdP58ABVl2c2xuv6pgD 7RKkFSbBws69P7WphU3lGIduyjaUBeXxaQCRk+EsF81Z50ZJqj1QPkKJd1IcQpkiXVlH /+cA== X-Gm-Message-State: AOAM532fg7rpiZWYq5fRGpfeUMyc4PA9BVUb6+4V/MAXt16yeovGQRJp KRbEsDiGK+bm+Tehjummmwe1sk8S7Tv16g== X-Received: by 2002:a05:6000:1546:: with SMTP id 6mr5447616wry.398.1613046464646; Thu, 11 Feb 2021 04:27:44 -0800 (PST) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id d20sm4026477wrc.12.2021.02.11.04.27.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 04:27:44 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Cc: perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, devicetree@vger.kernel.org, robh+dt@kernel.org, Srinivas Kandagatla Subject: [PATCH v5 0/7] ASoC: codecs: add support for LPASS Codec TX and RX macros Date: Thu, 11 Feb 2021 12:27:28 +0000 Message-Id: <20210211122735.5691-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This patchset adds support for two Codec Macro blocks(TX and RX) available in Qualcomm LPASS (Low Power Audio SubSystem). There are WSA, VA, TX and RX Macros on LPASS IP, each of the Macro block has specific connectivity like WSA Macros are intended to connect to WSA Smart speaker codecs via SoundWire. VA Macro is intended for DMICs, and TX/RX for Analog codecs via SoundWire like other WCD938x Codecs to provide headphone/ear/lineout/amic/dmic etc .. Most of the work is derived from downstream Qualcomm kernels. Credits to various Qualcomm authors from Patrick Lai's team who have contributed to this code. This patchset has been tested on support to SM8250 MTP Development Board. This board has 2 WSA881X smart speakers with onboard DMIC connected to internal LPASS codec via WSA and VA macros respectively and WCD938x TX and RX connected via Soundwire via TX and RX Macros reseptively. Thanks, srini Changes since v4: - One more ktest fix for unused-but-set-variable warning and a fix for W=2 warning and removed unused macros - added bindings ack from Rob Srinivas Kandagatla (7): ASoC: qcom: dt-bindings: add bindings for lpass rx macro codec ASoC: codecs: lpass-rx-macro: add support for lpass rx macro ASoC: codecs: lpass-rx-macro: add dapm widgets and route ASoC: codecs: lpass-rx-macro: add iir widgets ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec ASoC: codecs: lpass-tx-macro: add support for lpass tx macro ASoC: codecs: lpass-tx-macro: add dapm widgets and route .../bindings/sound/qcom,lpass-rx-macro.yaml | 62 + .../bindings/sound/qcom,lpass-tx-macro.yaml | 67 + sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 4 + sound/soc/codecs/lpass-rx-macro.c | 3599 +++++++++++++++++ sound/soc/codecs/lpass-tx-macro.c | 1862 +++++++++ 6 files changed, 5604 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,lpass-rx-macro.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,lpass-tx-macro.yaml create mode 100644 sound/soc/codecs/lpass-rx-macro.c create mode 100644 sound/soc/codecs/lpass-tx-macro.c -- 2.21.0