From patchwork Wed Apr 3 09:31:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615570 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CCEE1369BB for ; Wed, 3 Apr 2024 09:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136676; cv=none; b=a0/+CmdaUH/i/hM3yScjrBb6DMc8ypu16Qx73TwjC9BL5cJfOj6v/Yfd8YQL4UMFO4POVu8aQC5wTr84AfzTnAnfHEDdXfegJefq4wT7UFeMklN55GUUY6BYY0Uuw1ySeAinlTV7V+ABGYT+ANlu6RKDm3VbBXkC05DWfWb/DdY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136676; c=relaxed/simple; bh=dyAOo+VFBsweUHd5Xag2bd447ewOnMyY3G3yMPwcU1o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=HeX96YVnS3pMEeKCfHVWRjwe02zvGxSmuZEABwRu1JYqrxzhboTRhZQlj8E5x9O5ABvUWvKQ8kWfLD8IqpWcXz0uxWtnTX2+feDrrr8ZIyvLqwL1ycbXfCO+1/dOVSm+hhU657xGQOBcoueoG51pnTHBaN3OBrQ0dJDBiDVDOJY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NdD7e7zo; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NdD7e7zo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136675; x=1743672675; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dyAOo+VFBsweUHd5Xag2bd447ewOnMyY3G3yMPwcU1o=; b=NdD7e7zo0YlsPWrPP726Uk/c9mMVmZVi7Ua+CED6+3N92+tSNlXZcCVX CqLWv3io+Y4E8XFhyj049cwMMXBEeBWZsc1WqL5h6T0f5PSsXoZ5pmcKa NW5+vPbWuINW2bs3P2jCu8RBfb3XzqqoG/vBmsZhaQRDfxPgfEDnm3yPL YPoZRoDmHdnBTKQRb0XuEzl5vIH4dS1RmH3cvBzVLTEXKWGYqJx/qmNmf 6liWOiV8DEHNgU3N5WY2/+2nY989WirmFci10hZ9qO0/U1l/7y+pCSJ4T ceV4LUl1W9u34y7T5XDAIJBnbcHraXmEjCN5F8pYGCTULUmPzs1t63gYI Q==; X-CSE-ConnectionGUID: ekxQ/kxSRbKsvDNqOROgtw== X-CSE-MsgGUID: UCg6Y4K1TIeMmDstQtCQHQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218681" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218681" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:15 -0700 X-CSE-ConnectionGUID: 947EalOQQeisSw3SqC2xCA== X-CSE-MsgGUID: r9tbWrhFRaCAYbzC1MClhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797535" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:13 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 01/10] ASoC: Intel: avs: hdaudio: Use devm_kstrdup_const Date: Wed, 3 Apr 2024 11:31:36 +0200 Message-Id: <20240403093145.3375857-2-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 HDA codec name is constant and we just duplicate it, use const variant of devm_kstrdup to possibly save a bit of memory. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/hdaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 79b4aca413338..2de703b909c30 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -54,7 +54,7 @@ static int avs_create_dai_links(struct device *dev, struct hda_codec *codec, int if (!dl[i].cpus->dai_name) return -ENOMEM; - dl[i].codecs->name = devm_kstrdup(dev, cname, GFP_KERNEL); + dl[i].codecs->name = devm_kstrdup_const(dev, cname, GFP_KERNEL); if (!dl[i].codecs->name) return -ENOMEM; @@ -191,7 +191,7 @@ static int avs_hdaudio_probe(struct platform_device *pdev) if (!binder->platforms || !binder->codecs) return -ENOMEM; - binder->codecs->name = devm_kstrdup(dev, dev_name(&codec->core.dev), GFP_KERNEL); + binder->codecs->name = devm_kstrdup_const(dev, dev_name(&codec->core.dev), GFP_KERNEL); if (!binder->codecs->name) return -ENOMEM; From patchwork Wed Apr 3 09:31:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615571 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 990311369BB for ; Wed, 3 Apr 2024 09:31:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136679; cv=none; b=i6hdGR/rfm7YJFjCRGP2bqhAxxsNJsEMMAN0mZz6JQWJHZbX07D7pztzOpbEUfCwGg/J1P7vwSPoV2qNIN/iqxHv6lphPdlDULtHgaPLBT+wLcQcGnZQYYVpt6mMnFT9Kwr6rreannHGiNfU1BlNBSKB1BjK6RrVWf3syqiucwE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136679; c=relaxed/simple; bh=Uf61lRVj55WHImUiBlCNQuyLIKLzrbNeeTxDN7YZoBI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=OOCQrpEKfWddzMtN5ddYn4pFsme6sUWDYdWCRxIyQY8AGKHIA93CRN4dcMVY8J4zd+QVQHgVmQhJQ0ephalUfh1lpd6gLipLo4Qek4HoJDoLDm7Xkg7pefMaE9VD6NeyEKWAWuQRQZW5oczBgQeHRAcX+Vmk1aU9OBK8ty76Wvc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=kbaPe6IB; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="kbaPe6IB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136677; x=1743672677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Uf61lRVj55WHImUiBlCNQuyLIKLzrbNeeTxDN7YZoBI=; b=kbaPe6IBcH7nA5UqjmuiT45bfojvMOw/i0tszaZYweyXtzk5+idPxHSm Kbmq9e29422eY6FxtjQQHmcjOOmbBFKsPS85TgQStwFsVLnctRUoDCldI GMxN75jAaKu6ErpbH58xQ7lZ7K4mtRIN8T8f0H2g96tAmYbAxvdaRClZj l+TOKkxQO1qaLU+/SrSxDpqaFknlrmd92IIu98nkj/NAHrCFDhpb1pFF4 GkJO0NsXL+YsTYcfGUbWSxsLwLFDAC96mzSmrmDczDPqwitFOXytEpevi n3swRVsA+/KzTwJ7NyOAZ+V5OrZnVlI/WPhZySVzYibfbuRaDxtGdeRq8 w==; X-CSE-ConnectionGUID: 3zQX8N4iRsGrkGxY9PAAJA== X-CSE-MsgGUID: vlOpcTeFQeWexbUldH0T2w== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218686" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218686" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:17 -0700 X-CSE-ConnectionGUID: k/r99CPlRYqUchUEr9fhxQ== X-CSE-MsgGUID: XpQjvu2fTWScFgk96aZwEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797538" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:15 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 02/10] ASoC: Intel: avs: Use devm_kstrdup_const Date: Wed, 3 Apr 2024 11:31:37 +0200 Message-Id: <20240403093145.3375857-3-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 FW name is constant and we just duplicate it, use const variant of devm_kstrdup to possibly save a bit of memory. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/avs.h | 2 +- sound/soc/intel/avs/utils.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sound/soc/intel/avs/avs.h b/sound/soc/intel/avs/avs.h index f80f79415344a..9a02e2b528bc5 100644 --- a/sound/soc/intel/avs/avs.h +++ b/sound/soc/intel/avs/avs.h @@ -107,7 +107,7 @@ struct avs_spec { }; struct avs_fw_entry { - char *name; + const char *name; const struct firmware *fw; struct list_head node; diff --git a/sound/soc/intel/avs/utils.c b/sound/soc/intel/avs/utils.c index 82416b86662d8..8100c2fa0a7ed 100644 --- a/sound/soc/intel/avs/utils.c +++ b/sound/soc/intel/avs/utils.c @@ -250,7 +250,7 @@ int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, con if (!entry) return -ENOMEM; - entry->name = kstrdup(name, GFP_KERNEL); + entry->name = kstrdup_const(name, GFP_KERNEL); if (!entry->name) { kfree(entry); return -ENOMEM; @@ -258,7 +258,7 @@ int avs_request_firmware(struct avs_dev *adev, const struct firmware **fw_p, con ret = request_firmware(&entry->fw, name, adev->dev); if (ret < 0) { - kfree(entry->name); + kfree_const(entry->name); kfree(entry); return ret; } @@ -282,7 +282,7 @@ void avs_release_last_firmware(struct avs_dev *adev) list_del(&entry->node); release_firmware(entry->fw); - kfree(entry->name); + kfree_const(entry->name); kfree(entry); } @@ -296,7 +296,7 @@ void avs_release_firmwares(struct avs_dev *adev) list_for_each_entry_safe(entry, tmp, &adev->fw_list, node) { list_del(&entry->node); release_firmware(entry->fw); - kfree(entry->name); + kfree_const(entry->name); kfree(entry); } } From patchwork Wed Apr 3 09:31:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615572 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1A741369BB for ; Wed, 3 Apr 2024 09:31:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136681; cv=none; b=fYEUFPcjQ09dOwLn6HRquwtOI6G85e3lFu7Fi+1YZcR6G9QzVP75+K4iepNwkwA91OO2yvD038kUVJ1jnHASvvZy/Pdh3M2387QtQMJhmDwxWbh1F3keXkIH0dVq1MG1gsVao8tGYsKLlk7F6OTpTiV2WPMtKJgxEnLby58kNfg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136681; c=relaxed/simple; bh=ksuiznIoJxFzb1RHAvr0zISxppTJtV786zLmv8pdFSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=ZHDmfcS9K4iHwrY/stgecBY3Zz+N89hZdjGunV9J1mGtPrGNEoqupDvwyYZj0cW/CvgqzML556mq02RZEFXUQoZOX9030F95YOvYZB+7HyfBJcG+K6H0CscyKyYSNRDW3xRPQQ+BGxGRT+Avl0c7MD6GMuJ4YlXYnWtpuCgW8fM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OAUoyOHA; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OAUoyOHA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136679; x=1743672679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ksuiznIoJxFzb1RHAvr0zISxppTJtV786zLmv8pdFSg=; b=OAUoyOHAXofa7aAg6GFBnxWraxZThQ8nCoTg5mx0tokrEDnyAoQf5KeH XMOEJlmUpiOFaQDHsqRRO/LH6LiIdN34I2s040jM+xmqH0gekUqeLV4qr J3uO5n4Exp2fpsN80Vs1xh9Dqa/yrWCXj+fAetYAVlyF9LtoAU9r0AyBQ z7mGW7qv1Uddm7GlOOH8JJNprWaf4KdG8TqJbNjUAgsxIVdug31zh+zMs vvKJ9wljyGF4a3JfB9suM9P/Ugkd3R5e2QyAHzt3lrMkKKImj8qA3yTfn BbBPQgy7zKDqNOz5uFpuaN4ZKAuB+OtVY6hFpNcs+VdAoOkFnK1NWHTs/ A==; X-CSE-ConnectionGUID: Vxlm28CXTICrEIL1wFb8Lw== X-CSE-MsgGUID: qRQR10sJRS+CRMYDDcEozA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218692" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218692" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:19 -0700 X-CSE-ConnectionGUID: cbNBmSYVTeiNkya1WpL43w== X-CSE-MsgGUID: a+mdaRImQ++pyxrELfMr2w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797542" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:17 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 03/10] ASoC: Intel: avs: hdaudio: Constify probing_link Date: Wed, 3 Apr 2024 11:31:38 +0200 Message-Id: <20240403093145.3375857-4-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 probing_link is passed to devm_kmemdup, and is never modified, may as well mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/hdaudio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/hdaudio.c b/sound/soc/intel/avs/boards/hdaudio.c index 2de703b909c30..4433175814f80 100644 --- a/sound/soc/intel/avs/boards/hdaudio.c +++ b/sound/soc/intel/avs/boards/hdaudio.c @@ -155,7 +155,7 @@ static int avs_probing_link_init(struct snd_soc_pcm_runtime *rtm) return 0; } -static struct snd_soc_dai_link probing_link = { +static const struct snd_soc_dai_link probing_link = { .name = "probing-LINK", .id = -1, .nonatomic = 1, From patchwork Wed Apr 3 09:31:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615573 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0EAAB1369B0 for ; Wed, 3 Apr 2024 09:31:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136682; cv=none; b=tOFBSBmfcqRAEbR7gP1OWG/3M+snSi0BpzvLxqU9RDh2lwyIfBQ2wqYLSL5uc5jfFXQQZkAZWzFr5M3J5D/JVrksRcMZZWdpVpA3ZWUUmnzKjGWs32RZEtD4JDUwrx6yihrRoCOt6vc/N8kdl81wyuFeTl/9VVXo7twerdXtyhA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136682; c=relaxed/simple; bh=FTDH1oQvlp5NP1lmkejXPGpJ6yiFZuoKf7yu4Nvt+hQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=napN+1I81YyFDDZntxBDNRP4eDFVdOUMmtn/h715M2JKXZGSjMiQXVzuI+yMGd2re//8m6LcjmGeupvMiLIWNIqIMgt13wn0LIZ5LFqlfjF+JILdOUPqDcGEds4ymiUrUdhZzwClF3fp2FCTzEePCSeTs7CtAVPK78C9YPUcMEM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NCuL4665; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NCuL4665" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136681; x=1743672681; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FTDH1oQvlp5NP1lmkejXPGpJ6yiFZuoKf7yu4Nvt+hQ=; b=NCuL4665pap15BwiygE4Di5tYd4u2R+Dh8sd5FQqCbBza2ot1Eknwtn9 o26DGOaR8RS6YRx0XHzV0QQ1zqTBQclTPeDvgbWlD8Scp7ds6o93iRGHF o1i9Vwbg4DpJIRgv83amGQtSHa1n/sVzneCdo+etTfwjN38kt41VHA3LL 9ODWBQidD6tHyUufsTk+AbUeBaIW5+fqHj4Kjzkx+NeWT/SmGRDPi5A82 9fUhoxrxMG/t/U8PC6kekR3HHbG09e5Mzc7UIr7p5eOQOs+DcC7ENWW6E o80U1/GNu8cJlVbTMl0yNDjE/tFkwFZrXixft9/c/bj+XhpJVbbvEr/gm Q==; X-CSE-ConnectionGUID: Kd2UHU3ZQDSzjau8sgm0nA== X-CSE-MsgGUID: A/xD6N8jTJOcw/Gf0GmJ/g== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218700" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218700" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:21 -0700 X-CSE-ConnectionGUID: 4noLoxgzS8qG2ti1B+o6GQ== X-CSE-MsgGUID: FdVRklATQ4OXsRArR76EWw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797545" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:19 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 04/10] ASoC: Intel: avs: es8336: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:39 +0200 Message-Id: <20240403093145.3375857-5-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/es8336.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/es8336.c b/sound/soc/intel/avs/boards/es8336.c index 5c90a60075773..ff3bd15132694 100644 --- a/sound/soc/intel/avs/boards/es8336.c +++ b/sound/soc/intel/avs/boards/es8336.c @@ -85,7 +85,7 @@ static const struct snd_kcontrol_new card_controls[] = { SOC_DAPM_PIN_SWITCH("Internal Mic"), }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615574 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 88E6E131E2D for ; Wed, 3 Apr 2024 09:31:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136685; cv=none; b=XZPkMFNAnfGS5l7kQNNE+aUKP/A7nzLIyDu3WT2NqIt+zIWzA3lgGs0OGHO2u3LGaFnjX2oHEFvm9mXNo+bpmNf0E/WENvByYCnKPXq7K42tGPRVOi3rw4Q9HcBmErEjwfS72NYzNotRGlX4q1BTQFG0Ld5rM9rN19IGfBJyu+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136685; c=relaxed/simple; bh=7TaebfQkikL01h/Xt59bLY/GpqScWWg7l2TJk8s/O2U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=CSPnveNWwMePS2H8hCi/MSlj9UrEJDMmWwdosOjIkILRhIcWwl5stgodPYVPlUD13NHIFwI2ilB8kQRly0vNSIGigRjinVqvL4vAIeGYnKnyL/W4yARMCf1YQiwXPqXUK9E4XFfwT1ZKbRQLgF8SOWQHiaAKyQ7pJLZozU8EH7E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NRcXU78n; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NRcXU78n" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136683; x=1743672683; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7TaebfQkikL01h/Xt59bLY/GpqScWWg7l2TJk8s/O2U=; b=NRcXU78nd6e4swk4BMMlZ2anPnJhJoAHX+dnFW+za0/IkukAICGIG7Mq Vm1NmYcDk26kOs/+qruND0tXULhmJW0ilB20cG/tCBbQs2ffdW5xSGcNE /BRPF3QJbu1fXKVphZa/6AZ7OrJeki4N+hxzjutTF4eLKMVQrlf7j4O91 ygW8foP+1oPQemujcfCEI+T1IQD1BVxGyZW42weIt0stOHhSHFD3KctAS n0gbSMIA/2pzEEs8NpfnE+Eu/0UYLCioih4Px0VP34m8hikqsCi1Umk5X MiOLku+NmPrCN79l8BJ//397/pddT+OTRjvqkv/qfJ2QDlfkIvxdY7T4p g==; X-CSE-ConnectionGUID: INxa9KN4TJaCVKn2KkTrZQ== X-CSE-MsgGUID: d2a4YvUxSJ2EaHKqIyUgdA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218706" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218706" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:23 -0700 X-CSE-ConnectionGUID: MN8P8KzkTMaI6od6ijiikw== X-CSE-MsgGUID: mjFkUyOSRAy3IC+qNb9djQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797551" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:21 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 05/10] ASoC: Intel: avs: nau8825: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:40 +0200 Message-Id: <20240403093145.3375857-6-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/nau8825.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/nau8825.c b/sound/soc/intel/avs/boards/nau8825.c index 55db75efae414..3164745b15167 100644 --- a/sound/soc/intel/avs/boards/nau8825.c +++ b/sound/soc/intel/avs/boards/nau8825.c @@ -67,7 +67,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { { "Headset Mic", NULL, "Platform Clock" }, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615575 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33D7A13774B for ; Wed, 3 Apr 2024 09:31:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136686; cv=none; b=kjMdyYs26K0VXqnUl4wMuOxGwrHhXJ/zIZ7mjKgESuwNSRQWprMX9l6LoiiyRKBH3Hf48PGpStA3QnlOtrJ3/DBRLdMZTqQM2lFrXZosJPK6CkjOfe716mmyxK29I/RZJ6miSss/MRup2HiO0UNKaV/XxlxDKAUqK0AP/PwZzG4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136686; c=relaxed/simple; bh=3xPphXhzLbuA18UzOFb+kaXJTJ0k+ktqMIUg+a9AL6M=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=MwSTRQf7qrDpawLB2k2ugUaE4IvMgQbPQGgBRUhn9dTo1MzdmB/OJ6jRCXgNqxHg2r6KBHxBooJx0vU+u7o7u5uqMkroh/ssmbITL/pPmDp6WTiPF253jItj3yp4DACntvyCA3vE6t9qosQnQseu/5K51PeO0S0lFHgh/45z+rE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=OyCByTkB; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="OyCByTkB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136685; x=1743672685; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3xPphXhzLbuA18UzOFb+kaXJTJ0k+ktqMIUg+a9AL6M=; b=OyCByTkB509W4jwjlu5lbMaGofvjVEFeuPHoA0fZNEd+mZPcYsyOj0yt QS8f4hxOo2iH9i7eV57ztApxJYKCdUZzSn8oLR3ZEIBooqRi3gOzKCfdj urL1XYj7avTDGrP9nebHrMylkUO7bJNBr872Ug/9Hkk+wf6fHwQS0exeo tmA/hxHeisgEEQrNWmscXJjN1lgRYCoAwwrEToYW+naT2oGXInuPwv9QN Tr+TSHZJcqfWpJAYJiByeKY/8kfWd9craR9tsEw9/BJtz2qQROYRr1bDZ S3kSs6XIRoaxefxqgLXDCS8Tuv4STSofFl9+4STzkJPhNHjBGALu35ikh g==; X-CSE-ConnectionGUID: UTHFL010TD+PcDDdLrhhYQ== X-CSE-MsgGUID: 3ekWrQQxQwGco+bgWuIAuQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218711" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218711" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:25 -0700 X-CSE-ConnectionGUID: lWZ0R/YRQwSDZ/CPRdwftA== X-CSE-MsgGUID: PjStveT4SzmSB5jAlV/MEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797557" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:23 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 06/10] ASoC: Intel: avs: rt274: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:41 +0200 Message-Id: <20240403093145.3375857-7-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt274.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt274.c b/sound/soc/intel/avs/boards/rt274.c index 1cf5242160875..e3aa28780df5a 100644 --- a/sound/soc/intel/avs/boards/rt274.c +++ b/sound/soc/intel/avs/boards/rt274.c @@ -75,7 +75,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"MIC", NULL, "Platform Clock"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615576 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7505F137741 for ; Wed, 3 Apr 2024 09:31:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136688; cv=none; b=IAq4PYBZbxQ30vaqpLXtTR4MbqfdIkqGlIRg58HFhI8Zy9FJe9ox4wvcZNNr5JSPG9FU/W3/eCRcK7/66ZadfFiW6SFJY8e9WGHQ835sOGRj5fxwh9SJSQDDTywpCGKu6BnEonHwtr1YMk6k9jkbNwiAhbGSLXLUGwi7LdpGm2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136688; c=relaxed/simple; bh=xtNP8n0UaAOz/HWZrCRaOm/mAbqQPKVM9Ax+qaR6ZrQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=cpPR5NB3j7q7bXQmm9LTr90tjo9BR+Zh4rp7mCzST/koyBI0MHsVI53QLjt39ef9fGtPUZadPWj3Ra5K+gaReFtq9LUGl3Zbi/AuUkGwDllkqXYuBlbPCg+rE88bGgjWEvlr2yZG9O+hc3P8BziX6LOV+IseRhKLn7fjnApWmEM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DgzhKNsw; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DgzhKNsw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136687; x=1743672687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xtNP8n0UaAOz/HWZrCRaOm/mAbqQPKVM9Ax+qaR6ZrQ=; b=DgzhKNswzJUY+wWVM6CcsW8FlXlZN+ztMiRQRZQaCfG/vjbPVQoQgtj1 DWAqm2NKpF64xIaZ2/Rz1yckqv/bq2y6O3SaIgymNVpVPk0xTQFRi3yOf wF/PSEaxjcVpK3xm9YFTvzZAYZSbWt1JwK/StFTtlNN9jUwsSdbCY5lVP nok/swkiLzQEn1JvqDGAd2A/KISPITG10UENA8BweoRYjfhLWInsi1dCv +MJA3QgBH3c1DeJbRh97PuMMBcU4Qr0ol1IPt1WSzGxpI5eFR9VvLZ+dD oJY9udB0uhBwrqJMt49TC+l6FHTYOycVLeysBVIt2LwYoFnz2lZ7z7TJR w==; X-CSE-ConnectionGUID: nAovGfpgQTaXto6tbHfYOg== X-CSE-MsgGUID: 2MzA6850SryyA0Y45IKtIg== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218720" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218720" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:27 -0700 X-CSE-ConnectionGUID: iCPtDgh2Re+f2VrhfT+/4g== X-CSE-MsgGUID: VMTXgFl1TzuCpgh3VU2q4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797563" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:25 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 07/10] ASoC: Intel: avs: rt286: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:42 +0200 Message-Id: <20240403093145.3375857-8-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt286.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt286.c b/sound/soc/intel/avs/boards/rt286.c index 4740bba105703..d24316fc4db9c 100644 --- a/sound/soc/intel/avs/boards/rt286.c +++ b/sound/soc/intel/avs/boards/rt286.c @@ -38,7 +38,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"Speaker", NULL, "SPOL"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615577 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA183136E3F for ; Wed, 3 Apr 2024 09:31:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136690; cv=none; b=pODxT9JYcdBuKD25B2i6O/QnO+o9evBUy5+EwKO4p/TH+c6muC890PKNsJvAg+bE94VLbdA6brd4BI98SmWLVGSqJtGD4DwihzuFUOUmLoRzpkOYmBMlcKU5VKvwDaXdCW8F1WzrSLbUJN6kK8j7WS/z/17TdmJCbqSi0oIWREg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136690; c=relaxed/simple; bh=YMdEHr0zD4bfppwoJREpSdpNbg1nvju3vBIFu7zwGzk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=mkNB/R74Ep9zJQQkviU6r+PP/5wn6t8j52i5rSuAEKD3l/Nc0uhFBRWSdVpqlTeuoei6SAEqP60skXShsk6S9IZltV1Xk9top9h2iGntJ4uRK4ojXy4V92IIdauTryFVIvzsfWoMdyHkZT8piX43xF0pfAzWjujqGVBjuHd8lfE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=iwF2ocpp; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="iwF2ocpp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136689; x=1743672689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YMdEHr0zD4bfppwoJREpSdpNbg1nvju3vBIFu7zwGzk=; b=iwF2ocppwCsJTiEWHvGYFcMqhBNgFBJ89yro+CtxnWI92WKo8ceC48dA qnEEXPzZrFhNROk2McaH8o4MxjpP3YKHHCIyXfGJ8+eMmy74UCA24tdYv PmcVymmvUe8lZz5GQcro2TQWBoQ4Ne8Y3RFa/8MeJ+a2DxXR47rJ+vQiL Xrks8vYD46Q3XlaRdgGnUthbT9Pbxu+c2XHvS3RK1r/7dXk14tYiJ132r d3w/uVgU2lRnYxTtn0bVgEEfYQ/IS06LqPZvLXDKql6APHGfkjPueyl0C 6w3IrTNmK5EXXQnje6dm3yvsIDWbQ2pKp+dsh6vtpZ0BwIWjbqzFQGJuk A==; X-CSE-ConnectionGUID: ERfUVEcsTXua2Jcq3xg4Tg== X-CSE-MsgGUID: zkZZd70eRJq9bYYSOhSVKQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218728" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218728" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:29 -0700 X-CSE-ConnectionGUID: QwRajnwCQTOeHs5ORRd2Aw== X-CSE-MsgGUID: Sa7tiJlHQdShmZNT/dNz3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797569" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:27 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 08/10] ASoC: Intel: avs: rt298: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:43 +0200 Message-Id: <20240403093145.3375857-9-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt298.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt298.c b/sound/soc/intel/avs/boards/rt298.c index 6e409e29f6974..7fd28544f7869 100644 --- a/sound/soc/intel/avs/boards/rt298.c +++ b/sound/soc/intel/avs/boards/rt298.c @@ -49,7 +49,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { {"Speaker", NULL, "SPOL"}, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615578 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 43CD2136E3F for ; Wed, 3 Apr 2024 09:31:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136692; cv=none; b=PFpuUnD2zA37Za6qgeIePV/KY9u3O/CaqHD4qvfV+J2faPUamFWtGW2s8cPX2owuMYFgdTiv0esuQ8EqW12YiFeWGvnDMTC7m6PQLT4Z3Kbqg2OsC2nWQJZcU0lRYYx3KxIFQdmKoGQ/JdlbDQBaiWsIVStPrAUiUkXEdseGKuU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136692; c=relaxed/simple; bh=H1VHHLIXeX8Omn5DQfAV7IkeGysf9C0vnaXxHYuscy8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=IHkuxbPGem9rNX/gRq30xnfdRSU3VQD7tytMD1VHY6TI431t50fbBU6WiZ67Y0UzofV8reT6HFDv1HRrKz6VfcrUZv9ONgyH2LTFkbZqYvqFjKEfPE2JGVFHITK2azfBTZhO4bNECpwdg7qhfdyHwUraoHOlSX98SQy1WGuwZiU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=VZJISdFT; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="VZJISdFT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136691; x=1743672691; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=H1VHHLIXeX8Omn5DQfAV7IkeGysf9C0vnaXxHYuscy8=; b=VZJISdFTSfSRRRQK6Ld8jHAQEK3b29CEMAXNLpBzTjliisILq4x/6Xu6 lTP7P8NTgkWt+Fx/w7dWhAWicevHW/o2RXFjl2aLNXVpc9Z9maFrj1EVS uxcZyypvnt90b80Nk7lMX/lD+hu2zV1qH/WVvY4JicdVYq2rtJCCAhHNr OBGeJGnnleegkJzaQwkc+cDOTM3WIP6PFmFjf59fzeyWsqqJo3xmOVrPn yy0a1n7gjRj/uARqDOQBoCKfp7nDEDKgcagf8MEDphn/EuQsBzY2xCSWL JlH0PQB7ZVQYUKi2+3VGmxcqL9Rj0LKrcNS0+gsr/BJC2Lnq/QkkBU1uU A==; X-CSE-ConnectionGUID: rY0l3oMjRNWuHa7tk6OyIg== X-CSE-MsgGUID: 0hPPA8WQSyW8D7Nvpu8ZdA== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218737" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218737" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:31 -0700 X-CSE-ConnectionGUID: cid7SUMdRQ+Lf/Kd5Gi0hQ== X-CSE-MsgGUID: lPy6wLiwQIOWYrKYk2NbmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797576" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:29 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 09/10] ASoC: Intel: avs: rt5663: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:44 +0200 Message-Id: <20240403093145.3375857-10-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt5663.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt5663.c b/sound/soc/intel/avs/boards/rt5663.c index 1880c315cc4d1..ba8c42d026da2 100644 --- a/sound/soc/intel/avs/boards/rt5663.c +++ b/sound/soc/intel/avs/boards/rt5663.c @@ -43,7 +43,7 @@ static const struct snd_soc_dapm_route card_routes[] = { { "IN1N", NULL, "Headset Mic" }, }; -static struct snd_soc_jack_pin card_headset_pins[] = { +static const struct snd_soc_jack_pin card_headset_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE, From patchwork Wed Apr 3 09:31:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= X-Patchwork-Id: 13615579 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E7D1F137762 for ; Wed, 3 Apr 2024 09:31:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136694; cv=none; b=na6vB5dEvM8s8lIc0E6p5Qo5bXmPYUVCMex+pC4m6wtqgxuEktbtDIK0Wx6kjfNw+AD/tTzIQAAOnIR63HDiVjjmVrmm5TRoZpaimLk4+T/JfoaznoVz4rKsW1vIG3DGYLXKwM6Uy9gdWYS2cd7JqEbNKOg3k7xWXPLh5EjSA2I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712136694; c=relaxed/simple; bh=/0HwR9BeGlHT/8EimwBOYK6tvT4kTu02wjjOYw0tNGk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=FP7f7g4E7lu7rm7EOG297Y4oSeVDKZJ3O1YNet9VrVEkCUa6Pibc6dGryOxCi+lPPFDJWFqcpnTXDLqSl+Q4QU0RYje+S+tACMYg+GoPMjJR3jDZSuKnufUXNXxEkHdI9eJutkKtFUZJHEpItXZuZxSb9WEgGv43aPvYpUQ8fT0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Eh5tztGi; arc=none smtp.client-ip=192.198.163.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Eh5tztGi" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712136693; x=1743672693; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/0HwR9BeGlHT/8EimwBOYK6tvT4kTu02wjjOYw0tNGk=; b=Eh5tztGixikV3AXpsIKFjUuHZ3y4ywilg5XTPS2jjjd68MWOBTMtnerI ib7WGtW/JxLOpm2w/OofhRfehoEdvcTPuGJBCbASThsHRYabJGqWS90Ki +UByPWZwhyD7XP55TCeNum1h/NXR2fgwAmCcKrtE+EBG27reQqM5OFCfg iMcFW++dD7wg9y2InAvy+LUEGfYPYZC41Ncps1yCMISyGHjVaCuw4zpwX RGZXymRyjjipOvjji1Lf+fNV23Sk4bA4QWLVeatx19Gyr0n7g0sXRia8V BExYXH6Pq++KGsjwQ9kcR3hEsoVviJwqrkLWq0Vniptwbn2FIJwKMGHJ6 g==; X-CSE-ConnectionGUID: JlwEwRlLQ0eix87fJoIIcw== X-CSE-MsgGUID: Cz/Ft6qlSVmNhAXgZT0OxQ== X-IronPort-AV: E=McAfee;i="6600,9927,11032"; a="7218752" X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="7218752" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2024 02:31:32 -0700 X-CSE-ConnectionGUID: 1zKRmFJ1R/e8oauVacYm8g== X-CSE-MsgGUID: phKU8EAhThiVGTLk/yTDvA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,177,1708416000"; d="scan'208";a="18797585" Received: from dev2 (HELO DEV2.igk.intel.com) ([10.237.148.94]) by orviesa007.jf.intel.com with ESMTP; 03 Apr 2024 02:31:31 -0700 From: =?utf-8?q?Amadeusz_S=C5=82awi=C5=84ski?= To: Mark Brown Cc: Cezary Rojewski , Takashi Iwai , Jaroslav Kysela , alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, =?utf-8?q?Amadeus?= =?utf-8?q?z_S=C5=82awi=C5=84ski?= Subject: [PATCH 10/10] ASoC: Intel: avs: rt5682: Constify card_headset_pins Date: Wed, 3 Apr 2024 11:31:45 +0200 Message-Id: <20240403093145.3375857-11-amadeuszx.slawinski@linux.intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> References: <20240403093145.3375857-1-amadeuszx.slawinski@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 card_headset_pins is never modified, mark it const. Reviewed-by: Cezary Rojewski Signed-off-by: Amadeusz Sławiński --- sound/soc/intel/avs/boards/rt5682.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/intel/avs/boards/rt5682.c b/sound/soc/intel/avs/boards/rt5682.c index 594a971ded9eb..823f04dba2f76 100644 --- a/sound/soc/intel/avs/boards/rt5682.c +++ b/sound/soc/intel/avs/boards/rt5682.c @@ -80,7 +80,7 @@ static const struct snd_soc_dapm_route card_base_routes[] = { { "IN1P", NULL, "Headset Mic" }, }; -static struct snd_soc_jack_pin card_jack_pins[] = { +static const struct snd_soc_jack_pin card_jack_pins[] = { { .pin = "Headphone Jack", .mask = SND_JACK_HEADPHONE,