From patchwork Fri Jul 21 07:16:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Takashi Iwai X-Patchwork-Id: 705306 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 3CC36EB64DD for ; Fri, 21 Jul 2023 07:22:39 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id AC577208; Fri, 21 Jul 2023 09:21:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz AC577208 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689924156; bh=qL7QxbxFCaP4mZldKskbjYppg/qkhneHem+jWoW6wbY=; h=From:To:Subject:Date:List-Id:List-Archive:List-Help:List-Owner: List-Post:List-Subscribe:List-Unsubscribe:From; b=Sv51m+Dvcstz4I6+CSI13bDBhERUD6/7fz1pHgW7Ntn8Cj+JFawDuGSRd0rfF65j0 LYAWI3QvEypb50R2ASuKt0zZvjFQvT/KBrUixLNSgkNHP6mGNRwokxGqtEPgO0LSXq T7kdwcTT6mzESlVpPafOHcBRtx53Gk6WpNQ+6Shg= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7952BF80587; Fri, 21 Jul 2023 09:20:11 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 38797F80588; Fri, 21 Jul 2023 09:20:11 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 0C7D9F8032D; Fri, 21 Jul 2023 09:17:23 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id E4A3AF8007E for ; Fri, 21 Jul 2023 09:17:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz E4A3AF8007E Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ZQjZBNAn; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=3zPZt7zv Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B68131FFDE; Fri, 21 Jul 2023 07:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689923827; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IUxv/KVtFCYVsCs/qDEXGCMMwfd55CTKjVbLFhIukf0=; b=ZQjZBNAnJ4i6TqdDjBNIAhh61KyWji9zmh/F9ChUrHPvkAbzkstSUbOS43mBjDjYwQi4Gg 74KJRGd8rTcv83KO+BYKECPirf+y4xaEm6GvpWWJ0OR0hdKtlJkJ5YpIW34eniG80bWLn6 ewflh5+nQLoU6c/p9RW68zAXMfZeLA0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689923827; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IUxv/KVtFCYVsCs/qDEXGCMMwfd55CTKjVbLFhIukf0=; b=3zPZt7zvpF1NUNcUHYnXRMBM7m5oH+XgK/gFYhgeF2rq3lrdSj71h/V7JhOXEiyXLgS4ja fOEfslCnTebcDUCg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 98DCA134B0; Fri, 21 Jul 2023 07:17:07 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id emJBJPMwumRdLgAAMHmgww (envelope-from ); Fri, 21 Jul 2023 07:17:07 +0000 From: Takashi Iwai To: alsa-devel@alsa-project.org Subject: [PATCH v2 0/4] ALSA: Cleanup with snd_ctl_add_followers() Date: Fri, 21 Jul 2023 09:16:39 +0200 Message-Id: <20230721071643.3631-1-tiwai@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Message-ID-Hash: 43SXV2N3KWZBEASJ2CZOWE7LATR7YKZX X-Message-ID-Hash: 43SXV2N3KWZBEASJ2CZOWE7LATR7YKZX X-MailFrom: tiwai@suse.de X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This is another set of cleanup patches: introduce a new standard helper for adding vmaster control elements, and replace the open code in a few drivers with it. Takashi === v1->v2: Cleanup of ac97 patch to drop unnecessary check of the error condition === Takashi Iwai (4): ALSA: vmaster: Add snd_ctl_add_followers() helper ALSA: ac97: Use the standard snd_ctl_add_followers() helper ALSA: ca0106: Use the standard snd_ctl_add_followers() helper ALSA: ice1712: Use the standard snd_ctl_add_followers() helper include/sound/control.h | 3 +++ sound/core/vmaster.c | 28 ++++++++++++++++++++++++++++ sound/pci/ac97/ac97_patch.c | 16 +--------------- sound/pci/ca0106/ca0106_mixer.c | 19 ++++++------------- sound/pci/ice1712/juli.c | 19 +++---------------- sound/pci/ice1712/quartet.c | 15 +++------------ 6 files changed, 44 insertions(+), 56 deletions(-)