Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3943871pxb; Mon, 21 Feb 2022 08:48:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc39CDdCLzld1UfedJe0NM2ITO16hXlQG0u5k+3/J4AAVXGchP+c3rr69oaBsiNGFfA75v X-Received: by 2002:a17:906:960c:b0:6ce:f326:f0d with SMTP id s12-20020a170906960c00b006cef3260f0dmr16705436ejx.154.1645462086723; Mon, 21 Feb 2022 08:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645462086; cv=none; d=google.com; s=arc-20160816; b=DO5kafTvLQRKh8/2qThwaOQ9T63CCc0Gt5QmcsLxdLsTe67jLDolww1h+RoBLsToD1 3VI86abdBGjhWTWbRtKAcDnddPmvxgpCGZZowCV8O/vMCpF+oECWiBQBghnW02TluubS MoK4T44Z1mbsNbsu9cBy4pPCPeDhT5uJiMgEdUhYTKMTkIOTFlJ3xeNy89Hq2sMMkm7T PGe2oxZ8I7MQTeVoZ9C7WjmybHYbp46G6wIzWi/4lz/30FYkbv60AOdY9igT8EChmkEL 6WcotaivG6UR5jiVQQOLct2WazlhhGl8sbOPAur//4oftDzZazbhBbZ92WV7ujSbu/0C kCIw== 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=zmju7T8l5cjpjfMcYV9GyQ+faFiFa5fab7CyUuOg12E=; b=BTbmLxzXu3UoY8anSL8dMRVsU4NY2jZQwuPHi5CVF9txeQMyx6it5otvodjOqfgqf4 Gs78WXpKjp4u1Y4SkvvdcUdsEWBULrqnVnh/+xtPP/2lPparsuXFbWDwPvo2kqv6bsbf Rk0GO+31A8BCbQ1yTbZTklDxB2rPNO0PfngUREBkSJVUozeDZxqvRnAV/Sifp39ZOQMf oc5mbxIU5MWMZImVxg3BwRk6K/GDBS3kEdLyx1rs0bezrvvnyV9ApgYuG3zboCQiL+nu 1qlhb/914OBbPw85yYTxdw8V883Ruy7N/Om7ZTFu/qBvUXWAwcHoo0xeYCGGCQP3pT6m btew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qtMgF8es; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt16si3139984ejb.663.2022.02.21.08.47.43; Mon, 21 Feb 2022 08:48:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qtMgF8es; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S1358615AbiBUNLH (ORCPT + 99 others); Mon, 21 Feb 2022 08:11:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1358609AbiBUNLF (ORCPT ); Mon, 21 Feb 2022 08:11:05 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 220EC1EC59 for ; Mon, 21 Feb 2022 05:10:42 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id p9so26966323wra.12 for ; Mon, 21 Feb 2022 05:10: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=zmju7T8l5cjpjfMcYV9GyQ+faFiFa5fab7CyUuOg12E=; b=qtMgF8esbXrSOD1/RGSdSaMPZQBu6eqWm0IzOK1TFEEH9fqLGnbomg0E3DafC8rTAK ezivsrYSoEs02yuEDa4buWFnQQUybuVDfpwDoARvOo6KUJDuVkhr2XghRdsiR0oP6P58 em8mZdfaJvXF7v96IHpgYeZ+1C0mDJUPx5KpNPhShAvLSqjTUUr5glb8vRBBPDXtaic3 Aa1qeDx/ai+6UVZyAtXXblEORCgFzBKPh6TXJ53k4kxRPFQMEJ4/2LpwrmrZJP9VLA58 NpkdeHm1MWkVZBlSYIBuWYeNHproxubOHGdzzIfc+XgCJokE1C4K9NgXXVPi/1H/LJ7d 7s0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zmju7T8l5cjpjfMcYV9GyQ+faFiFa5fab7CyUuOg12E=; b=e0morBgqEZeUIwkjTaiCym4R4xb4u6ZJUXfKk146fSKxJWIZ4QxrLHiZaRjef4H7eD iSHYXy2INGcx7KN/BqNL7azWROoOkOEG71MS0P8qQoQXNRBLhM2tvEau7UjiGsRqtWVM ta0I5QnSjVtjVJbvitGic33wyxUl9aCiTMarMEU7hHXR91fPSm4Gdool8xGBhPlCyPgl Se7k0/ZdNtlQgk4KGQtuIt0nWtTH8VmCc3+/wbZoCNT4gNHdSPKKrlS6KldQOs0NqrN4 h8+S7LC7Qks3I+8yUn0H3QtXxWwPfv4UiHmLz+cAUOhj3NreMOXjo6PWgpe7tuUoOyx2 Eq+Q== X-Gm-Message-State: AOAM5310l+ZMhtvCM53LJJwnpdK0peDTPJBsKX7pttRKDGe3nYCMVtGP L3nBRUeL4LYOEt9zdFYMLFTZcQ== X-Received: by 2002:adf:e8c5:0:b0:1e4:7c8a:21a7 with SMTP id k5-20020adfe8c5000000b001e47c8a21a7mr16004022wrn.516.1645449040742; Mon, 21 Feb 2022 05:10:40 -0800 (PST) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id 3sm49412801wrz.86.2022.02.21.05.10.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Feb 2022 05:10:40 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, quic_srivasam@quicinc.com, Srinivas Kandagatla Subject: [PATCH 00/10] ASoC: codec: add pm runtime support for Qualcomm codecs Date: Mon, 21 Feb 2022 13:10:27 +0000 Message-Id: <20220221131037.8809-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for runtime pm on tx/rx/wsa/wcd lpass macro, wsa881x and wcd938x codecs that are wired up on SoundWire bus. During pm testing it was also found that soundwire clks enabled by lpass macros are not enabling all the required clocks correctly, so last 3 patches corrects them. Tested this on SM8250 MTP along SoundWire In band Headset Button wakeup interrupts. Srinivas Kandagatla (10): ASoC: codecs: va-macro: add runtime pm support ASoC: codecs: wsa-macro: add runtime pm support ASoC: codecs: rx-macro: add runtime pm support ASoC: codecs: tx-macro: add runtime pm support ASoC: codecs: wsa881x: add runtime pm support ASoC: codecs: wcd938x: add simple clk stop support ASoC: codecs: wcd-mbhc: add runtime pm support ASoC: codecs: wsa-macro: setup soundwire clks correctly ASoC: codecs: tx-macro: setup soundwire clks correctly ASoC: codecs: rx-macro: setup soundwire clks correctly sound/soc/codecs/lpass-rx-macro.c | 49 +++++++++++++++++++++++++-- sound/soc/codecs/lpass-tx-macro.c | 45 ++++++++++++++++++++++++- sound/soc/codecs/lpass-va-macro.c | 36 ++++++++++++++++++++ sound/soc/codecs/lpass-wsa-macro.c | 43 +++++++++++++++++++++++- sound/soc/codecs/wcd-mbhc-v2.c | 26 ++++++++++++++ sound/soc/codecs/wcd938x-sdw.c | 1 + sound/soc/codecs/wsa881x.c | 54 ++++++++++++++++++++++++++++++ 7 files changed, 250 insertions(+), 4 deletions(-) -- 2.21.0