From patchwork Mon Feb 24 06:44:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 13987476 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 F1A93242914; Mon, 24 Feb 2025 06:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740379532; cv=none; b=DAyRCf2o0mweF4tOkwQJd1wT24vG9jdAdAKNg1zj8MizE4gHk0sMcGpYB4QF300iqPEd2mLw0V04YeyvBHZQ70jN7M5sfxn4sYvVRU+AEO/NDJN6OC4cJdrb+qUbYjWU7KK6TMNcUPlPPwmpwmaM+tSI7ZZchoVQBM2U3rizvrw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740379532; c=relaxed/simple; bh=n/tmGf7u2M+6dJ0HA/2jjiroZMIY7BNs+wBOXTsMTSg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GzGDjDN1MFBKtVtadLU1rdvw8lCy8Lnoavi2EQwFjViH2XMV28FWO1j9zzcieI1xXHa6hTxAtd+gMSVtgp/sryVgc1GQ80Rmvf+ZlCK3IUa/IgwDJh1ny/XI6GAhm7+aNZhFelZXf0JOPm51hN0OjJlZLkI9Fmdy6F4o3NsFXHg= 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=bmeBXjY0; arc=none smtp.client-ip=198.175.65.10 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="bmeBXjY0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740379531; x=1771915531; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n/tmGf7u2M+6dJ0HA/2jjiroZMIY7BNs+wBOXTsMTSg=; b=bmeBXjY0IyPp1syFJfQdMSGd7MRUmmyUiD9NVkpOaoGdsrnKY/y2Nieg 3fe5BAm0LxGQB2+X5+m1IFRu8TAZd8dyz5bl23H6RER8EFtqnwG4AnYq9 MqJJjPzWQGkbGQ33iSR2QVpeMFLIh5eIOccFlvt3bSEw+fKq8r3fAp9DP wC+mpTd0RwaLT2M9IU5fZ3eC/0srM/fUb3V8bR71cVAGlTzjyA0q8JY7/ 2V4zKpyzaaL+nVoI4KDmEq7bD3iTE9NMa51znP+ECSzBzcmU281PeMkkC 9exISPVYZbUwk7rikOMRAS/iJeUrPvZw+jgtI9msbFMkIFkvtvFBwu32K Q==; X-CSE-ConnectionGUID: SPUgEGYYQ2mSe8MFIWkHvw== X-CSE-MsgGUID: Nedhb743TL6LaQTqIsQngg== X-IronPort-AV: E=McAfee;i="6700,10204,11354"; a="58538960" X-IronPort-AV: E=Sophos;i="6.13,309,1732608000"; d="scan'208";a="58538960" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2025 22:45:30 -0800 X-CSE-ConnectionGUID: 7MqRpvGAQMKmQN28B1nIbQ== X-CSE-MsgGUID: lgw/sC0OROaFkTbEIhfBgw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,309,1732608000"; d="scan'208";a="120597717" Received: from ssimmeri-mobl2.amr.corp.intel.com (HELO yungchua-desk.intel.com) ([10.124.222.232]) by fmviesa005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2025 22:45:29 -0800 From: Bard Liao To: linux-sound@vger.kernel.org, broonie@kernel.org, tiwai@suse.de, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.dev, bard.liao@intel.com Subject: [PATCH v2 08/16] soundwire: bus: add bpt_stream pointer Date: Mon, 24 Feb 2025 14:44:42 +0800 Message-ID: <20250224064451.33772-9-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250224064451.33772-1-yung-chuan.liao@linux.intel.com> References: <20250224064451.33772-1-yung-chuan.liao@linux.intel.com> Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Pierre-Louis Bossart Add a convenience pointer to the 'sdw_bus' structure. BPT is a dedicated stream which will typically not be handled by DAIs or dailinks. Since there's only one BPT stream per link, storing the pointer at the link level seems rather natural. Signed-off-by: Pierre-Louis Bossart Signed-off-by: Bard Liao Reviewed-by: Péter Ujfalusi Reviewed-by: Liam Girdwood Reviewed-by: Ranjani Sridharan --- include/linux/soundwire/sdw.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 69f3e700796d..2362f621d94c 100644 --- a/include/linux/soundwire/sdw.h +++ b/include/linux/soundwire/sdw.h @@ -979,6 +979,7 @@ struct sdw_stream_runtime { * @stream_refcount: number of streams currently using this bus * @btp_stream_refcount: number of BTP streams currently using this bus (should * be zero or one, multiple streams per link is not supported). + * @bpt_stream: pointer stored to handle BTP streams. * @ops: Master callback ops * @port_ops: Master port callback ops * @prop: Master properties @@ -1017,6 +1018,7 @@ struct sdw_bus { struct sdw_bus_params params; int stream_refcount; int bpt_stream_refcount; + struct sdw_stream_runtime *bpt_stream; const struct sdw_master_ops *ops; const struct sdw_master_port_ops *port_ops; struct sdw_master_prop prop;