From patchwork Wed Jul 24 16:24:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 169616 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp10464841ilk; Wed, 24 Jul 2019 09:24:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyWMVCtEcbrav0XEo0GW2J2+4R8X8J58duInniS0sSfdqWQ0ph04wXNRPYxVwcPcnjiSBVG X-Received: by 2002:a17:90a:b011:: with SMTP id x17mr89141602pjq.113.1563985463404; Wed, 24 Jul 2019 09:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563985463; cv=none; d=google.com; s=arc-20160816; b=JlQpewPUIQODIPOO7sHNBBBC4q+mqR92FYwVuIuu7/VPypL/GVhsJSlwP7ljlCSj99 KO1jh6BX9kfJ5bm9hrNkp9RbpW/5s/JJRDDIXmweOXvsYQdnCRpFGy/goa6stYbOFV0K duANRv8oExkcl/7e5/UczlMgD6bka1fHGCJfsgC/xYtKFt5Psub08ZUSamaPdrBr1yrs nObDWP/HwXdebSQDBBXIN249BKOkP3kqYDQl/nHddfViML+9TePhxgXjOyzNNaptE2/m 3tw+zsaAnp64R7/763sbJopzI+LHPzLDv2UbK5EW7cHdddRaVxt7qNmVekGmX6QjYTQe BJ8A== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UJ9KDGBOl8aIUqKuxRToZa5/dKJVoJYKCqFTu5LeV1A=; b=By1XcuqZ/0e2K8oKst+waSQ4t3YjpodbfngLqezsFaA2onneMYnMNXcRluWp/348uf 3Kf9b+lpmJIBBoLoQug+0MtYbqJezRTyQZKsYUknEgL7m7ew/yGtj2LaxVK+8C2GEabp v4srNlNuA9qfDlXvpOAnJ0q2IOQwxpgoIer/DaXVokTPaGG8OKdszjGaZjAcY7uupvIg ILAWV0wTSy/EU7vePBUnSsE6g6gQWORngvCIkqQmERP50v1gQUAufnWYcCCaXzozVWsN rjkCqnI6e0wA5FnlbqlQNehgsKZyoJSjxA9Kla2ESJCJCjdedOdQzbWbdxB9OeLB9FVp WSRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tU0u8Kzo; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14si12860870pjq.53.2019.07.24.09.24.23; Wed, 24 Jul 2019 09:24:23 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tU0u8Kzo; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728838AbfGXQYV (ORCPT + 29 others); Wed, 24 Jul 2019 12:24:21 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44028 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728780AbfGXQYR (ORCPT ); Wed, 24 Jul 2019 12:24:17 -0400 Received: by mail-wr1-f68.google.com with SMTP id p13so47623852wru.10 for ; Wed, 24 Jul 2019 09:24:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UJ9KDGBOl8aIUqKuxRToZa5/dKJVoJYKCqFTu5LeV1A=; b=tU0u8Kzo4EqYFk+S/PB7XaSJUsAodzLIXYMpL2tWf18qebqFw73F789ZMYL9or9SsK dqKPqCfMrQm/8qtBnymmETaftmj2gXdDTqbZeXG94Gcn5Fb8vfeZiMuiL+siIEU4EZO/ chX0PSxfTCfqr/6ho4HEP9cQJ2OvcSntdppRHBL7xpC02MhR5YZN537v2LeeBKtn3aS6 B5HCEKhe4Bsa/xsFrKapjdoaJaoSFK7pS35WXAQ5rGtDx/6F5GLO3/LdkR2T/9mTXY2o RR5rolvIqI94A16zqWHC8eg7NqWQBgxATiaOGRqNE18Pf+VU9hDDWW9yyNX5nK4rWcRh S24Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UJ9KDGBOl8aIUqKuxRToZa5/dKJVoJYKCqFTu5LeV1A=; b=l8/tM+fn1FffhGBz+xVgprYiEspM2qXdRcUu7i19Zrg0XS78u1ZrAHwnJzJpaiUr4V ELQTXKktzb6PtpijR4fA8cRRL7RHnXX4WZzaGnFhlNRJz/ntm2t6VUGmYDPWviobKl+g BYJy9wQj3QfpFda3foa2drtUHPLOr73btVd+To3xo3gKFVPZ2Gy44ffsIBKLbMFQ9R8r VFF65CJ1hUlgi/TLsQqgL1OKXaj55mMCaz7PAwJbelSl8vMrUw6F4ca4Nye39yuKB+Fl byoZ6S+zYifImKst2SXeS76lqtCRgd4YZwP5005HV6uGmtpmenckzggUyQu3ZEpkeq9f JlFQ== X-Gm-Message-State: APjAAAWLx2H/QaQ4k5DilpfsGSGqLSqL6ITo9argbfod4o00tedxt/x6 CnhZMQIbvU00xqkXLtA9eIQDmA== X-Received: by 2002:adf:da4d:: with SMTP id r13mr57578825wrl.281.1563985455657; Wed, 24 Jul 2019 09:24:15 -0700 (PDT) Received: from starbuck.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.googlemail.com with ESMTPSA id f70sm55688960wme.22.2019.07.24.09.24.14 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 09:24:15 -0700 (PDT) From: Jerome Brunet To: Mark Brown , Liam Girdwood , Kevin Hilman Cc: Jerome Brunet , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: [PATCH 6/6] ASoC: codec2codec: fill some of the runtime stream parameters Date: Wed, 24 Jul 2019 18:24:05 +0200 Message-Id: <20190724162405.6574-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190724162405.6574-1-jbrunet@baylibre.com> References: <20190724162405.6574-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-Patchwork-Bot: notify Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set the information provided struct snd_soc_pcm_stream in the struct snd_pcm_runtime of the codec to codec link. Signed-off-by: Jerome Brunet --- sound/soc/soc-dapm.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.21.0 diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index e0eedff5fe94..a6bc3eda275d 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3892,6 +3892,11 @@ static int snd_soc_dai_link_event(struct snd_soc_dapm_widget *w, dapm_update_dai_unlocked(substream, ¶ms, sink); } + runtime->format = params_format(¶ms); + runtime->subformat = params_subformat(¶ms); + runtime->channels = params_channels(¶ms); + runtime->rate = params_rate(¶ms); + break; case SND_SOC_DAPM_POST_PMU: