From patchwork Tue Jan 7 13:59:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 11320925 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 22385930 for ; Tue, 7 Jan 2020 14:00:41 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E3062072A for ; Tue, 7 Jan 2020 14:00:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Vft05+SM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dzWB/EoS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E3062072A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id DB822182D; Tue, 7 Jan 2020 14:59:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz DB822182D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1578405637; bh=m8ywg2aciBspDv0Wzcel6mfQGwYivwT/gyUbXWoFJ94=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=Vft05+SMw9aE2kPwCHbrC1dmvBEgOx5263aUOstpUQhw0m8974nd4cAkLqCv6z+SC H1Nw9O055nW3RDfhWT+9pf1dzl70w06ZrQ2R6lKO12pwc0MdXJQeSdFWgPIs93aYyL 7J5Ptl2f+SilK9LMVidiehO+zQnjuIYP9nBDOiq8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 45C8BF80172; Tue, 7 Jan 2020 14:59:47 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id C4542F80172; Tue, 7 Jan 2020 14:59:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on alsa1.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,SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id EDB80F8010B for ; Tue, 7 Jan 2020 14:59:42 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz EDB80F8010B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dzWB/EoS" Received: by mail-wr1-x443.google.com with SMTP id q6so53959910wro.9 for ; Tue, 07 Jan 2020 05:59:42 -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=qJmNVKXw+jiEBav45JwHqYwIUD6qRkoNmzlqiHhZXYw=; b=dzWB/EoSgTtmZS1jRRfaw4IcwicuhDGrosyvacgu2jkF+h/IfS5yQYJY01DWCHUUSU gGP0q6UXuKwkB2e6oLl3YAoofIyuiMzUCpTzOyST9sxlWL7QfCYT99Pcp6+F2yRFvk+u Zc0GGLDshOrLpAQoktXKD8Pjmv77edZmY7z4A+kWoHfu96Xp2RoCbvY6bqzw2YuHcOQp tUOH0lXahsvIPP+gF2z6TUVJGjsy6xBtQ4rXOcwvwOr7+OrlduDcaoMAIh+acCCK/iAv wdbvSE63om3/bHkhlqwDRfFvUd3MAKeANfPumdX6rG/bjofkpYMPFcLdR+ptINWce6bI SeFg== 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=qJmNVKXw+jiEBav45JwHqYwIUD6qRkoNmzlqiHhZXYw=; b=nH8SiRKqzXhqTft6Smeu5HweL7MgboGSVJAYMb1crdk1vAtPfKe3L40Kdcvu+QxyA1 bYV8ZaSxosMJ8lx9MfPxmxUQothEeCtDSPTefWVF5g9zLDRWiVkhzaOqQH2f+TdH5KFo nOJKVhKUBqyaGq1VOIVGTbHdMEvzY9BhCtMqWO2W590UQ8gdVx92Qf8eOSaf5qpV12pS Zm1UUZeALccUn7Un//Qs04Vc6VODAT98aKsZV2YVLNl8GeV8ghLz9HI22P+9Ud3WV2Uu lKXIiFYqnijoYF6inzjnTi7ob4chgFYvRtrhJV+ezQ3GQmpOIlldU+GzHWWSPZi9u9OO J/zw== X-Gm-Message-State: APjAAAU5qWnGvrkh393uDG1cY02QWbZFrPuac669CxgCjfnNsNuamAsk +N/IfRxFH1tufone4LGqkk2Szw== X-Google-Smtp-Source: APXvYqyxSzAza5WFSSlVKXrVP4+KymJQ53g9SeWnOUt+23LI/w627bfnQoXLtv0cPoaP3f09YW/qGw== X-Received: by 2002:adf:db84:: with SMTP id u4mr111565552wri.317.1578405581838; Tue, 07 Jan 2020 05:59:41 -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 t190sm26769617wmt.44.2020.01.07.05.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jan 2020 05:59:40 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Date: Tue, 7 Jan 2020 13:59:27 +0000 Message-Id: <20200107135929.3267-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Cc: robh@kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, spapothi@codeaurora.org, lgirdwood@gmail.com, pierre-louis.bossart@linux.intel.com, vkoul@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v11 0/2] ASoC: codecs: Add WSA881x Smart Speaker amplifier support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 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" This patchset adds support to WSA8810/WSA8815 Class-D Smart Speaker Amplifier which is SoundWire interfaced. This patchset along with DB845c machine driver and WCD934x codec driver has been tested on SDM845 SoC based DragonBoard DB845c with two WSA8810 and Lenovo YOGA C630 Laptop based on SDM850 with WSA8815 speaker amplifiers. Most of the code in this driver is rework of Qualcomm downstream drivers used in Andriod. Credits to Banajit Goswami and Patrick Lai's Team. TODO: Add thermal sensor support in WSA881x. Thanks, srini Changes since v10: - Add check in hw_free for prepare status Srinivas Kandagatla (2): dt-bindings: ASoC: Add WSA881x bindings ASoC: codecs: add wsa881x amplifier support .../bindings/sound/qcom,wsa881x.yaml | 68 + sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 2 + sound/soc/codecs/wsa881x.c | 1185 +++++++++++++++++ 4 files changed, 1265 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,wsa881x.yaml create mode 100644 sound/soc/codecs/wsa881x.c