Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp10731777rwp; Fri, 21 Jul 2023 04:14:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSzp1NJBT/iV4rewbTE/r4GTijkquTqJsrqvboY2pGUDAF/BEWN1Yu2mOcAXI+tTptTnIM X-Received: by 2002:a17:902:e884:b0:1b8:b442:aa97 with SMTP id w4-20020a170902e88400b001b8b442aa97mr1327728plg.54.1689938043637; Fri, 21 Jul 2023 04:14:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689938043; cv=none; d=google.com; s=arc-20160816; b=Ha4OINFnnEx8MEFeaNHiPJ5TBgoPY8/TPKnsAFh4lhNcT2H4oZLVKwjPh012AYrMiT 8gCP7Md5Ey2IZt6GZ3c1x5U38xeq5RubmTAc1X5Zo3SDI9vFbJQRst+UVnhwzLEutYEN uuziqyCPpHrAVHW+hwjjRxk/L/baUnEC9glXjeERlSxZD5pB6wPtLXbdHEcbCJMgt6SP 3V3OXYQOWEjDDS8H1CMNgcY9cjyzIe6Y6dHxIFYnNI8kBsvEDlUSaaMpIj1wWcN2HJXM T1KxZGua1MKwKplGkpdytxS0pwcoNk4BisGe7xG0DFKPqJk5w9rY7w/ho0b8aWnTqoSc 8hdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=JrRImv1ECrjcSMX9z42EwExOS3LOzzVKUJN3EM3WVKQ=; fh=l1yDTavkqxm3lEuXzuQuX97mS77TK5L8l+5mvQpHkJU=; b=Jhi1UU3bbQ7OZk0hMcPcbUzmrAG+54Tym+qKiOtlOkkweijeavGSt9l/RznufGiozV PbMHY6BgN8DR2wvuR1mdYQ/YMTRK+imlJHxf00AsMPdY/N/rufUXy2BrSiMNM6xLoFAm cGLPg5N6dCaMzbOypsm78AklY+GPySbg5rmghQat5HHy6V3ZI6Gvr/1KIdmf0g4tcMJb 42ZCov6uEwH1v4Ti3e5tNvqYPCXf8XTw+OdAthSRASuNfAl5E4rRWCaPFfx25XNFHrrC g/zC2Qo/T0p7X9zUrKpUQUS0CRw5yOMSk5/QFtjnFDzryoTvD1kiNkmmnsjUZTTBbnkW RjPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WhOo9qKx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a170902d10200b001b8010ad924si2702523plw.103.2023.07.21.04.13.51; Fri, 21 Jul 2023 04:14:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WhOo9qKx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230333AbjGUKmZ (ORCPT + 99 others); Fri, 21 Jul 2023 06:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230468AbjGUKmP (ORCPT ); Fri, 21 Jul 2023 06:42:15 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BAF5D19A6 for ; Fri, 21 Jul 2023 03:42:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689936132; x=1721472132; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=YJlPOuKgHIq7wccQKnt6l+jd6D94pZUedrcfoFEHae4=; b=WhOo9qKxuBRCjv+r2zMOTKU7JyjTUg+o3oQZzdurw+l1BtyXdyVCXysH h4YRQd+Js5obOgRNsChtD8jQiQQzIdPjcQvm2r/IiR6hv1s5oraaMr1OS /528DMkdHIMQrkhqvB/8HmFZFD07hp7WlD9EiKYc9ZmN5Y9Kr3nChgJkE JvsVRnUywRBqN/hE5vD/JJvin24w4e7Z87wtQTUIpGzLPVIyCRz6x6EXm vvfzyPcphYREXjnGIA9ACi7nOFTCLm/GTcvgPfOT+afCsi7Qxbm5r6FFP l2wsgqexmvr0CU4I+NEffrqQ0A9bob0HB9EJKt1Fb7IpUZVsGI4vE48Nz w==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="367031883" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="367031883" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2023 03:42:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="838510268" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="838510268" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP; 21 Jul 2023 03:42:10 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qMnaK-000WQ3-2e; Fri, 21 Jul 2023 13:42:08 +0300 Date: Fri, 21 Jul 2023 13:42:08 +0300 From: Andy Shevchenko To: Takashi Iwai 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 Message-ID: References: <20230721100146.67293-1-andriy.shevchenko@linux.intel.com> <878rb9h901.wl-tiwai@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <878rb9h901.wl-tiwai@suse.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: > > > > The sockptr_t (despite the naming) is a generic type to hold kernel > > or user pointer and there are respective APIs to copy data to or > > from it. Replace open coded variants in the driver by them. > > 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. > > Also, the current function actually follows the call pattern, and we > know in the caller side whether it's called for a kernel pointer or a > user pointer. So, if any, the PCM core callbacks should be revised to > use a generic pointer instead of fiddling in each driver side. Any suggestion for the name? And I believe for the bigger series the new callback should be added first. -- With Best Regards, Andy Shevchenko