Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2743500lqp; Mon, 25 Mar 2024 08:05:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVCRe8jbIPWriGQjeKEDCe9/REXkIWKWQhqj6LgzJtkDlUWW3bM/LuXRTBQRGwDNEmecshpg7xlRjZNHYK0w9F1EMY4PPtVt643bZPsuw== X-Google-Smtp-Source: AGHT+IEtgYY6jCHztZrAgvFbtQfhgmsH7O06mrroz7a1XO8yCnfAoReqa6oPnpU1HErfvURmu41W X-Received: by 2002:a05:6a20:be04:b0:1a3:a96a:a620 with SMTP id ge4-20020a056a20be0400b001a3a96aa620mr7259754pzb.35.1711379153967; Mon, 25 Mar 2024 08:05:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711379153; cv=pass; d=google.com; s=arc-20160816; b=MaWZfyNGHSwsNU/OETOb1gTHT77EwtqG/vUliaoPH8DB/28sh+w7wGjNjL+vJM6+Vp 1lwVyrgmYKvTbwcwiI4Y+boiLXKK/qT0cg5WrWsiycevnXaomWW9yl8eXYhPULLJ+51J KoP61j3Nk7SJHw3EGJsuKq5WMs49d/VjxPzWZ07xVB6UCTUz8xbDvIN337qlWnRhA9Dz 4WwFkQ1bovyiE9Uj9swHKSZk9dsaPHEFKtqTQQp3oIdkTAfP8H8eTuuaTph+zo6Y1spE fXqCdHyyN1t3RpCjLQ3XsIni8Rj3hw+O6+H2SNqqRi9pYU3BOVvgjFsRTUfZfoHVn6Vn x/Qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=BGcWn7Vy3IP2SJ0lUTxgCUyOMlOORhPAToSh6yl/wik=; fh=x7+OzJIeN5mJd4Ln+gczq2EazpTbLb1MfGhRMe/0Fjo=; b=Ip2BZEtR5WfPJD1MzTR9MKx3VjLWmXmDivaiMBQzm5yuGMF5fWaX7viOgKcVLlKIpq v4WUEtdWLLzcQ5wMPQcSgXrED3/h52+wz7Nm+qsghOtWLp9yhlx7sQjJ9Ky/Lom2t08z UC0CjFY9cY9QwXc46Pv0Rt0GfZb0yVOjNLE8QtlrbwrFvPEOfAVlg/zYtLsLvWE7nlcF 61wn4whYi+QTNw4zlTcEawIesiFjNAMtyyEB5fRkJByVRd7nhOdewXztGk7RHM5/dj4H LuqralYK/VPwCQLldEX0T2unnIsqdveJNFDMud5wFEMj+7XXU8+dNQdD3VqNMSqUQby9 5tOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=BvWMcMW0; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-116942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u8-20020a056a00124800b006e531ba990bsi5413096pfi.326.2024.03.25.08.05.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=BvWMcMW0; arc=pass (i=1 spf=pass spfdomain=opensource.cirrus.com dkim=pass dkdomain=cirrus.com dmarc=pass fromdomain=opensource.cirrus.com); spf=pass (google.com: domain of linux-kernel+bounces-116942-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116942-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 160672E41FA for ; Mon, 25 Mar 2024 14:55:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A1E241C6890; Mon, 25 Mar 2024 11:58:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="BvWMcMW0" Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 792021C5AB0; Mon, 25 Mar 2024 11:31:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.149.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711366311; cv=none; b=mEbLfXVZHgrDbef5LFMmYarNh64gx423lCzjChWr1FwcfmNfZq2x8a9NJ74n1QTSiPd5LD7Mp4jzbjPE6tcpI6o2unHLKn2D+5xpOir3/A+ny4BA1Qivi6LkH+ux21mDl9kJEYAOENIz6uiyd6xq3J+Rhbm5+jptjW7A4r+YVzs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711366311; c=relaxed/simple; bh=MJQZPFsYuoWMOOKpqEWdDBSguutaxNezVILCQTDO434=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=V7gp4sDYsFKRMlPzNZLxrcdgcQ5P+BI+pxTDeWgThZXFnhCcHYw+04D7n/BXsCIsM2FQc/3HXDiV5WZiTsEr/FMZ+SKWLsHfaxwAlrfWynE0XpVnZp3AD46otjdn7EUhoWP8wNNIjvFW+3vUBsNi+OTBsa5FgCUPoGCDy/ZmUJg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com; spf=pass smtp.mailfrom=opensource.cirrus.com; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b=BvWMcMW0; arc=none smtp.client-ip=67.231.149.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42P4qkf3007553; Mon, 25 Mar 2024 06:31:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=B GcWn7Vy3IP2SJ0lUTxgCUyOMlOORhPAToSh6yl/wik=; b=BvWMcMW0AFEJbcVpl N/H3iWdtmnkhlCD4K2IRAP4UwGO8uJQoagQlEmJIVyhs6yaIAeWRH4LtmhHSo/Sh x9HdataaQPk8HITz0EOvgZf9jwd/gluc+ewVc1kWkOAmf2u6HUoGDKC35l7EAlLe NPkRCV492Ylcl4BRzWRUgmxMRcIUTvHCaPcaNsjsPgIR44E/4BixNZLkKNF/XlL7 5lzpoFtjhtatZVDmFQf9SHCamPD/k4HMQ+xE3ncl6PnMVlDb7Uej6SlK4eyjxuS5 A78XYmMZFUnBimhddr1nseKug06ZneLBeZHTkoQB9HuCAkutqVs3CFHilqWyeZLL ptorA== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3x1vfyb6v0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 25 Mar 2024 06:31:29 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Mon, 25 Mar 2024 11:31:27 +0000 Received: from ediswmail9.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4 via Frontend Transport; Mon, 25 Mar 2024 11:31:27 +0000 Received: from ediswws06.ad.cirrus.com (ediswws06.ad.cirrus.com [198.90.208.18]) by ediswmail9.ad.cirrus.com (Postfix) with ESMTP id 2DEC7820241; Mon, 25 Mar 2024 11:31:27 +0000 (UTC) From: Richard Fitzgerald To: , CC: , , , , "Richard Fitzgerald" Subject: [PATCH 0/5] ALSA: cirrus: Tidy up of firmware control read/write Date: Mon, 25 Mar 2024 11:31:22 +0000 Message-ID: <20240325113127.112783-1-rf@opensource.cirrus.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: eEuzHHeve88IErOHMGl7VLKzH3MtdUFP X-Proofpoint-GUID: eEuzHHeve88IErOHMGl7VLKzH3MtdUFP X-Proofpoint-Spam-Reason: safe This set of patches factors out some repeated code to clean up firmware control read/write functions, and removes some redundant control notification code. Simon Trimmer (5): firmware: cs_dsp: Add locked wrappers for coeff read and write ASoC: wm_adsp: Use cs_dsp_coeff_lock_and_[read|write]_ctrl() ALSA: hda: hda_cs_dsp_ctl: Use cs_dsp_coeff_lock_and_[read|write]_ctrl() ASoC: wm_adsp: Remove notification of driver write ALSA: hda: hda_cs_dsp_ctl: Remove notification of driver write drivers/firmware/cirrus/cs_dsp.c | 54 ++++++++++++++++++++++++++ include/linux/firmware/cirrus/cs_dsp.h | 4 ++ sound/pci/hda/hda_cs_dsp_ctl.c | 22 +---------- sound/soc/codecs/wm_adsp.c | 32 ++++----------- 4 files changed, 67 insertions(+), 45 deletions(-) -- 2.39.2