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 47F5DC38145 for ; Fri, 2 Sep 2022 14:17:26 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id A333B1637; Fri, 2 Sep 2022 16:16:34 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A333B1637 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1662128244; bh=wmqerl6kcztNzb9sQOWsUbMhIkTFq6S0ZHFCXOotRy8=; h=Date:From:To:Subject:References:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=LbcvgnLMWCX27IUgZX/lEaqbVMvTt3NRAS/m2oiSioBnEpa9Id4jaRYIf0SyC8poO ngsSXzZBs7MFZbrp6ZcMmzaZM990mK7UYkNHTNmSgghsmwE2/LPBJwyCzGmbGfIYKn c255T5Sa9JtFvZSWbFXeJxUV9C/CzzcCb9oIpOMs= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 3572AF8020D; Fri, 2 Sep 2022 16:16:34 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3106BF8027B; Fri, 2 Sep 2022 16:16:32 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7A72CF80163 for ; Fri, 2 Sep 2022 16:16:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7A72CF80163 X-IronPort-AV: E=McAfee;i="6500,9779,10457"; a="382287582" X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="382287582" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:16:24 -0700 X-IronPort-AV: E=Sophos;i="5.93,283,1654585200"; d="scan'208";a="563975235" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2022 07:16:20 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oU7Sz-007Q79-0B; Fri, 02 Sep 2022 17:16:17 +0300 Date: Fri, 2 Sep 2022 17:16:16 +0300 From: Andy Shevchenko To: Cezary Rojewski Subject: Re: [PATCH v5 0/2] lib/string_helpers: Introduce parse_int_array_user() Message-ID: References: <20220902133256.789165-1-cezary.rojewski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220902133256.789165-1-cezary.rojewski@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Cc: andy@kernel.org, alsa-devel@alsa-project.org, kai.vehmanen@linux.intel.com, lgirdwood@gmail.com, yung-chuan.liao@linux.intel.com, intel-poland@eclists.intel.com, pierre-louis.bossart@linux.intel.com, willy@infradead.org, tiwai@suse.com, hdegoede@redhat.com, broonie@kernel.org, ranjani.sridharan@linux.intel.com, amadeuszx.slawinski@linux.intel.com, peter.ujfalusi@linux.intel.com, linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Fri, Sep 02, 2022 at 03:32:54PM +0200, Cezary Rojewski wrote: > Continuation of recent upstream discussion [1] regarding user string > tokenization. > > First, parse_int_array_user() is introduced to allow for splitting > specified user string into a sequence of integers. Makes use of > get_options() internally so the parsing logic is not duplicated. > > With that done, redundant parts of the sound driver are removed. > > Originally similar functionality was added for the SOF sound driver. As > more users are on the horizon, it is desirable to update existing > string_helpers code and provide a unified solution. Feel free to route it via SOF or related tree since you have my tag for the library part. -- With Best Regards, Andy Shevchenko