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 9555FC3DA7F for ; Mon, 12 Aug 2024 16:07:02 +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 E519F193B; Mon, 12 Aug 2024 18:06:49 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz E519F193B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1723478819; bh=f6D6KfilWNxqFGG7pta2IfyAR3ZAQv2fXGry/eHPZP8=; 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=vZ1CQQEAIgAuSzLlRp2I0i2ugXkAW5sOURjmcFsB5DfmpVPgFpssWc86XCaWbmG6Y WLcaFCax7wRsuzJ0fnx68JV8y9T6OyaRD4HxR5ET9jZPS4xiNVvYuyd80xfyNP6wfG KjeI4t1SuZVMSDgaPBsdI7RaUzAUMU4VWsLtEFEc= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 63929F8049C; Mon, 12 Aug 2024 18:06:38 +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 D8F61F805B4; Mon, 12 Aug 2024 18:06:36 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E647AF80423; Mon, 12 Aug 2024 17:54:03 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) (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 6A1CEF80107 for ; Mon, 12 Aug 2024 17:52:08 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6A1CEF80107 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=YEprtBLi DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1723477931; x=1755013931; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=f6D6KfilWNxqFGG7pta2IfyAR3ZAQv2fXGry/eHPZP8=; b=YEprtBLiwSKLzvvZb3oL4qZeOBqbRG8SXHidbWmlkQ/EGQ+VNguegQYv 25j96I+HO0j12EJRLAJNnnPX4Gp450cfog3HxJagfQeD1iGjZBX4mT3ul BU8ulVJLXMUJiRz670XFvCDAJx6zp7e2/xyWFWEcXHtfKY38edImUyHr/ H1K+2eQuOooSpXkrPiA9lm6eFdRKzraFCNf+iy7u4P3lR24aFV+GzVa+7 ky0gb3wIPFlHglqRueMk7swHDH/2MEj9b/XEedEOgKmIEtaxAVwWLuokD PF8wMn701H+Td2lcgmWnYqMVInkZZwnv2BatclnuLhLwOLDqXVIiz/X0Q A==; X-CSE-ConnectionGUID: NOarj76PSGq7qIhK202lVQ== X-CSE-MsgGUID: Te7ZhNzhTu6iVH3u/rsKQA== X-IronPort-AV: E=McAfee;i="6700,10204,11162"; a="46998575" X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="46998575" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2024 08:52:05 -0700 X-CSE-ConnectionGUID: dF09Li77Si6p46koOzuKYQ== X-CSE-MsgGUID: 8XzTmcKZRaeu6Y5GuMy37A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,283,1716274800"; d="scan'208";a="62959904" Received: from smile.fi.intel.com ([10.237.72.54]) by fmviesa004.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2024 08:51:58 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1sdXKr-0000000EOvB-3Jym; Mon, 12 Aug 2024 18:51:53 +0300 Date: Mon, 12 Aug 2024 18:51:53 +0300 From: Andy Shevchenko To: Shenghao Ding Cc: broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, pierre-louis.bossart@linux.intel.com, 13916275206@139.com, zhourui@huaqin.com, alsa-devel@alsa-project.org, i-salazar@ti.com, linux-kernel@vger.kernel.org, j-chadha@ti.com, liam.r.girdwood@intel.com, jaden-yue@ti.com, yung-chuan.liao@linux.intel.com, dipa@ti.com, yuhsuan@google.com, henry.lo@ti.com, tiwai@suse.de, baojun.xu@ti.com, soyer@irl.hu, Baojun.Xu@fpt.com, judyhsiao@google.com, navada@ti.com, cujomalainey@google.com, aanya@ti.com, nayeem.mahmud@ti.com, savyasanchi.shukla@netradyne.com, flaviopr@microsoft.com, jesse-ji@ti.com, darren.ye@mediatek.com, antheas.dk@gmail.com, Jerry2.Huang@lcfuturecenter.com Subject: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240803032717.175-1-shenghao-ding@ti.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Message-ID-Hash: GFFTW77BFBXTI36PM5YUMKBX6IIIFINS X-Message-ID-Hash: GFFTW77BFBXTI36PM5YUMKBX6IIIFINS 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 Sat, Aug 03, 2024 at 11:27:14AM +0800, Shenghao Ding wrote: > Rename dai_driver name to unify the name between TAS2563 and > TAS2781, remove unnecessary line feed, strscpy replace scnprintf. ... > + 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()? -- With Best Regards, Andy Shevchenko