Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2802217ybi; Sun, 9 Jun 2019 21:38:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeZH9CBiBKqMU9yTOTkKGXRcsjGR0iyDx7YlfkS72FUkmNS0FHvSLydaiyzQjMGr7H2uW5 X-Received: by 2002:a17:90a:9905:: with SMTP id b5mr13494077pjp.70.1560141522109; Sun, 09 Jun 2019 21:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560141522; cv=none; d=google.com; s=arc-20160816; b=rurwqqhrxPuXBEF4lKnMiGcQnrlJ0pitzzwnzyNrDsGkGKop6XGD1bg3kZm/A374vV F2Lc+fHFilxirG2+P1oK3hgdVLguxxjN845qfglrBjht00OHGFV/VNORGESkUsBi/UR5 HAsMWOE80G4E0zmm79v8GdXIL8UmE7IpGv8iPX1W2Usdpfes0hd77ybSvqNzsFRmu/uV sPRWYqMujWsdbHu323SnC1zg9Zs1oW28JLGhvNdBTcJCwfkCNmdciK6qaRb69tQirnTI w41gJ9eZk2vG6CjW8EwWoAExRFXEqpXMmhvVHqD1/GbzYpDsoQchjy/dcUqCLriy8nK1 yASw== 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=0IBH++2GciDKa26i7Id3FMIwInWVVqdnELJliqjPZwQ=; b=BS+twEKjrxoqzvBXJQB2tXwJ4blcrB43TgzUCVYpBdXgqzKir0kBNKYxvvZl/UHjlJ W+jGYEOy/eJINZayxOMtCdcZpOzb2c8gO9v/AK6yT7SeM1knGTmyRKqHwi1nKWIUpLGI HtVF5B4Y8GaXx3uiF+YV5idEQKXLRGMXJkr7H1i0ry/VrBSeq044ok8AkK50dsFSeDvX QxvF8JjmyZCd2yL0DFSHTVkcExxa9CfAQIubo1DFZ8z117OIfrQpu8Rfd/SlqvHNnSWI 53cSIwfwGw3ITXM+BFI+KIwE2kiykIJhsDoee3saxyiP3W1MlA1Mb5glEUM0ASZoBEvt dHtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EdMNpnY+; 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 u4si9142012pfh.42.2019.06.09.21.38.27; Sun, 09 Jun 2019 21:38: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=@kernel.org header.s=default header.b=EdMNpnY+; 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 S2387430AbfFJEhn (ORCPT + 99 others); Mon, 10 Jun 2019 00:37:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:51238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725320AbfFJEhn (ORCPT ); Mon, 10 Jun 2019 00:37:43 -0400 Received: from localhost (unknown [122.182.223.237]) (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 EFC14206C3; Mon, 10 Jun 2019 04:37:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560141462; bh=EKzU35L2jhiqeTXyzxUrkdzKzSyRcaAAK+9gRjhGQYk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EdMNpnY+toLzZqX2HubcFOhFtq3zNekbZgGctW72IRWT4ALy41oAFS4WIbzpqHVOh G7hZsFF4fbgBZHNuNCbxocR0Nwmocu9EB2WWN5vzFjedgcQlc4BFGmQf8d9njT6Hnb 1eXT++xxUIZF1uHkyqlV8XfN/ChAfFUJxIgCAJvU= Date: Mon, 10 Jun 2019 10:04:32 +0530 From: Vinod Koul To: Srinivas Kandagatla 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 Subject: Re: [RFC PATCH 1/6] ASoC: core: add support to snd_soc_dai_get_sdw_stream() Message-ID: <20190610043432.GI9160@vkoul-mobl.Dlink> References: <20190607085643.932-1-srinivas.kandagatla@linaro.org> <20190607085643.932-2-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190607085643.932-2-srinivas.kandagatla@linaro.org> 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 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? -- ~Vinod