Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2932197ybi; Mon, 10 Jun 2019 00:59:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ/X0tu0amwhTNxX11b1T2Co6Pl3Q/eTOxPpllDtr2BEkz5f8ZPLPgG9wxcw0fLEwaf6S9 X-Received: by 2002:aa7:8d89:: with SMTP id i9mr34166733pfr.77.1560153582642; Mon, 10 Jun 2019 00:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560153582; cv=none; d=google.com; s=arc-20160816; b=VRUgvg5YQOy4wi2uZuvRmaTnQai7IjjsIG7ahd4/lmR4L37fImhuXR6F8xvT+p1Dlg oZbojp0AnJGqYHlV4Q4Eu9znfh8REkvgdCm2pah6JN0/QXDptaCqgu5NuVdHcwJvs9eB 3HT0aZEoX82W1IQF2q5dfkh/PIIoM1jFYRJ0cmkJGRfUcy/4CkWDFuttSnqJdmitAeqC sOpfXkNlQ8FvF5N50CWUIluVIDsDrCWKVDinLXx7wRrrfJmqxsqMPRqejwiSBAeXzrE+ aeD9c/jbpu8vEhdv+a4nsZKYslj9bwItcS8bwYiO8IpDqJg085VT4D1VEuVk9IJTjP86 1ONw== 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:dkim-signature; bh=oWEp6Smq9HgtNsDGiPy/kfOisBvfFm/zGIpQCU//1j8=; b=Te9azo96GuQQwOFXjCZ5uBm+YiWQcnHZ5fQTlrCdJsXRuimeEVniQZVC/9tsm+XR4O ebjOIR+X9JMoAQ4b6+TaVyPZirFZWGwo1f5UxZ34ZXeg0pVrshfEKugIs01ywY7cjLb6 HoWmMOJNDwHMweV4RkKdqDcBzkHAveVGrOfqhT4rUm3BJJCl0EGAqI36o33hgSezSGRI HBFwOhxr7Yl554ZP50OOCo/iGVzz5MIzetoaNSDCiiuiu/hNKSjXAleHy4klvioxNBkN +hDlrxQzpfQWfopKvX61BOeZ9tqNeQtvwvMx7PZ1jAEevHkVMYZ3ve+oQ81kgGxetHuL UCvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tPWiMoaZ; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h61si9234707plb.256.2019.06.10.00.59.28; Mon, 10 Jun 2019 00:59:42 -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=@linaro.org header.s=google header.b=tPWiMoaZ; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388315AbfFJH6i (ORCPT + 99 others); Mon, 10 Jun 2019 03:58:38 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:32945 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388261AbfFJH6h (ORCPT ); Mon, 10 Jun 2019 03:58:37 -0400 Received: by mail-wm1-f66.google.com with SMTP id h19so8411303wme.0 for ; Mon, 10 Jun 2019 00:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oWEp6Smq9HgtNsDGiPy/kfOisBvfFm/zGIpQCU//1j8=; b=tPWiMoaZTxIg+ivBcwmlElm+0vlw8VlzRSFGWWqzkumTqJVKQsfEOfm4gUr1SwSF4+ OP6lP+PGVF+WPm9/NMLY3dhw+o06UaurpHiLVOdtsWiVqxgvC6izd2jyAZXigWlBH7D5 aiQ9L60OxHqg653nyvjbBDHArg4rxY2cmyzHOyqVkcdRI+GnVp9aSJJS0pAbNcwqNHiU OrA1dT4U4CBGfefIWHO4/9CkV2/7kWUSxPpF9CGt0MM5rCeDLxtD2pfNh+pPZI1RHDIG +qwtX7CpV6YIO/dPqxetlnA9ur6JWfBFz9JWzKi+MWKLQZnKSMkgLGd6uL6uGf/s2TtR dHOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oWEp6Smq9HgtNsDGiPy/kfOisBvfFm/zGIpQCU//1j8=; b=aia1uDNqq2hD8ukGvk1IHhH+ZLz180WWJDUhcWyyoQaC9OxqtBgH2LohAeniVR24B8 z+MusK8JyeqH/g+u7cTWzOPjJRz4h2eONAjKHcEm9MY7OUqkFrEkNdyRmFZJMWiXRsiQ 7h914DLkSCY3izwYMz0Rb7dQAbwRq+TGW/elJKLlbM2xjmIszVSbqRgstGmbeVf4wQR/ TvaDapINjs6FWkEzBLFHeNDL13uPnI1zhWJTi7fVOIeLAthkrEDW2Vxys1HVZ3TiTOtF gNnlsOF/aqKSgf2DxsYBbPY5lT19hQBfzis1OwB3b3WCWAgfp0OAgvcSDlDWdj4xePY3 bxzA== X-Gm-Message-State: APjAAAXfyL2fIQoIze0Ms64g5GVq/V6scUlaMbreoJMB91g0EoULhagK oucQTk/ifkDsnIjWeQAC41y86FArC1jfWQ== X-Received: by 2002:a1c:3b45:: with SMTP id i66mr11106276wma.48.1560153515330; Mon, 10 Jun 2019 00:58:35 -0700 (PDT) Received: from [192.168.86.34] (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.googlemail.com with ESMTPSA id a81sm4227375wmh.3.2019.06.10.00.58.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 00:58:34 -0700 (PDT) Subject: Re: [RFC PATCH 1/6] ASoC: core: add support to snd_soc_dai_get_sdw_stream() To: Vinod Koul Cc: broonie@kernel.org, robh+dt@kernel.org, devicetree@vger.kernel.org, mark.rutland@arm.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org References: <20190607085643.932-1-srinivas.kandagatla@linaro.org> <20190607085643.932-2-srinivas.kandagatla@linaro.org> <20190610043432.GI9160@vkoul-mobl.Dlink> From: Srinivas Kandagatla Message-ID: <689065b2-9d5c-68b4-d72f-1e971b903df2@linaro.org> Date: Mon, 10 Jun 2019 08:58:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190610043432.GI9160@vkoul-mobl.Dlink> Content-Type: text/plain; charset=utf-8; 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 10/06/2019 05:34, Vinod Koul wrote: > On 07-06-19, 09:56, Srinivas Kandagatla wrote: >> On platforms which have smart speaker amplifiers connected via >> soundwire and modeled as aux devices in ASoC, in such usecases machine >> driver should be able to get sdw master stream from dai so that it can >> use the runtime stream to setup slave streams. >> >> soundwire already as a set function, get function would provide more >> flexibility to above configurations. >> >> Signed-off-by: Srinivas Kandagatla >> --- >> include/sound/soc-dai.h | 10 ++++++++++ >> 1 file changed, 10 insertions(+) >> >> diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h >> index f5d70041108f..9f90b936fd9a 100644 >> --- a/include/sound/soc-dai.h >> +++ b/include/sound/soc-dai.h >> @@ -177,6 +177,7 @@ struct snd_soc_dai_ops { >> >> int (*set_sdw_stream)(struct snd_soc_dai *dai, >> void *stream, int direction); >> + void *(*get_sdw_stream)(struct snd_soc_dai *dai, int direction); > > So who would be calling this API? Machine or someone else? From Machine driver in my case where smart speaker amplifiers are modeled as aux device which is also dai less. --srini >