From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Subject: Re: [PATCH 02/13] soundwire: Add support for SoundWire stream management Date: Fri, 30 Mar 2018 12:12:49 +0530 Message-ID: <20180330064248.GP15443@localhost> References: <1522229918-4748-1-git-send-email-vinod.koul@intel.com> <1522229918-4748-3-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by alsa0.perex.cz (Postfix) with ESMTP id BD2062671B9 for ; Fri, 30 Mar 2018 08:38:34 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Pierre-Louis Bossart Cc: ALSA , tiwai@suse.de, Greg KH , liam.r.girdwood@linux.intel.com, patches.audio@intel.com, broonie@kernel.org, Sanyog Kale List-Id: alsa-devel@alsa-project.org On Thu, Mar 29, 2018 at 08:57:59PM -0500, Pierre-Louis Bossart wrote: > On 3/28/18 4:38 AM, Vinod Koul wrote: > >+/** > >+ * sdw_slave_runtime: Runtime Stream parameters for Slave > >+ * > >+ * @slave: Slave handle > >+ * @direction: Data direction w.r.t Slave > >+ * @ch_count: Channel count of the Slave w.r.t stream > > same here, I flagged all this already as needing to be fixed. Something's > not right here, looks to me like you send the wrong version of the > patches... Somehow missed this bit will fix > >+struct sdw_master_runtime { > >+ struct sdw_bus *bus; > >+ struct sdw_stream_runtime *stream; > >+ unsigned int ch_count; > >+ struct list_head slave_rt_list; > >+ struct list_head bus_node; > >+}; > > no direction? Yes no direction here. Why would sdw_master_runtime need direction. If you look closely we do have direction but in data ports. One can argue we can move direction up here and remove from data ports, that seems logical, is that something you would like to see? > >+enum sdw_data_direction { > >+ SDW_DATA_DIR_IN = 0, > >+ SDW_DATA_DIR_OUT = 1, > >+}; > > WTH? Didn't we agree that we would use SoundWire concepts instead of > redefining new concepts. So we will make this TX/RX as discussed. -- ~Vinod