From mboxrd@z Thu Jan 1 00:00:00 1970 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 11FD4EB64DD for ; Fri, 21 Jul 2023 14:22:56 +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 836441EF; Fri, 21 Jul 2023 16:22:04 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 836441EF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1689949374; bh=GXoU49u331ZCgqrK7scBm8Umfv/IALDjPgcyLcgvb4k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=uQ9TacIXmkRKXGslgIGB0Nf6qjdQ/hWY5gOT2JFNt7RvemzCIZBbSf5jucq7MxQRe uirxVIq0iZkrWV6xdffWjFw+aJPVUUfsg2RI8KCtbM72s/LVxyl2Yf20sQYIJ1bF+U 6aumF9jBczh806/nGYq+/HFsj0bZ5MykMIdzneDU= Received: by alsa1.perex.cz (Postfix, from userid 50401) id EEA90F8032D; Fri, 21 Jul 2023 16:22:03 +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 99516F80535; Fri, 21 Jul 2023 16:22:03 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 69E52F8047D; Fri, 21 Jul 2023 16:21:57 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (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 ABBACF8007E for ; Fri, 21 Jul 2023 16:21:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz ABBACF8007E 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=UUujr/pt; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=OFnCMSO9 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-out1.suse.de (Postfix) with ESMTPS id B66AD21846; Fri, 21 Jul 2023 14:21:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1689949311; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysAjf4LaAMYK81D2vTaHAE6f/DlMCudpo3ZriX8GUwA=; b=UUujr/pt9EUeSV0flxzGlho75ibuqAHQ5eyLqBuvPQu+buTyk9lVNB4Cmv6neDEZ+Q55po VPqib/jyIWoXbNwdi3Vo1hDmWF26yzcTg+sVjVMUOcZn2gkvQbVBLfgehymq3/aL3DMzqg DZTYmhgA0iZ38CRqI9DWd+Tqfe+oPRE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1689949311; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysAjf4LaAMYK81D2vTaHAE6f/DlMCudpo3ZriX8GUwA=; b=OFnCMSO95Dml0FqzVI/VLkaZkkbmwKijXB4em4Y2GimQYV3QHr3iQZwKzUytxHGozsJG/C 59a/j1JTozvD8NBQ== 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 86D37134BA; Fri, 21 Jul 2023 14:21:51 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EpQEIH+UumRWCgAAMHmgww (envelope-from ); Fri, 21 Jul 2023 14:21:51 +0000 Date: Fri, 21 Jul 2023 16:21:51 +0200 Message-ID: <875y6dfips.wl-tiwai@suse.de> From: Takashi Iwai To: Andy Shevchenko Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , Dan Williams Subject: Re: [PATCH v1 1/1] ALSA: korg1212: Re-use sockptr_t and respective APIs In-Reply-To: References: <20230721100146.67293-1-andriy.shevchenko@linux.intel.com> <878rb9h901.wl-tiwai@suse.de> <87y1j9fs55.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Message-ID-Hash: MFULSWVBPBJZRFAPNJBXTMDBHJL3QKDV X-Message-ID-Hash: MFULSWVBPBJZRFAPNJBXTMDBHJL3QKDV 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: On Fri, 21 Jul 2023 14:58:05 +0200, Andy Shevchenko wrote: > > On Fri, Jul 21, 2023 at 12:58:14PM +0200, Takashi Iwai wrote: > > On Fri, 21 Jul 2023 12:42:08 +0200, > > Andy Shevchenko wrote: > > > On Fri, Jul 21, 2023 at 12:08:46PM +0200, Takashi Iwai wrote: > > > > On Fri, 21 Jul 2023 12:01:46 +0200, > > > > Andy Shevchenko wrote: > > ... > > > > > While I see the benefit, I feel this is very confusing. If we use the > > > > API for a generic use, it should be renamed at first. > > > > Any suggestion for the name? > > > > It's a universal pointer... uniptr_t? > > Or a generic pointer, genptr_t? > > > > I'm not good at naming, and I'm open for it. > > It seems it's already spread enough with this name, I would rather stick with > it for now (besides net it's used in crypto, nvme, and security). > > The (new) callback though makes a lot of sense on its own. OK, fair enough. > What do you think? Yes, we can go with it. Basically we need to add a new "copy" callback to take sockptr_t and use it instead of the old "copy_kernel" and "copy_user" callbacks. It's used only in sound/core/pcm_lib.c, so it shouldn't be too difficult, I suppose. Then replace the defined callbacks in each driver, and finally deprecate old callbacks. thanks, Takashi