From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C8BE3D891C for ; Thu, 11 Jun 2026 11:59:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781179158; cv=none; b=H0DyifheNfBvt9D44EYUZB7dGdj5/IKMs30Y4N4V/aCwrEWz/71zJiRM9rH/K8C3Dy5DGFfRCvYcIz1h7SQ6Zeih8LN4XSon5WObXKajeuIDRrgczQHk3Sp4sky9R+wruFn4PiODRFr/d/pvhv9vVaBBE+XDWJrkuaEfBK0t3f4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781179158; c=relaxed/simple; bh=utVOYVp9qp68LCSOMYNLPnwiFVy3TdeNBuCUNgtw+7g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Go2BvuBLd46ilDXcsXxC8o0617e3p/sE8I2nxCLH8LQTnpicGg7pRrodquP1IzhczgJItHSuasc88AknN32i8Gx/lY7BXoInQhM2kyx0deB38w88d+tOqDDnuVF7Ns3YGqZq1jFH6PiIH/ezMZF2WKEnoUvGja+cuiQ086mU4rU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=S1HqzyPF; arc=none smtp.client-ip=209.85.216.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S1HqzyPF" Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-36b9d265355so4794649a91.2 for ; Thu, 11 Jun 2026 04:59:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781179155; x=1781783955; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=dwDURSfFZWI0LYaF1I3RF5swX12C9Yg3hS+CdzJ8gaM=; b=S1HqzyPF0BNVme4StsqCAi8o1+Uru+AXyB6jkSZaXfNGSyAH95GJmkFr20TsuJUp4j +aoT91pQHFibsoQUxCBTZtdLVPlVdxDZhG9g6MyJJdVkd8ELuETsSbbuGgkfo8URkBvN rbeQ/cm9Ceak5/czitIy8MxuwFsDimLPiSfLA/VbdURhDO297GHRLSzF1U/fanDUgaIT 1d27ZI7NPm5QM9V3zOx2RVQd+KtWVQunUnmdwcbeptzPySIVIWrBclqnFk2Jz2k+qbCB D2WsYaTjvv+MZoVnRnfXSp5kYC+n/fWkvqcskizdoyuQ5Y+jbe98JoGlYOvi0UwIVWqE PIZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781179155; x=1781783955; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=dwDURSfFZWI0LYaF1I3RF5swX12C9Yg3hS+CdzJ8gaM=; b=JUyj/9R8Y2e40MYa/Qk8e5e2mHP9HpiqDIlzsOMDbNR9G4ggqckVyC3jzdxYsn8vbi ZnI/JnGbVRP2CJbJ2gj0uzE1UCtcnzSt9jUizAKpnijoFCiOwZb70AbszZV9VPLAelEm clzA7uBP1nIFr+JTv/R8G527eTZO1AHexiZ2vM2Dt6FiZ0b7xZ2oKlo3kzHYQ1mVaE4G mBWP7fvk/n41949ZNb28+BKXZ86vSblImyMVd5LT+XtU4FYfrIBcBRAzOGeLvdEA+qNg GTW8DWyyMfTxf3bCB5mgOeMwNFXVrtrj/5cF2E46XSZzQNrnW2Hwi3Xf/3Fpy5Xqabfb LbcQ== X-Forwarded-Encrypted: i=1; AFNElJ8VKICIu/RWmO19i3hvXJHrle/QYi4ebp/fMeBk4EzB4a2JTKZbh0RVfWMJw2uChLACKucb0tiplIB+5dQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzNR/2mC4HDIlsQvLtad6dbgl3WzqTgSE4UAbJ0wmVwfj4rME/g YG8hRXQyqElhdLTHX1HPILFwhkgGF1PBjHxWv+YzO+Pbq2EkirFnQpak X-Gm-Gg: Acq92OEEM2afpi0UEo+TGdVyn898G85oLACQuoyVQZ8PQTvHI7SIeNMm336xRVvGLCE 2zlWV3iGwLj5md22Zeb+LN49zyceaBUGDaMPYYVm1uxRiyqRsO3yvGNHZvN1zj6GK8xXb4xB3Gs xpHO+/Fi5hFgvLe63OaKIIve/g1ATEJs2+QimStmyZlOF89XX3B4URIFtHss0Y+pbCBt8cxkyE6 kqbEI9rH8KgYsnB8ETQrCeVtnLulznqLd22oE95lFnxUHovB+uqqJ9bjue5R4rW4EAFm8rppsiZ 0+Pxuas2s4SXFWl79VWD4O0IUKhypEiFZHL4po0svTPcTC3EuW3p/bndbRSdDgD5c/v6nUikB47 9KwZspVhOpUNhU8XxKJogm4YZLcbhcnw77kXCRzDr7yja8DUnxUvrODwoDr0OZRnm5xatgq+9wV qHMIDhca+ZDVMhjoVsQBTTyApatvYjrKuOMjvmdC2Q9itY13M1QYvrA8lJK3Qd+1niYplK X-Received: by 2002:a17:90b:1a84:b0:369:f48a:f24b with SMTP id 98e67ed59e1d1-3778ebecbeemr2984536a91.0.1781179155190; Thu, 11 Jun 2026 04:59:15 -0700 (PDT) Received: from phuc-desktop.. ([183.91.15.56]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37753d02ca4sm2499692a91.12.2026.06.11.04.59.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2026 04:59:14 -0700 (PDT) From: phucduc.bui@gmail.com To: Mark Brown , Liam Girdwood , Cezary Rojewski Cc: Jaroslav Kysela , Takashi Iwai , Peter Ujfalusi , Bard Liao , Kai Vehmanen , Pierre-Louis Bossart , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, bui duc phuc Subject: [PATCH 00/20] ASoC: Intel: Use guard() for mutex & spin locks Date: Thu, 11 Jun 2026 18:58:41 +0700 Message-ID: <20260611115901.80438-1-phucduc.bui@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: bui duc phuc Hi all, This series converts mutex and spinlock handling in Intel ASoC drivers to use guard()/scoped_guard() helpers. Most patches are straightforward conversions. A few patches include small cleanup changes as part of the conversion process; these are documented in the individual commit messages. Overall, the series is intended to simplify the code and cleanup paths, with no behavioral changes to the affected functions. The series has been compile-tested only. Best regards, Phuc bui duc phuc (20): ASoC: Intel: catpt: ipc: Use guard() for mutex & spin locks ASoC: Intel: catpt: dsp: Use guard() for mutex locks ASoC: Intel: avs: utils: Use guard() for mutex locks ASoC: Intel: avs: probes: Use guard() for spin locks ASoC: Intel: avs: pcm: Use guard() for mutex & spin locks ASoC: Intel: avs: path: Use guard() for mutex & spin locks ASoC: Intel: avs: loader: Use guard() for mutex locks ASoC: Intel: avs: ipc: Use guard() for mutex & spin locks ASoC: Intel: avs: icl: Use guard() for spin locks ASoC: Intel: avs: debugfs: Use guard() for spin locks ASoC: Intel: avs: debug: Use guard() for spin locks ASoC: Intel: avs: core: Use guard() for mutex & spin locks ASoC: Intel: avs: control: Use guard() for spin locks ASoC: Intel: avs: apl: Use guard() for spin locks ASoC: Intel: atom: sst_stream: Use guard() for mutex locks ASoC: Intel: atom: sst_pvt: Use guard() for mutex & spin locks ASoC: Intel: atom: sst: Use guard() for spin locks ASoC: Intel: atom: sst-atom-controls: Use guard() for mutex locks ASoC: Intel: atom: sst-mfld-platform-pcm: Use guard() for mutex & spin locks ASoC: Intel: atom: sst_ipc: Use guard() for spin locks sound/soc/intel/atom/sst-atom-controls.c | 85 +++++++-------- sound/soc/intel/atom/sst-mfld-platform-pcm.c | 51 ++++----- sound/soc/intel/atom/sst/sst.c | 37 ++++--- sound/soc/intel/atom/sst/sst_ipc.c | 9 +- sound/soc/intel/atom/sst/sst_pvt.c | 19 ++-- sound/soc/intel/atom/sst/sst_stream.c | 52 ++++----- sound/soc/intel/avs/apl.c | 7 +- sound/soc/intel/avs/control.c | 7 +- sound/soc/intel/avs/core.c | 11 +- sound/soc/intel/avs/debug.h | 9 +- sound/soc/intel/avs/debugfs.c | 18 ++-- sound/soc/intel/avs/icl.c | 10 +- sound/soc/intel/avs/ipc.c | 105 +++++++++---------- sound/soc/intel/avs/loader.c | 14 +-- sound/soc/intel/avs/path.c | 39 +++---- sound/soc/intel/avs/pcm.c | 21 ++-- sound/soc/intel/avs/probes.c | 11 +- sound/soc/intel/avs/utils.c | 39 +++---- sound/soc/intel/catpt/dsp.c | 11 +- sound/soc/intel/catpt/ipc.c | 12 +-- 20 files changed, 231 insertions(+), 336 deletions(-) -- 2.43.0