Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1443916ybl; Thu, 5 Dec 2019 01:18:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzTJbv03e/dVd7L52+YBUgXn3v10/Nz6c9GWdqjWpRN14ALxmHqqKJMNiOVfDjXCIiBC32X X-Received: by 2002:aca:4850:: with SMTP id v77mr4366147oia.70.1575537538703; Thu, 05 Dec 2019 01:18:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575537538; cv=none; d=google.com; s=arc-20160816; b=o3SsAFtMdYwo/iVS/bT1dQAui7ehqqTzwUZI/rSQftiEyZRaZnKYclhslFm5O3p6TE CTgjSvudoUdn8InIZNa3xtSliR2IaITWdmyEXOhtcKGC9k2Y1CIIlEjRMbMsN85vC+CR v1ZZLmI43yq8f/l/JmHoAZZmI6V68R/Av14I3LjiGS5fS3mcrbTCe0fvYb4RDv14blFB TEgfcaKuKzarAD/jVekmz9M9xtU9ngM3biLGxzF5EHssj5oRKA+x1Q73zCjtgMh/LDHM 7Hvd9JhfWjMKTa9wXHXZ1dUnzR6P3m+USLhsq3iTmHxVO4Y6Oam7NchgXA0gsA3q+MHY xN9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=7eqArs22c9d5V0kudwDe/vJo1J0LOw5HZJLmQ+GRMlY=; b=Mw8i7E2qcZf6kyPRJTlzRP/Dw5Eh78sz73RYZ7R/5ZkxtSkn3BII27bzeASBGYB3HM 4Uq68s7hGJa6h9e77ZN+1014vHiY6d04nyPsIwgGRJrAa/bs9C7lIfdifx18bDQGyFv2 BcK9i/qe9gNGRRfmiQ/v8a48n12VBqXWP1LJwAopw6bstAwc2WJfznilvL7gaN/AfSsz 6kRu57on18oovL9GxLX/HhJe3yJIwjLOmr4DKIBjgZc25xn2HFhW3y+ZQlfrWR4R3tne /OGvaN1mc/UtaxvUGoJ2x/L4wZwwVgFr6w6RpmTvaPNVPt/2GhjUIewlrxXcn5EbIUm2 w2Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=apWsFOaY; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si3941240otn.301.2019.12.05.01.18.46; Thu, 05 Dec 2019 01:18:58 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=apWsFOaY; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729049AbfLEJSP (ORCPT + 99 others); Thu, 5 Dec 2019 04:18:15 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36546 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728892AbfLEJSO (ORCPT ); Thu, 5 Dec 2019 04:18:14 -0500 Received: by mail-wr1-f66.google.com with SMTP id z3so2582619wru.3 for ; Thu, 05 Dec 2019 01:18:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7eqArs22c9d5V0kudwDe/vJo1J0LOw5HZJLmQ+GRMlY=; b=apWsFOaYx2/LRv6H1kjakHWNqgZnBqe0eRo+BvInhlLVplGHmn8e4I2JkeVelsFthJ 3pIz0Jr9VZ91ebSm0/7+FUUIqGE1UGMHxKlRMd1nJEx8U9Kt4nNQFX2V0ly+e7n0ce+h SZPwY1cf8t+10GB0ydsoUxDkQwwpFFwIaLeee40Z87ARYrcLyJFDV4WOhhV+UJmepU5A uzmB3E9/puNEEhRritoGxiAb06wgEgZQPrffPcIeBeSGOt3MZgAXxOy4gSt4L/dgHRmZ 1ZpiGiu+TxrXSv23qoCYlEY7ALPVOQUCfXe9MKdEob63CjeuIC+crELEZ3JYDEbYmNcX pskA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7eqArs22c9d5V0kudwDe/vJo1J0LOw5HZJLmQ+GRMlY=; b=rCKv1NesJWUXl6sKj+O2PXkL8tIEjx59/mJPaZQGaQfuN6+pPughUc2IsqHNEOaXHO jOVzz3U/ySAFbfYTXl0zPAc7FhoZraC5dE3E1mrUow2sFj1xe4TH1aHFUEVtcZocNEq1 QlxRkYckaUdSMEdLgp7Lk+fQ6Zk+U9B393bAHXqS4J2BuEd4PjO+lF8NPNHr1bZywtWU Bbjatde80PD/THSPVYdSAjT1VV4eYIrLKKHf9FBJcA2A0uPzyzi+2oTKcbktQzRNvwb+ hIstGtAcg/+xawiwS8gvdH8N2fp0ykO/T2A+BDBOZb+0fJpR/iA9E5NtTYv0QI8ws3Lt ARMA== X-Gm-Message-State: APjAAAWxu6WypJeWiX+j5v7R9LKnlN2vSQ2PXlVaoCIZVS7BuVKmUXtS TIqLTL1KoigTs/gxux80nt0vG6zGrE1xpMnsUYo= X-Received: by 2002:a5d:4b4e:: with SMTP id w14mr8662439wrs.187.1575537492732; Thu, 05 Dec 2019 01:18:12 -0800 (PST) MIME-Version: 1.0 References: <20191204151333.26625-1-daniel.baluta@nxp.com> <82095ea8-fa9a-5c67-e0e6-1a886dfc4b0e@linux.intel.com> In-Reply-To: <82095ea8-fa9a-5c67-e0e6-1a886dfc4b0e@linux.intel.com> From: Daniel Baluta Date: Thu, 5 Dec 2019 11:18:01 +0200 Message-ID: Subject: Re: [alsa-devel] [PATCH] ASoC: soc-core: Set dpcm_playback / dpcm_capture To: Pierre-Louis Bossart Cc: "Sridharan, Ranjani" , Daniel Baluta , Pierre-louis Bossart , Linux-ALSA , Mark Brown , Takashi Iwai , Liam Girdwood , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 5, 2019 at 6:11 AM Pierre-Louis Bossart wrote: > > > > On 12/4/19 5:29 PM, Sridharan, Ranjani wrote: > > On Wed, Dec 4, 2019 at 7:16 AM Daniel Baluta wrote: > > > >> When converting a normal link to a DPCM link we need > >> to set dpcm_playback / dpcm_capture otherwise playback/capture > >> streams will not be created resulting in errors like this: > >> > >> [ 36.039111] sai1-wm8960-hifi: ASoC: no backend playback stream > >> > >> Fixes: a655de808cbde ("ASoC: core: Allow topology to override machine > >> driver FE DAI link config") > >> Signed-off-by: Daniel Baluta > >> --- > >> sound/soc/soc-core.c | 2 ++ > >> 1 file changed, 2 insertions(+) > >> > >> diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c > >> index 977a7bfad519..f89cf9d0860c 100644 > >> --- a/sound/soc/soc-core.c > >> +++ b/sound/soc/soc-core.c > >> @@ -1872,6 +1872,8 @@ static void soc_check_tplg_fes(struct snd_soc_card > >> *card) > >> > >> /* convert non BE into BE */ > >> dai_link->no_pcm = 1; > >> + dai_link->dpcm_playback = 1; > >> + dai_link->dpcm_capture = 1; > >> > > Hi Daniel, > > > > Typically, for Intel platforms, this information comes from the machine > > driver and there are some DAI links that have either playback or capture > > set. But this change would set both for all DAI links. > > Not sure if this is the right thing to do. > > I am with Ranjani, I don't get why we'd set the full-duplex mode by > default. but to be honest I never quite understood what this code is > supposed to do... Indeed I need to figure out when exactly to enable playback/capture. I was hoping Liam will chime in, as this was in the original patch he sent months ago.