Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp299383ybl; Tue, 13 Aug 2019 21:13:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqysDzvUV6YSCL2z+LIFwqhKI08KNAxhkYEf1CQvkmr9nlF8Egm/TDEqEZYuS6RAT4+N0MME X-Received: by 2002:a62:187:: with SMTP id 129mr44605331pfb.128.1565756023477; Tue, 13 Aug 2019 21:13:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565756023; cv=none; d=google.com; s=arc-20160816; b=Xlw7qzwmJW67/6QuEziptvNeE5qjKlxCrR5apgpYnUZf90DRisqBNp3rJGe60aEvJ5 dtV4YtKbBM3hAy2DDL0RhTek97g4cxaEe2YLG4+cLH/pomDL7wq//F+W+gMu/buQaQ4x 71lcwsKFnaZfQGn/VeyX1jhElH2SrcwGRV0r485kqXtDXGb6AnIoOjV/b6IKvU9nowx9 hJZ4FYsZKFxkyfiq8VV5h5vTYNUMhC9Emn8Ri5l0UtC2MluI2uaZWeRkkZBP+vsH42QM oeptCbac+diafCD8KeILLyWnoEsk85xvy/opj02+BIkmApDoP24/Nd4A4yxMTqeBwuPd PMBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sEccRgI7j8NkHZSNLleKZPKSYwVBb8qSHOC3btQ22ME=; b=PLOL/QGn2qwcJafhOg5AS4nhIGlJU9/DSkh4iBM6TehGoxxGVyoNjgjyvpc4SWSEcZ lyViuk4JPnVBKklb2MNZR07KzPuCFhHgXZE5sB53oZnJUDsxFcLG6XZILLVImE5Owj98 4KWk4TZb7QzkkReHpTvS9QrbQdQrQEy4qpUnBj/lXtir7U711bGjhubNoFH9vLKqeXSL RzYGHa+bIEO7lKjFgXRvCpBk+DSkW0VW3UMMV4UrhLJTDOrXjRlaQX2+anBsZW4nf9fi Jdz0zFN1FgyzkyKYXduOsip2Y7yjFLoKgBtcQNFGErxp8VpHk99uZsHUkMvUD8K3hJGX Xz3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkmFK38c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si18876384pgv.451.2019.08.13.21.13.27; Tue, 13 Aug 2019 21:13:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkmFK38c; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727002AbfHNEMz (ORCPT + 99 others); Wed, 14 Aug 2019 00:12:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:48744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbfHNEMz (ORCPT ); Wed, 14 Aug 2019 00:12:55 -0400 Received: from localhost (unknown [106.51.111.160]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0805420843; Wed, 14 Aug 2019 04:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565755974; bh=x6L4Ab4GwkfFv2tLx6IooKohLXKZx+ziOKbXCdycO7M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LkmFK38c+er/rP52PMhS4hw6QCvPGjZyyffDgJ0aVE1zfuzPs5dnwYMCujuh9Ds7d Z3vnCjGD+GZ9Gp3AM+ew8qiZHciwxlQ1KCngNeYhVGmdcJxHbXa8h0g5dcMEfUCgDx 07kpERkuYqgxYsz9qxTl9ISxAGBAkrOlwHdVftls= Date: Wed, 14 Aug 2019 09:41:42 +0530 From: Vinod Koul To: Mark Brown Cc: Pierre-Louis Bossart , Srinivas Kandagatla , devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, plai@codeaurora.org, lgirdwood@gmail.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, spapothi@codeaurora.org Subject: Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream() Message-ID: <20190814041142.GU12733@vkoul-mobl.Dlink> References: <20190813083550.5877-1-srinivas.kandagatla@linaro.org> <20190813083550.5877-4-srinivas.kandagatla@linaro.org> <20190813191827.GI5093@sirena.co.uk> <20190813195804.GL5093@sirena.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190813195804.GL5093@sirena.co.uk> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13-08-19, 20:58, Mark Brown wrote: > On Tue, Aug 13, 2019 at 02:38:53PM -0500, Pierre-Louis Bossart wrote: > > > Indeed. I don't have a full understanding of that part to be honest, nor why > > we need something SoundWire-specific. We already abused the set_tdm_slot API > > to store an HDaudio stream, now we have a rather confusing stream > > information for SoundWire and I have about 3 other 'stream' contexts in > > SOF... I am still doing basic cleanups but this has been on my radar for a > > while. > > There is something to be said for not abusing the TDM slot API if it can > make things clearer by using bus-idiomatic mechanisms, but it does mean > everything needs to know about each individual bus :/ . Here ASoC doesn't need to know about sdw bus. As Srini explained, this helps in the case for him to get the stream context and set the stream context from the machine driver. Nothing else is expected to be done from this API. We already do a set using snd_soc_dai_set_sdw_stream(). Here we add the snd_soc_dai_get_sdw_stream() to query Thanks -- ~Vinod