From patchwork Wed Oct 9 10:46:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 175614 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp573475ill; Wed, 9 Oct 2019 03:46:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxuSqFJQaue7mTYv/4RlwBbbRIBZsLoO+v2OGzer3tbNdeYxdqEooUJz1bV8ID1rhhX9TTD X-Received: by 2002:a50:ec8f:: with SMTP id e15mr2248976edr.106.1570617986563; Wed, 09 Oct 2019 03:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570617986; cv=none; d=google.com; s=arc-20160816; b=V95d1G3Yaz51DD/+7jY8QcDIYdFdlaeQGL6R9wj7+ykeO5KPFD2+ZGJ0cRcBf1NLLp 8l2dSDYpihv7LRwq7qMVR3QqoO7TSBupxCyPcnbF5dbPd+Fnycs5cHOnWdRo4F4uWwOC x/bxHqLcO1TacCT79Ekf4NrQ6qKqd2YTGdTUZghwHsrW/2FWEjOjoJiowdCFdtHHiQgg bgxk60sRT/QNn3GTWY0ySK3sdNGM13xPkRrNCsW75BMy8eFQXi8zrtIT59NdbFPZqoXv TKkLHoBlw5eCZPUwQ8Xauneu7aBMDqjXYNqBXAi44KImzZGc+DuFkcuIb1MBCgo9mHEa nsow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bLt5Gpr+TBYMqPJckYDfypWA6Ci7GEvQRrL7skWxG/M=; b=sjk3SKOv1YgE+2LKbx+qPHq+dnxGEI3QLdAHbXOZ494MrYd5IR+9RRReMq/27NLtQq ngaxe4hOXmbzScfHov0v112xN6OoAv6BdpowVkAHsDu/s25bHRT/AtYUozdLTZ58utax NA5WBoh9NBoFH54Xotl5dEl7a4ADvQmgcpGPcGUPzT5wuW4VQZA1PvzS8wCOw5mZV/mf rXc9BNuDCINBTXJxIZeH0HXIhAOanE/yGAh5KUC2uRQET+3SRSQb4sXXSw2WAisWY3nN 7a584Eoeo4lKufNnLnd9VQ8l78snvV81wG4Negf+FXsYFcKx5jsldCF7br6sX/VlkbeY dy5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJZeN1la; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f45si1103042eda.345.2019.10.09.03.46.26; Wed, 09 Oct 2019 03:46:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RJZeN1la; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730627AbfJIKqW (ORCPT + 26 others); Wed, 9 Oct 2019 06:46:22 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:38061 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbfJIKqW (ORCPT ); Wed, 9 Oct 2019 06:46:22 -0400 Received: by mail-wm1-f66.google.com with SMTP id 3so2010799wmi.3 for ; Wed, 09 Oct 2019 03:46:19 -0700 (PDT) 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=bLt5Gpr+TBYMqPJckYDfypWA6Ci7GEvQRrL7skWxG/M=; b=RJZeN1la5DmYjMu7aEtVsZxkzkziIx5DoE0FOl6k0Gy69PkBvwxSj7bKVvvAX5NSAv 7C4BiuBGD1HbiwaeB7rJIP7sG6AFMKZJtHieX2I5hXxGttR6KG6m6P2t9VdR7ngJXgPX C8thnd80knly0m37L9CTTL0FnJ0z0KrgTIXoCgY8daWSx1pKdyy2BhGg/k0A0GroKDZI rPzUMzf1HVUycYXUG0buy4nw8hHIZvOtjOunUOqnPrFnF0eDJk5R9Hw9RZl5BDXjQg3Q waqeilWohfIHKefEDD6kOe6zAjwVGuYCy49sTvsnvKkjbDsW4VFuZWsso0/q5Xe3Wsbn aj4w== 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=bLt5Gpr+TBYMqPJckYDfypWA6Ci7GEvQRrL7skWxG/M=; b=J+bZAH/i+hwbbFgoqfOQQziaHNBbUI7SdCyqIRPi/zzi/rUBfR7hZJFEBpwS5K2zyc D4eAm4YinY6LxOtxv/XO1DEN419zc3Qw3w6PWThWrBgJ4Lf2r3wFVgXiuhRIFbPnbNIP cQqEotwO4GL48KDZ4VOxQ+qzBuEQsePbkWtcXtql8nMJbW4ClzvEwonYFVpGpNc2Ptn6 Xp4JrKpjeLxzuoprG0DgRnSQkVd793S4pVk0Rrr+5OIBJjLUtXdozyXMUTRQC5NFdUXE u1PfcmURz2F1Mi716gYjenpOb3KN3GVZdzQ5aZbsUr8MOh7wrbhnlg1Km7aroRQ1Dit8 eRZA== X-Gm-Message-State: APjAAAWGCxnwXnXv7ZeccUdid9YgC9OaWCAxSZbRu6N+YqacqDZji2Bs /nLo0nVy6mEkiR2BXCED+TLdlA== X-Received: by 2002:a1c:1901:: with SMTP id 1mr2091192wmz.28.1570617978608; Wed, 09 Oct 2019 03:46:18 -0700 (PDT) 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 g4sm2131248wrw.9.2019.10.09.03.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2019 03:46:17 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org Cc: spapothi@codeaurora.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, vkoul@kernel.org, bgoswami@codeaurora.org, Gopikrishnaiah Anandan , Srinivas Kandagatla Subject: [RFC PATCH] ASoC: soc-dapm: Skip suspending widgets with ignore flag Date: Wed, 9 Oct 2019 11:46:03 +0100 Message-Id: <20191009104603.15412-1-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sudheer Papothi For wigdets which have set the suspend ignore flag asoc framework shouldn't mark them as dirty when ASoC suspend function is called. This change adds check to skip suspending the widgets with the flag set. Signed-off-by: Gopikrishnaiah Anandan Signed-off-by: Sudheer Papothi Signed-off-by: Srinivas Kandagatla --- sound/soc/soc-dapm.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.21.0 diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 13544f7c850b..4ecfd32e59b8 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -303,6 +303,8 @@ void dapm_mark_endpoints_dirty(struct snd_soc_card *card) mutex_lock(&card->dapm_mutex); list_for_each_entry(w, &card->widgets, list) { + if (w->ignore_suspend) + continue; if (w->is_ep) { dapm_mark_dirty(w, "Rechecking endpoints"); if (w->is_ep & SND_SOC_DAPM_EP_SINK)