From patchwork Thu Jul 25 16:59:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 169731 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp11886789ilk; Thu, 25 Jul 2019 10:00:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJcSo0eF15eGz7TyInNDrEhG3hlG7p5xxybVMI4h3WPeFJiq296EREZonHAXH8rR9FJ6nb X-Received: by 2002:a63:1e16:: with SMTP id e22mr18471296pge.163.1564074005806; Thu, 25 Jul 2019 10:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564074005; cv=none; d=google.com; s=arc-20160816; b=l9q2frLRv1Ux42ujegKRYhsxIvpPxJiZDQPK6+bit+Mks6liqz4u1NBwHu3NGdgVZ5 ghaSiXDu2J+mQmFUd/2JAgXa4aPLPQTGXD2Vrvcbp1Lw65/UhOH61njYq4ngJktXMv33 Eozk55ZSMnn9J4xg9p6t11OUU9gbws06D60VqTpucno2CynCOsv2mf/QkfFwV86895cH Ce85jJZ5EtalbwUdQe0KkZ9FVpFY3oyYTKVCb9AACYxmQN7yCIlNYTn8KlxV1LoWc/VA DD9bOkQSfGorfd4SBUJBd9vPcsNCDg7QCDoca9NKSKecDzBSjI2PVcvxkDyCiuuVbf4B wZBw== 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=lbYdutAm45vnNpTOgncZbQOVHMX6IrCJM1Bp1BbX570=; b=P4ILlv7DSvvAl7cuUUo0obH5ofsBKIoms877wKqUgrS6GajfrB9GWutUGnBfgSBjtX kuH+UnHrFA0hFZllVL6Ktj9+mH0PJU0xQNQhZSr8AICSc4H9zaeu8MGh47X7UHxrlKUF b4kZuWFa6GDVkyqzNHQ4N6rulxpP1cb7T2yFsl0DWvOb62dcjmDfm3d8ZJVdGjQzd3Gx TGiJQH/dXTDW1QzCY18C2yL6e7iVkh2E1my9/h0zVs6o5BzpZflCrYEAFzPBNrllZody 2jCnhppQ0/ukImxMIk4ksvxhoHQrcJGq+9WbUSvC9+5EA4rQvQw0YWMGnNqYJeWzjS4f 0yzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=JHL5b6yj; 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 f89si19482377pje.50.2019.07.25.10.00.05; Thu, 25 Jul 2019 10:00:05 -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=JHL5b6yj; 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 S2391016AbfGYRAE (ORCPT + 29 others); Thu, 25 Jul 2019 13:00:04 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40457 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390569AbfGYRAA (ORCPT ); Thu, 25 Jul 2019 13:00:00 -0400 Received: by mail-wm1-f65.google.com with SMTP id v19so45402459wmj.5 for ; Thu, 25 Jul 2019 09:59:59 -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=lbYdutAm45vnNpTOgncZbQOVHMX6IrCJM1Bp1BbX570=; b=JHL5b6yjq498WqGFuxUL/3bR4AEmuQubYpax4UgNdWtxexCUwcLOEgfLEK6IEeOV9j ZEQ/VPp/zAPPlSOpJ2P7cK/l0jbzfN93PS9DUEChu69bt2XEmoBULnR82eIPbgYt71dv 9MVzSFF95J4xkl9e4ZrDs5TF6h1wxTdijRA/El6uPPOXG5PtDW22GgkqXaHKN7nmpWiy tNTYcx0HpmJWfDM8WY1uIfBpx6ANJt4h3QXSAJBMv6qu87JdtXBVvA7dgq0liy7XTGVc b6TRBWvAHXzIz76zWg5hhAg3zQ3fo6818Qrn6vkqSuW5T89PJJP3JH46GsppTjysOvBD b4yg== 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=lbYdutAm45vnNpTOgncZbQOVHMX6IrCJM1Bp1BbX570=; b=eRUQNYI68E+9FNlosQi3mpdEdie7lCDaw6oIai4K8mqN4MAHgYMXnzOVGF6FI0wzJG 8+gNXFSsQZGEgLrzHoMP6O574DSXBJdaCu51nb2CSVhvN/pSGv4AAOq13Pcy6+nGnsIc qZvazGG5IoxFd12lOzvDmqlvZIcqIpJPeiv4sDv4OyEYqArmFBye6VePdKYPPM/Psl89 ougE8bIjQmdiiGItoiINafZT1LD9dxUBEX7Hedzbw14+gqmBbZF8DllaPX2gQdcJF4PG jX/dE99TJpp4JnHYGit8XkvzgDMztn0K17jkBVmtGTLgP+c/6HHf9BjH8xNqM+T+VCtH tXvg== X-Gm-Message-State: APjAAAVoXFZqsoDbC8QCzXVi+e4fhtE58I6EsKSD6rLMvqJoVXGbKjuN Ps7I2e+aHnnAfIiMQVtOXuwliQ== X-Received: by 2002:a1c:988a:: with SMTP id a132mr78758639wme.165.1564073998535; Thu, 25 Jul 2019 09:59:58 -0700 (PDT) Received: from starbuck.baylibre.local (uluru.liltaz.com. [163.172.81.188]) by smtp.googlemail.com with ESMTPSA id q10sm53627199wrf.32.2019.07.25.09.59.57 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 25 Jul 2019 09:59:58 -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 v2 6/6] ASoC: codec2codec: fill some of the runtime stream parameters Date: Thu, 25 Jul 2019 18:59:49 +0200 Message-Id: <20190725165949.29699-7-jbrunet@baylibre.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190725165949.29699-1-jbrunet@baylibre.com> References: <20190725165949.29699-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 3e3b81ae87dd..fadc804be89c 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -3872,6 +3872,11 @@ snd_soc_dai_link_event_pre_pmu(struct snd_soc_dapm_widget *w, dapm_update_dai_unlocked(substream, params, sink); } + runtime->format = params_format(params); + runtime->subformat = params_subformat(params); + runtime->channels = params_channels(params); + runtime->rate = params_rate(params); + out: if (ret < 0) kfree(runtime);