From patchwork Fri Aug 2 12:46:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13751543 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 058DB1E2889 for ; Fri, 2 Aug 2024 12:46:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602785; cv=none; b=jvXafwYgeDn1WWu4iACQIQzvwqWTxSrqYNPT6HOq16colPvucycclL/uuqw6xo/FMZvRVKvgeOkW0XkNvUZHYrcjj24HiCvxrFRPrq6VxSAFR+Xai4WBS4WEPXtmK0nfexFcKiBWCuB4EqdToiDuCxDFyQIxY5++1USXn8GOej0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602785; c=relaxed/simple; bh=XBS9PxZs/DQyKy80vX3Y7aB81pdtJGCDeOOoRgQsmwY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Of1E0j4SwiwLdf2V3YhWRBIC2U1Q3CDi+gVEoH8U+vHs6ErwdoTFmU6UF0cnmjp/RwQP1DreuCzc9g46sJjMmwwv5fsgU0RyJfUJwlx896CE8reyvOlkhprbLykr5Ktc2CQ2oQuFLW9F06HFyctibxQNBZ42KfCyH2EH1mfgrqc= 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=G+zXYEkR; arc=none smtp.client-ip=192.198.163.18 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="G+zXYEkR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722602784; x=1754138784; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XBS9PxZs/DQyKy80vX3Y7aB81pdtJGCDeOOoRgQsmwY=; b=G+zXYEkRFb86Tzj3aYzBiPfaFlJhKakWXlaT4kkFAq3EHNAGFW11Rvv9 7k4veShRT9suEj/xz5ImD1djtoEu38cFffROyBwf5BjE3kSxPyrMU3pHH e5GVp3DGjMPb/xOoXyiTi153JBOs+GqOBpXo2zGqzX0mTbXsKWfpth7nM afWEnTDhAyNN6RprtthttJGMJvpLtu4Xrk0c7gpZN3alE6IzLgfib89sC nyZ1r+3xro+sxsLwe2bNdtY4dPgUxf63j93ld988+l8N2jhrHOhkKfaX7 JzQPCpvGsFZE1rAM+Q+7W2MW9ftp0TKveI45I1AuyeRt+EWpSUtJl5CJH Q==; X-CSE-ConnectionGUID: 1MDTausRSUK8+jWwdolfOg== X-CSE-MsgGUID: /1roylSRQVWp3tgwKhi5RQ== X-IronPort-AV: E=McAfee;i="6700,10204,11152"; a="20199381" X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="20199381" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:24 -0700 X-CSE-ConnectionGUID: tOD1a0kvQaureISg0dzQ2A== X-CSE-MsgGUID: fjelm9b1RTO/i455o8ZSIw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="60407845" Received: from ltuz-desk.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.89]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:21 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Ranjani Sridharan , =?utf-8?q?P=C3=A9ter?= =?utf-8?q?_Ujfalusi?= Subject: [PATCH 1/4] ASoC: SOF: sof-priv.h: optimize snd_sof_platform_stream_params Date: Fri, 2 Aug 2024 14:46:06 +0200 Message-ID: <20240802124609.188954-2-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> References: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 reshuffle members to remove hole. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi --- sound/soc/sof/sof-priv.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 4d6a1517f9b3..28179a573762 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -132,16 +132,17 @@ struct snd_sof_pdata; /** * struct snd_sof_platform_stream_params - platform dependent stream parameters - * @stream_tag: Stream tag to use - * @use_phy_addr: Use the provided @phy_addr for configuration * @phy_addr: Platform dependent address to be used, if @use_phy_addr * is true + * @stream_tag: Stream tag to use + * @use_phy_addr: Use the provided @phy_addr for configuration * @no_ipc_position: Disable position update IPC from firmware + * @cont_update_posn: Continuous position update. */ struct snd_sof_platform_stream_params { + u32 phy_addr; u16 stream_tag; bool use_phy_address; - u32 phy_addr; bool no_ipc_position; bool cont_update_posn; }; From patchwork Fri Aug 2 12:46:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13751544 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 7C8721C3781 for ; Fri, 2 Aug 2024 12:46:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602788; cv=none; b=iTKm0WFItmCAHb+XjdGHZY2JQOg+KQwqGLgk3qdVdfPkdg9vw3tXzJqwsc0QaqBuFukW+9TbobocP2wNRWUdJUbgcDiP6vv/bynEorR6fjYQ/bYtgv3N7tHKKM2sUwz5kA2Wn+C1WrNOWCHwnWU+JZV0wM88BSzAFUfjdQc/yys= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602788; c=relaxed/simple; bh=fpxs6tDpDWLpeRh4dVFvDcdkPptt+K5RS8hhS8lBskk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QkW9LFnfJhXvMWkogGR1jJSjwxf5kR71w4Opw2HUUZ8mXGLfJF9ql5EpDaG8Vofsw8nq0jf7mxKi800GmDdQ9crxQsoVFHj9M6cQ/3HMOgfHYSvN7wBhqyQJJP8wreM6vaFstI+VMnYgif5hva7flJ++P3zEclb3v+sAYLqf544= 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=QU/t0yi0; arc=none smtp.client-ip=192.198.163.18 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="QU/t0yi0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722602787; x=1754138787; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fpxs6tDpDWLpeRh4dVFvDcdkPptt+K5RS8hhS8lBskk=; b=QU/t0yi0O+NMXL/J8x0cvLuWTNXNQTFJ4hA7/jWGffLsoIzsAXRtHCWh q0MYz+I9V4e81jKskT15wnKsmt67g6uZE7hC89StzTjqcfbVlkr4AKpL8 sGijHyonpjRfWm6ZiHv3gsjGyk+mUkpsDxCXS076ntAF9cjUw4VORemKg 1+fUuqmbq54/TQzqkNlyWdEWKpFZ/zso9OUyh6rz59K6fT9CHZiUjYkOE 0o1mvzqw+aVBcuOR00loqh12ROsCmNlA86Eznz4r5jYaVumO/VT1rvO0n eLrt4u+Ohd0b5F9E4Efogmi7C37P39Rt3uXnY/x4P0dG6bCQHxqIxxJB/ Q==; X-CSE-ConnectionGUID: cDzNNiKjSNiPkFSfh3OwZQ== X-CSE-MsgGUID: uUPvMm8xQmqZgaf2CEqN1Q== X-IronPort-AV: E=McAfee;i="6700,10204,11152"; a="20199385" X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="20199385" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:26 -0700 X-CSE-ConnectionGUID: PhUPz21JQ7SWHBluGA8WtQ== X-CSE-MsgGUID: dSMUo1SuSQaG1MLr/Onh+Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="60407872" Received: from ltuz-desk.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.89]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:24 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Ranjani Sridharan , =?utf-8?q?P=C3=A9ter?= =?utf-8?q?_Ujfalusi?= Subject: [PATCH 2/4] ASoC: SOF: sof-priv.h: optimize snd_sof_mailbox Date: Fri, 2 Aug 2024 14:46:07 +0200 Message-ID: <20240802124609.188954-3-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> References: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reverse the two members to remove a hole. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi --- sound/soc/sof/sof-priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 28179a573762..6ecc58e11592 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -412,8 +412,8 @@ struct snd_sof_debugfs_map { /* mailbox descriptor, used for host <-> DSP IPC */ struct snd_sof_mailbox { - u32 offset; size_t size; + u32 offset; }; /* IPC message descriptor for host <-> DSP IO */ From patchwork Fri Aug 2 12:46:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13751545 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 836A01C3781 for ; Fri, 2 Aug 2024 12:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602790; cv=none; b=BfxemtxbjLrzCSkUG4jsOuV3RtO1gleRfzKKdArhGBA5wDGoMAGWklNocD0p86UDH6MSpTIZ3DuTW4iENxUAp39JFCS7WUcOIuUX3JjOz/D9DcKCU9zA/cLlAz7kPfXtNKdysoCngX/aBTOlMU4ZvwGMARslnekqFFpmdqhsc84= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602790; c=relaxed/simple; bh=5foePlp2+cV6Hcaj7mVVBKfwSze+k9WjEGjj4Z0R3rM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Q3SJGLkf04Z1chlDJslpt3mz14yPBCeYLFXLjP4XzXLuidWWpCIbnl6OPT97agz6bujL7WoE6BphJlNbjhQaT27KrQAcc9/5+3dm8SA9330cTos6GG0R5UrGr37nZKv/il/RLioDmrhMdvnk11mNVXhbU9GBlBCDEGwh9uNuzfA= 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=AqeQ+Kt3; arc=none smtp.client-ip=192.198.163.18 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="AqeQ+Kt3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722602790; x=1754138790; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5foePlp2+cV6Hcaj7mVVBKfwSze+k9WjEGjj4Z0R3rM=; b=AqeQ+Kt3GaZKyR/UxwKxKDwplHPqYYa4ZKDPvz8/KDaWvI71Zjns5LIg xhV5RiyJwmq2iwfBlcTFVTq6jhhPqoGLGy2rnNcl0O0zgFT+/g4ADCFft XyErOC5fUDHSau0pp4+IrizqRVRiywxnW+Ak3rYi+mSpffwCJ6rG4k2WT JNf6wnf1w+eRQan4ZFBCG0bTluliOkISo/Cjk5gDOlG3EMMZJ+PhA2ouW Ztf+5ycYvIkqvcAgdIi3T9c1HLypYKC3mFfdz9LcKmkXuHRf45C3j0dFk SxaTkqlD4bBTVSALUFmIhgT3uEyNn1PFyh6jyV2x46dqsirQSbmjbx93E g==; X-CSE-ConnectionGUID: h8tAnnN7SziREdv+fNKrVQ== X-CSE-MsgGUID: 8505dMcST6WwT0CLRFW6IA== X-IronPort-AV: E=McAfee;i="6700,10204,11152"; a="20199390" X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="20199390" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:29 -0700 X-CSE-ConnectionGUID: yAC/kB31QJmlUPxIkGuiRg== X-CSE-MsgGUID: GpK/gihXTRaGT//6H3+6jA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="60407888" Received: from ltuz-desk.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.89]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:26 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Ranjani Sridharan , =?utf-8?q?P=C3=A9ter?= =?utf-8?q?_Ujfalusi?= Subject: [PATCH 3/4] ASoC: SOF: sof-priv.h: optimize snd_sof_ipc_msg Date: Fri, 2 Aug 2024 14:46:08 +0200 Message-ID: <20240802124609.188954-4-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> References: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Move waitq to make sure it's entirely in the same cache line, and move ipc_complete to reduce padding. struct snd_sof_ipc_msg { void * msg_data; /* 0 8 */ void * reply_data; /* 8 8 */ size_t msg_size; /* 16 8 */ size_t reply_size; /* 24 8 */ int reply_error; /* 32 4 */ bool ipc_complete; /* 36 1 */ /* XXX 3 bytes hole, try to pack */ wait_queue_head_t waitq; /* 40 88 */ /* --- cacheline 2 boundary (128 bytes) --- */ void * rx_data; /* 128 8 */ /* size: 136, cachelines: 3, members: 8 */ /* sum members: 133, holes: 1, sum holes: 3 */ /* last cacheline: 8 bytes */ }; Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi --- sound/soc/sof/sof-priv.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 6ecc58e11592..843be3b6415d 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -425,11 +425,12 @@ struct snd_sof_ipc_msg { size_t reply_size; int reply_error; + bool ipc_complete; + + wait_queue_head_t waitq; + /* notification, firmware initiated messages */ void *rx_data; - - wait_queue_head_t waitq; - bool ipc_complete; }; /** From patchwork Fri Aug 2 12:46:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Pierre-Louis Bossart X-Patchwork-Id: 13751546 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (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 6DCEB1E289F for ; Fri, 2 Aug 2024 12:46:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602793; cv=none; b=iiyRB2YA1/tYtySRKyhM3WDhiMBcLO+X+9OjGR5wrech1qrfgHsRx1SoFm0IKCB+aVhPXckriyGojfyYTVEvh2oehl+3VbEQwkaSUUagNvB0KVCHTnrm4e5JawGCE7m1KjRQNylY2DfZ06n+aNk5mhrjLNJP9nKagLRrfAvA/uw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722602793; c=relaxed/simple; bh=z+Sp/e05K5Vs3Docgs64RMH7lUs8XWU9ixiBYYv/QaI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=SjO6QBantW8mJTb7levtXLXLfiQK7kfY7lkOjdKI3tKPs3wuQbPDoGzvZbL0CV6AkY8N9zrKt/YhejyrCFbWkm452OZVCp1CCg6B6veEkMwp2YqdysAEB/QymRp8MjTlAzRgkudDzpuLjDZG+RdSM3Wh9ZFKS4Lei5tvtIkkiIo= 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=a6h+j6Yv; arc=none smtp.client-ip=192.198.163.18 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="a6h+j6Yv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1722602792; x=1754138792; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z+Sp/e05K5Vs3Docgs64RMH7lUs8XWU9ixiBYYv/QaI=; b=a6h+j6YvPdZXEeqJ9JL36dYcA9HsnxjijJ+3J+RHmbZDg3MCmpyw9RX5 IdUpSjRBeAV7xDd+DfSE3CqkXdsD3xqGzFeWcNsmQZfiIr8rVoPfRVVnJ Ifh00K4W/zwySA7nnTkYYlHaC/Snu47g7wFSrzbLI5+hlaHyB433iF576 9dHZLanShcAG4cQMQ+XDLkqUKK+q9IM8pWlPdEnbsXv+UekXsH0b8eyM2 ZtQw6lZJbojpuaYjMHUd5WIuQ6U++la6/v2H2Rwt76im9ufd6d2Izv56u e9VhbXxFfnZN6KrOgY9nnIWdPW6W9wldkSLe5JU9594Srtf8+41nAJS7T A==; X-CSE-ConnectionGUID: VYKbMWVUTyqFICMunVhVhA== X-CSE-MsgGUID: 8rB8Sep4TI2NNrRqcwM7fw== X-IronPort-AV: E=McAfee;i="6700,10204,11152"; a="20199395" X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="20199395" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:32 -0700 X-CSE-ConnectionGUID: pZCeloacRgK9OLuASgvsNg== X-CSE-MsgGUID: XTmyxUFeRwGIlTlhgtT5BQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.09,257,1716274800"; d="scan'208";a="60407902" Received: from ltuz-desk.ger.corp.intel.com (HELO pbossart-mobl6.intel.com) ([10.245.246.89]) by orviesa004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2024 05:46:29 -0700 From: Pierre-Louis Bossart To: linux-sound@vger.kernel.org Cc: alsa-devel@alsa-project.org, tiwai@suse.de, broonie@kernel.org, Pierre-Louis Bossart , Ranjani Sridharan , =?utf-8?q?P=C3=A9ter?= =?utf-8?q?_Ujfalusi?= Subject: [PATCH 4/4] ASoC: SOF: sof-audio.h: optimize snd_sof_pcm_stream_pipeline_list Date: Fri, 2 Aug 2024 14:46:09 +0200 Message-ID: <20240802124609.188954-5-pierre-louis.bossart@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> References: <20240802124609.188954-1-pierre-louis.bossart@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Invert members to remove hole. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan Reviewed-by: Péter Ujfalusi --- sound/soc/sof/sof-audio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/sof-audio.h b/sound/soc/sof/sof-audio.h index 49be02234fc3..b9b8b64768b9 100644 --- a/sound/soc/sof/sof-audio.h +++ b/sound/soc/sof/sof-audio.h @@ -314,12 +314,12 @@ struct sof_token_info { /** * struct snd_sof_pcm_stream_pipeline_list - List of pipelines associated with a PCM stream - * @count: number of pipeline widgets in the @pipe_widgets array * @pipelines: array of pipelines + * @count: number of pipeline widgets in the @pipe_widgets array */ struct snd_sof_pcm_stream_pipeline_list { - u32 count; struct snd_sof_pipeline **pipelines; + u32 count; }; /* PCM stream, mapped to FW component */