Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1442996ybl; Tue, 13 Aug 2019 12:41:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqy53Qqwb4sfxxwTp/R0ZWLo6TN3Uwqit69PVIPjXXkhLke/F76cMF16tLdzZdvj5yULEnjP X-Received: by 2002:a17:902:54d:: with SMTP id 71mr38245169plf.140.1565725291686; Tue, 13 Aug 2019 12:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565725291; cv=none; d=google.com; s=arc-20160816; b=jfKOYJDNAwJD3QVsQHI4eL6qJlXP5UTifkG/vP4ID3ujrd4HQzZNT65FSGbBkaBmUO lHQaXtVxu1RCxyXfRZlc6rj5wHN8c3eOvNw0SOn8HgcM2yD/IY9/BubzWUrZCE6HkT9W lOlclOos+0t3VokHAY17Ymtz6suFr29TgwKyOfJD2ioFmfw8yHeat40tMDtRpOUdjiCm 4bQKDGuSwpLT5DVs+fHGUegnC27G4txkqG8CNoJAEMA+04B4keW1vghuJkGzMWr0YmYH XsmK60gxE+G2WAAAT6UV3OWKKQfGfaZe+O3vq8VoCEBi7DA4NZQBalpuJqH0dc3lcL0F mqTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=my37aCxoC95im3dfG4/eWZMH5M0IWq/Wt16+mEalX2E=; b=dUmTC8nJexjhYJq6sfyWlwU+BbD5qJ7p3CiiKOjioEbFjnFY2cnAFQdD0eb1HSxpet A6nDjQtixp/c9jhf96QVnHVcwELXoJ2HdOg72ClvllXtPE0sNXJwtgesdKS7pXkvONwt nWfs7Ud/ukYoM1f0OvAZ42D+PTQX1HCcJTONUMPzF1eGS3fJxL/1mWUQzQHHKjGEW7Bv 0WxyfxrluKGWvzMJepAKMrH4VlvN+1cIcCQZN3+UthSpF9SrQXmZ1y6xQ9CJhBGV5v3E gIQ6spUoBiPSEmtdHFs/sivpJPYGLcojRXG5gwtn3hfBmSWLiIPYaxW1u1D+a6Au3CeX qClA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si42182780plz.351.2019.08.13.12.41.13; Tue, 13 Aug 2019 12:41:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726251AbfHMTih (ORCPT + 99 others); Tue, 13 Aug 2019 15:38:37 -0400 Received: from mga02.intel.com ([134.134.136.20]:5176 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfHMTih (ORCPT ); Tue, 13 Aug 2019 15:38:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Aug 2019 12:38:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,382,1559545200"; d="scan'208";a="183972065" Received: from linux.intel.com ([10.54.29.200]) by FMSMGA003.fm.intel.com with ESMTP; 13 Aug 2019 12:38:35 -0700 Received: from dalyrusx-mobl.amr.corp.intel.com (unknown [10.251.3.205]) by linux.intel.com (Postfix) with ESMTP id 361CD580372; Tue, 13 Aug 2019 12:38:34 -0700 (PDT) Subject: Re: [alsa-devel] [PATCH v2 3/5] ASoC: core: add support to snd_soc_dai_get_sdw_stream() To: Mark Brown Cc: Srinivas Kandagatla , vkoul@kernel.org, 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 References: <20190813083550.5877-1-srinivas.kandagatla@linaro.org> <20190813083550.5877-4-srinivas.kandagatla@linaro.org> <20190813191827.GI5093@sirena.co.uk> From: Pierre-Louis Bossart Message-ID: Date: Tue, 13 Aug 2019 14:38:53 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190813191827.GI5093@sirena.co.uk> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/13/19 2:18 PM, Mark Brown wrote: > On Tue, Aug 13, 2019 at 02:15:18PM -0500, Pierre-Louis Bossart wrote: >> On 8/13/19 1:06 PM, Srinivas Kandagatla wrote: > >>> sorry for the confusion. It was too quick reply. :-) >>> I was suppose to say sdw_stream_add_slave() instead of set_sdw_stream(). > >> ok, so get_sdw_stream() and set_sdw_stream() are not meant to be mirrors or >> both implemented. It's just a helper to respectively get a context or set a >> context but a get-modify-set type of operation is not expected. > >> Do I get this right? > > This seems like it's going to be confusing... 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.