From patchwork Fri Jun 28 10:10:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 808337 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 B2E78154C0D for ; Fri, 28 Jun 2024 10:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719569495; cv=none; b=QbbrKJ9hNO+ljUYaZ+dXAFAkZoxqOwADb2UNnFZhpABy0FQYkc59wJpkzOqTJ0bx6upPDECgngnnGlew9atMDNhSRp2dd1p9WA/l/jQPeG0c7WVeIWCruMe2eRRr6BraBJrZLwQ0/uhPZX/kGv9tf5niyUjiz2eCpwk4o99E3NY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719569495; c=relaxed/simple; bh=+/S4oEpOVrDy/MErgYZK3QlF9tlGNIxFq9HMRBhfBvs=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=HGGzEQQ5VlKjwVIlXCUVlIoSjRNXryIeNBKKO+Cm9XXAUaHwv8ORsml/JgAdn0sLjX7fCfu8oQQxuR0BqY+a6lijo8KJ0feV1Wnd4SacYCYA8qGBsIh+z4rCMToFbvLTFeo4W1RAW7yKW2PrSjcXj4xD46LSQaYiCpEBokru0H0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=mqiPDY6R; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mqiPDY6R" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2ec50a5e230so3722971fa.0 for ; Fri, 28 Jun 2024 03:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719569491; x=1720174291; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=KM8DD+cslID7pkEl7Dub+wrgxyjLr4VeNk8hahbUqJQ=; b=mqiPDY6RrYG4JeKG/lchXa44QY9Zv0Fxny2I44zmR1FnpBxhrM1ix48N5BxpLOa3oM 1h8FgqH4lXBXCkCXkcrmjd+7aA5o5FtBWToPEDr1OXPEb8o0boIEkROuH+jv8ZMXpyBG htc1BmrT+fVnn4Ey3zOE/YzcNQdg8guHLAJiKMSZg51+gIoevShUgeHb69npJgugzumC k2RHdFQintD69A4wKHMXDw0yGXUex8lF46cE6WJAJAZ+8ddxHF8cPTOwZl1T4x9qOi8Y 6MLEKC47bdlmcO0fYzjAOqOac9ugcruUaXnVEI/DXs+u+vDHsma7IjF13/qcruSc2FmJ oOOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719569491; x=1720174291; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KM8DD+cslID7pkEl7Dub+wrgxyjLr4VeNk8hahbUqJQ=; b=LzWpOEXI7GsVChWo6KGH5AfrBF8cLtbM+S1jpgmLbCCjicHOreMa6/Xvf+ksebFuhA xAJ0aUwgf7yH7FjY23SK8lAr7B8/OwQwOv7AduE5JhxW4IX6BCiv0pvt0zgIGh8ouzyC bVuLvIifqGIJHXUaOEmD7QpsHl9GZ1mNj6OJZp1Eb5OpZZbRUpiMzW0L3mp6pfpjbSjJ j+MqYx3Br1NW7Qr8gvulgkOzEVUZSQi4ppXeDZ2Mwp3TtQB+SKe6v3WQntawCJpTMUgR ySbSjb02cYS9wngiO0avnYynqb46UHTxa4f4jiIltjsZRLvo9QFKYho+WftO1jpiPwyX 1SYA== X-Forwarded-Encrypted: i=1; AJvYcCW5MOYpVrrQzi8eXoFd3vwX9gTPgHtiR7odVScnd7lTZaEt68QyOg9vGwALBRISRltX9B5kTttXd3VhA6Iay/MU2pGtDPlKX8Y1OftPDw== X-Gm-Message-State: AOJu0YxIoA8T8xEDPOfEtmLO80oOpMJ+2ZGVxstRqiVTGElf8H19cAZN mOUivjsYBUnbF0b0rHglXbhF5SqMQ0up2gG/7BWTHjmZJE4bQvnqa7ULGtZ0jyU= X-Google-Smtp-Source: AGHT+IHGFbihiK4LC17Z1HPkdsgv7xrg5O3Etzoo9ELEAqXsyotSeiGHHEDWd+tDnW/Vp67/PjINYA== X-Received: by 2002:a05:651c:19a2:b0:2ec:616e:1c92 with SMTP id 38308e7fff4ca-2ec616e1e74mr107676391fa.2.1719569475239; Fri, 28 Jun 2024 03:11:15 -0700 (PDT) Received: from [127.0.1.1] ([178.197.219.137]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4256b0c15f8sm27024605e9.47.2024.06.28.03.11.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jun 2024 03:11:14 -0700 (PDT) From: Krzysztof Kozlowski Subject: [PATCH v2 0/5] ASoC: codecs: lpass-rx-macro: Few code cleanups Date: Fri, 28 Jun 2024 12:10:54 +0200 Message-Id: <20240628-b4-qcom-audio-lpass-codec-cleanups-v2-0-e9741143e485@linaro.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAC6MfmYC/5WNSw6CMBQAr0K69pm2IL+V9zAsavuAl2AftkI0h LtbuYHLmcXMJiIGwijabBMBV4rEPoE+ZcKOxg8I5BILLXUhS13BvYCn5QeYxRHDNJsYwbJDC3Z C45c5gq5UdemVk2XTixSaA/b0Pia3LvFI8cXhczxX9bN/5VcFEtBhrupGOZ3X14m8CXzmMIhu3 /cvDY1I39UAAAA= To: Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Dmitry Baryshkov X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1289; i=krzysztof.kozlowski@linaro.org; h=from:subject:message-id; bh=+/S4oEpOVrDy/MErgYZK3QlF9tlGNIxFq9HMRBhfBvs=; b=owEBbQKS/ZANAwAKAcE3ZuaGi4PXAcsmYgBmfow6hXMAhvr9f3euJp7I7UGeii4vjsSCL5dyf 0dQcDhU8YaJAjMEAAEKAB0WIQTd0mIoPREbIztuuKjBN2bmhouD1wUCZn6MOgAKCRDBN2bmhouD 1/h/EACK/mT4hTlY/Gsqi924GgxMfmmCjxJcsbhVBxXqRdk5McOUeZeimSfM2jk1Qa7xwV9mtLv aH7mlwTsvWvXGhnzc89zVqSNPTLcxbRcTp2kzw/hcqLLkxhrUQ4bH9HKAOKDj28EEZ9KMnokauc eFiJFEy97/wP1P5mIU7ZL/u/luEqJgQReRYBS6JFCyPpn1rl/b5rSzUrbW6pQImR7hXdHyrgsxr ceSTCaMDFHcVeAq1lhrkItJn3+7SmNb07GYWfU90xK2uZ2LlmBgRMBILPn3ZSvsBkDP8dnoKrt2 iPtTOo37byd0B5QlbG6FIF6qrFQP06gTLKg/MNxvQhckNZSK00eScFrwC/XLWHyEm6is+Vl2RoR msxHrNi81U4g51Ysb2SynbI2U9p4kdwLw5bkOWYiN8p7wUgSD0KoTclVKgDBu1yu8QxHaNy4lmB tWSXEGuj735nnWP7ldjj+qqXKOxP4wuMV83ksIJZ95HdTH5O7a6omqNiiGHdVK8miTgmjNrgmZf xAHgRqk5EAuvf6vMkh/WRRJW0ciWFaMIKvF9VcdfqJtHxdcinZUWBwL2gW5FMEMPKb8LQE69HB3 bbXaeiPZiNM+XGFBzSTjLIuH67VlePOCwN1OXJqG/CmCisjpS2Jbnxnfusr+nPsphoA803YA90j NKZIK/tDtcY7Uaw== X-Developer-Key: i=krzysztof.kozlowski@linaro.org; a=openpgp; fpr=9BD07E0E0C51F8D59677B7541B93437D3B41629B Hi, Changes in v2: - Use cleanup.h instead of devm(), therefore not adding Dmitry's review. - New patch #5. - Link to v1: https://lore.kernel.org/r/20240627-b4-qcom-audio-lpass-codec-cleanups-v1-0-ede31891d238@linaro.org Improve a bit the Qualcomm LPASS RX macro driver and align similar parts of code with LPASS WSA macro driver for consistency. No external dependencies. Best regards, Krzysztof --- Krzysztof Kozlowski (5): ASoC: codecs: lpass-rx-macro: Simplify with cleanup.h ASoC: codecs: lpass-rx-macro: Keep static regmap_config as const ASoC: dapm: Use unsigned for number of widgets in snd_soc_dapm_new_controls() ASoC: codecs: lpass-rx-macro: Use unsigned for number of widgets ASoC: codecs: lpass-wsa-macro: Simplify with cleanup.h include/sound/soc-dapm.h | 2 +- sound/soc/codecs/lpass-rx-macro.c | 31 +++++++++++++++++++------------ sound/soc/codecs/lpass-wsa-macro.c | 22 ++++++++++------------ sound/soc/soc-dapm.c | 2 +- 4 files changed, 31 insertions(+), 26 deletions(-) --- base-commit: feca1ff0cd5ab7bc3990ec5a387d81d4dff88068 change-id: 20240627-b4-qcom-audio-lpass-codec-cleanups-27175f1d069f Best regards,