From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre-Louis Bossart Subject: Re: [PATCH v4 02/13] soundwire: Add support for SoundWire stream management Date: Mon, 23 Apr 2018 08:25:21 -0500 Message-ID: References: <1524049146-8725-1-git-send-email-vinod.koul@intel.com> <1524049146-8725-3-git-send-email-vinod.koul@intel.com> <20180421161756.GP6014@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by alsa0.perex.cz (Postfix) with ESMTP id E84DC266CA1 for ; Mon, 23 Apr 2018 15:25:24 +0200 (CEST) In-Reply-To: <20180421161756.GP6014@localhost> Content-Language: en-US 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: Vinod Koul 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 >> >>> + (stream->params.bps != stream_config->bps)) { >>> + dev_err(dev, "bps not matching, stream:%s", stream->name); >>> + return -EINVAL; >>> + } >>> + >>> + stream->type = stream_config->type; >>> + stream->params.rate = stream_config->frame_rate; >>> + stream->params.bps = stream_config->bps; >>> + if (is_slave) >>> + stream->params.ch_count += stream_config->ch_count; >> >> Add comment or TODO that this does not work in device-to-device >> communication. This is a known limitation that needs to be tracked. > > Yes limitation for a feature that we dont support yet. So i dont think we > need to do anything atm for this. When the support for device-to-device > shows up, that would update this and other conditions valid only for specific > cases. so if you don't support it yet, add a comment that this will have to be modified. This is all I am asking so that this limitation is known and the parts that have to be changed identified.