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 07E10C3DA7F for ; Thu, 15 Aug 2024 12:16:44 +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 C74022BDD; Thu, 15 Aug 2024 14:16:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz C74022BDD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723724202; bh=yHydkaB7mV0to4o1OlyyrC234NnyXN2FRI8n4mFL3ds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=WfqNdqOGucXdwO35cQzDsjJl2gFwOGVhf5T7GiQpv4M1VTKnedtUtJQRZlROpRE1I JhlUhoSbB5aMB5yPSmqcyUh5qSl9oIJMQjp7ZaEchZ+xQPsL1hdRaN61D5uR+51xtx snSCCXZWhOZgz9JBOWLIUXevwZufydttrmmtZF1c= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5511EF805E1; Thu, 15 Aug 2024 14:15:57 +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 1B852F805C0; Thu, 15 Aug 2024 14:15:56 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A1A59F80423; Thu, 15 Aug 2024 14:06:26 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) (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 F3456F8047C for ; Thu, 15 Aug 2024 14:04:31 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz F3456F8047C Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=UrhG4lHr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723723473; x=1755259473; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yHydkaB7mV0to4o1OlyyrC234NnyXN2FRI8n4mFL3ds=; b=UrhG4lHrdWNKemHi2vjKIn1TN6/TL73vN4mMtHRY5ib0yst4WhDS8P1V oWS5SFolEMsPWl3WZOwPz611qaPe4DydIwG25WVljmHohy0pmYMKw4UWC 2Vuo1p7R02dJ/uITvo2NrSxbYhoaSSzZKSCVDmwS0x+VqvhAemDipsaze Eai+NjzfJbahXVZ0VmMbCNCzC4pZfWPxnJSRt/fm1v9wJvKfF9PDHu6vc ObiKb4EXejVQ24v1F9H8x3gZcKQBk8u6I0nM/Uj7CBEH5yNnsF/GTH1qg E/0JdQVSxTnTvEUm17Xcc7vN05E7klUj3JVmurduZXranP5dd6h0uo4kV w==; X-CSE-ConnectionGUID: jFyLuXf/SZiZpVK11YT8/A== X-CSE-MsgGUID: DhbeY0liSKq9i6ntkpSb7Q== X-IronPort-AV: E=McAfee;i="6700,10204,11164"; a="32608988" X-IronPort-AV: E=Sophos;i="6.10,148,1719903600"; d="scan'208";a="32608988" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2024 05:04:29 -0700 X-CSE-ConnectionGUID: eLkWGLmqR+yANPMnofdrxQ== X-CSE-MsgGUID: DTybqODiTZWVCd6mzcTxvQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,148,1719903600"; d="scan'208";a="96852637" Received: from smile.fi.intel.com ([10.237.72.54]) by orviesa001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2024 05:04:22 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1seZDG-0000000FXp8-0mub; Thu, 15 Aug 2024 15:04:18 +0300 Date: Thu, 15 Aug 2024 15:04:17 +0300 From: Andy Shevchenko To: "Ding, Shenghao" Cc: "broonie@kernel.org" , "lgirdwood@gmail.com" , "perex@perex.cz" , "pierre-louis.bossart@linux.intel.com" , "13916275206@139.com" <13916275206@139.com>, "zhourui@huaqin.com" , "alsa-devel@alsa-project.org" , "Salazar, Ivan" , "linux-kernel@vger.kernel.org" , "Chadha, Jasjot Singh" , "liam.r.girdwood@intel.com" , "Yue, Jaden" , "yung-chuan.liao@linux.intel.com" , "Rao, Dipa" , "yuhsuan@google.com" , "Lo, Henry" , "tiwai@suse.de" , "Xu, Baojun" , "soyer@irl.hu" , "Baojun.Xu@fpt.com" , "judyhsiao@google.com" , "Navada Kanyana, Mukund" , "cujomalainey@google.com" , "Kutty, Aanya" , "Mahmud, Nayeem" , "savyasanchi.shukla@netradyne.com" , "flaviopr@microsoft.com" , "Ji, Jesse" , "darren.ye@mediatek.com" , "antheas.dk@gmail.com" , "Jerry2.Huang@lcfuturecenter.com" Subject: Re: [EXTERNAL] Re: [PATCH v1] ASoc: tas2781: Rename dai_driver name to unify the name between TAS2563 and TAS2781 Message-ID: References: <20240803032717.175-1-shenghao-ding@ti.com> <9ec30bafdec441078828cb0d7be93342@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9ec30bafdec441078828cb0d7be93342@ti.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Message-ID-Hash: 3NHADDP4PZPSEZNI5OLD6TGOOWFRN2HO X-Message-ID-Hash: 3NHADDP4PZPSEZNI5OLD6TGOOWFRN2HO X-MailFrom: andriy.shevchenko@linux.intel.com 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.9 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 Thu, Aug 15, 2024 at 03:02:01AM +0000, Ding, Shenghao wrote: > > From: Andy Shevchenko > > Sent: Monday, August 12, 2024 11:52 PM > > On Sat, Aug 03, 2024 at 11:27:14AM +0800, Shenghao Ding wrote: ... > > > + strscpy(name, "Speaker Profile Id", > > SNDRV_CTL_ELEM_ID_NAME_MAXLEN); > > > > > + strscpy(prog_name, "Speaker Program Id", > > > + SNDRV_CTL_ELEM_ID_NAME_MAXLEN); > > > > > + strscpy(conf_name, "Speaker Config Id", > > > +SNDRV_CTL_ELEM_ID_NAME_MAXLEN); > > > > Why not 2-parameter strscpy()? > strscpy seemed not support 2 params. Do you mean strcpy? 1. It does. 2. No, I meant strscpy(). -- With Best Regards, Andy Shevchenko