From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAA46C433EF for ; Thu, 19 May 2022 02:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232735AbiESCNu (ORCPT ); Wed, 18 May 2022 22:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231824AbiESCNt (ORCPT ); Wed, 18 May 2022 22:13:49 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBF62527D7 for ; Wed, 18 May 2022 19:13:47 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id bh5so3503770plb.6 for ; Wed, 18 May 2022 19:13:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=iR1vyDMBro9x6LnGfqGQlvzCYtDWr1sZHPHxpHQE8Rs=; b=oSrhapKLlz7CT4Nz8DBVB2RpdyAiWXZ9b39FRnhHiwBYkY2Egmam3PdnUeYea7RMUi 4LpZt0zpH+l1AKsBkh+u1Pxtyec/JEDEPry7vYMGoNtev/Iw1j0zvZBDD0gmmTjpAfxn 1MmTWHfRN14FBo4QUg4BR41+HrqDnSfTxHdkEfPL4xuUjdxLgYEc9IwrpUGcV9qcEzxr nT8ENp30Z57KwJdzaaRRMoA7oTMFNCH1qIGAyl8Wqn9MDyHGq142lX/P+PxegFMhfiD7 0YtjTmB+Ud+8erDfxkaiLPXKzo6LAzBsqfDPIX/cHDjvLSE6qIyI58h4YIj3Lgh0gj8j ITyg== 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; bh=iR1vyDMBro9x6LnGfqGQlvzCYtDWr1sZHPHxpHQE8Rs=; b=aGmPE1JSa4ewyfgQRE74k3qWfaU+UI8Fb/JMa7S3Y05Iu3TXko6hUEeNqUUSDtokH2 m2bbyVOWQ5KnXSOIEz1SVzV8dHmyLNsmaD5eUufnFs2+oQ8AKKV4OLlx/GZatdzsaa0+ PsygOTwJGx8wpcMSYYuVPUlJ0JxO4jKVLLA9lK1OLdlc1v+GHyenMwy3EbEVji7iWSGE mlGsW64/EFF8Rhvb9FFy4hW//Bzn3JIkD+0otzOWgC0zIQE6RVsCaYW++1hPptMkAKCK E0QNCaf9MERXY61/yvVwnkS4fsHM2qNpW2bTm0Iw9VFxXLzjYZoNfgICiXmwNXSLcAro Y8ow== X-Gm-Message-State: AOAM533YW2CN2mJvMDRsHZxOg7+VNOdcwxB5H2RO7VqYpFIYW7J52Fvl pe0DNTec9xjJazSgLAGvznGICRYi/h0= X-Google-Smtp-Source: ABdhPJxQMraZkaMnNRxglh/xUJ7JPSQMu6PA95nusyOA4sVUz+UJRi/+eh4oZ+526V/Wh2wce02DNw== X-Received: by 2002:a17:902:7296:b0:151:62b1:e2b0 with SMTP id d22-20020a170902729600b0015162b1e2b0mr2575134pll.165.1652926427058; Wed, 18 May 2022 19:13:47 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:568:8697:c74:ab15:730:f5f3]) by smtp.gmail.com with ESMTPSA id je4-20020a170903264400b0015ebb3bf277sm2366603plb.238.2022.05.18.19.13.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2022 19:13:46 -0700 (PDT) From: cy_huang To: broonie@kernel.org, perex@perex.cz, tiwai@suse.com Cc: oder_chiou@realtek.com, lgirdwood@gmail.com, ritchie_hsieh@richtek.com, allen_lin@richtek.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ChiYuan Huang Subject: [PATCH 0/2] ASoC: rt9120: Fix 3byte read logic and optimize 'PWDN' control Date: Thu, 19 May 2022 10:13:36 +0800 Message-Id: <1652926418-8519-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: ChiYuan Huang Hi, This patch series try to fix two things. - 3byte read logic bug - Use regcache and pm_runtime to optimize 'PWDN' control ChiYuan Huang (2): ASoC: rt9120: Fix 3byte read, valule offset typo ASoC: rt9120: Use pm_runtime and regcache to optimize 'pwdnn' logic sound/soc/codecs/rt9120.c | 113 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 106 insertions(+), 7 deletions(-) -- 2.7.4 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 6D512C433EF for ; Thu, 19 May 2022 02:14:50 +0000 (UTC) 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 8F82786F; Thu, 19 May 2022 04:13:58 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8F82786F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1652926488; bh=phmyvsTZoWdKV7uRW6vVNJ5PQLT+aOAqlOk0o1bKFJw=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=EGAdUXR+agwoAeQClRxIjYESk0pDaJT+x9j6fYI1l58Ou0VYZ8q5XrPDqUFFmzL1P GDIwyuLBS9LVxGyc2y3aZNxSMeTEETVuiz2InlDnOoP1hCp8SV8lvps1uN6o1jX10z q7lGJfosGVXii9YqVBq+PINFNkAdUjVkHctZRSKQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 29661F80237; Thu, 19 May 2022 04:13:58 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id ECCC8F80269; Thu, 19 May 2022 04:13:55 +0200 (CEST) Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (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 72A36F800D1 for ; Thu, 19 May 2022 04:13:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 72A36F800D1 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="oSrhapKL" Received: by mail-pj1-x102d.google.com with SMTP id v5-20020a17090a7c0500b001df84fa82f8so3843722pjf.5 for ; Wed, 18 May 2022 19:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id; bh=iR1vyDMBro9x6LnGfqGQlvzCYtDWr1sZHPHxpHQE8Rs=; b=oSrhapKLlz7CT4Nz8DBVB2RpdyAiWXZ9b39FRnhHiwBYkY2Egmam3PdnUeYea7RMUi 4LpZt0zpH+l1AKsBkh+u1Pxtyec/JEDEPry7vYMGoNtev/Iw1j0zvZBDD0gmmTjpAfxn 1MmTWHfRN14FBo4QUg4BR41+HrqDnSfTxHdkEfPL4xuUjdxLgYEc9IwrpUGcV9qcEzxr nT8ENp30Z57KwJdzaaRRMoA7oTMFNCH1qIGAyl8Wqn9MDyHGq142lX/P+PxegFMhfiD7 0YtjTmB+Ud+8erDfxkaiLPXKzo6LAzBsqfDPIX/cHDjvLSE6qIyI58h4YIj3Lgh0gj8j ITyg== 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; bh=iR1vyDMBro9x6LnGfqGQlvzCYtDWr1sZHPHxpHQE8Rs=; b=NO4g6/JO8li4GkcKjSkj7GLQCyTvF1+62/bfnnEHkRrdDoeCijwPpiX/DsB174syPX TxH2WeBtCQfR0Zl+ZbDoVayFgwAM/RUJs0ipKMkFkucc8fK5kcynBdt+IN0dFbmwI/Jx TG2ObbfJXKH8Vs8D09jw5hYYNeFvMkzhuKonL+fD5yFobp1soVi8XvQyXg++HMIIPdbH t9ZPd7LRnjvwAM19sTOSdbXJ7la1d/LfExh/6BpBoW7Po+IzeWTUUOGLzbPV9adPyiKV cdHRy8Cw0NoiCI7Jp+cl0f6VEnq6XsUek6bLzSKb5ZKMEBCiwIAPbITbteJnagORUfKe Hzfg== X-Gm-Message-State: AOAM531wltv812LcE8KAd+Ad0vIvwifM3fjtbF9sXkgfT1i5z3XVw0HQ ol56lHYYLcYJLaLkxSnlIOI= X-Google-Smtp-Source: ABdhPJxQMraZkaMnNRxglh/xUJ7JPSQMu6PA95nusyOA4sVUz+UJRi/+eh4oZ+526V/Wh2wce02DNw== X-Received: by 2002:a17:902:7296:b0:151:62b1:e2b0 with SMTP id d22-20020a170902729600b0015162b1e2b0mr2575134pll.165.1652926427058; Wed, 18 May 2022 19:13:47 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:568:8697:c74:ab15:730:f5f3]) by smtp.gmail.com with ESMTPSA id je4-20020a170903264400b0015ebb3bf277sm2366603plb.238.2022.05.18.19.13.42 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 May 2022 19:13:46 -0700 (PDT) From: cy_huang To: broonie@kernel.org, perex@perex.cz, tiwai@suse.com Subject: [PATCH 0/2] ASoC: rt9120: Fix 3byte read logic and optimize 'PWDN' control Date: Thu, 19 May 2022 10:13:36 +0800 Message-Id: <1652926418-8519-1-git-send-email-u0084500@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: oder_chiou@realtek.com, alsa-devel@alsa-project.org, ritchie_hsieh@richtek.com, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, ChiYuan Huang , allen_lin@richtek.com 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" From: ChiYuan Huang Hi, This patch series try to fix two things. - 3byte read logic bug - Use regcache and pm_runtime to optimize 'PWDN' control ChiYuan Huang (2): ASoC: rt9120: Fix 3byte read, valule offset typo ASoC: rt9120: Use pm_runtime and regcache to optimize 'pwdnn' logic sound/soc/codecs/rt9120.c | 113 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 106 insertions(+), 7 deletions(-) -- 2.7.4