From patchwork Wed Dec 4 15:13:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 180798 Delivered-To: patch@linaro.org Received: by 2002:ac9:3d8b:0:0:0:0:0 with SMTP id u11csp755205oce; Wed, 4 Dec 2019 07:14:12 -0800 (PST) X-Google-Smtp-Source: APXvYqxpAKGovl3UrlLo256Hn3TKtEYxauJA04O2j1kO6xld1JKT+94xJoHbDI/ghUu7Kw8HnNQH X-Received: by 2002:aca:ec45:: with SMTP id k66mr3000676oih.179.1575472452640; Wed, 04 Dec 2019 07:14:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575472452; cv=none; d=google.com; s=arc-20160816; b=aLfNv8Aq1O9us6PmcjvURCoNpdHoy+6JzjqoZVB5r8qV4a3FW2nAg+vvX0CMGpgXB5 nCeboXwczln3q8EP3pRjOi/5i3nvJt2SmaO6MlBs61c6NzJ9gX8gxX5ax3oV/Li7l1xD ur6LMS4aemjyhD4SDeSiOgb1kRNnv2ttydvN1jljG46d8Sqib8ikDx4gkExGAszcIH83 B3e6FdKvrG/GCY2Hq19n5R+Zn0HqP5E+W3vsbJ89aZEEva/YqT1RW0rw/tlZnRgOm1M/ jag1LHzkfrBCF+LKfsnk1qTN/BkVH2MCMSQWTOOWWqwOiTUOAdsIm1apfs0KLVSFDG9q 9xtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=n3XLmO85ZwEno7z3RMbjnpamy08ntSnCxld/tl/j/3M=; b=JdFaif8sHXw1GmJRXRbqWMvDWMa49uCg0BYScRvpy2aCb8sQf0yt5wZbXXlmqupOcJ E8q3qVyPB/OBFTFcBcnDQBcJmTewOvmNYMgvbWQ9SdYqiYT7pAEwBmWLVnYNvHJRJ8lk baSkdJk6EYtIxfjvisf0Yk9gZ5lPMXe8Zulu1AYPZZ2qMzqIDXIWsY/kV1tv1MQmRkf1 jcjWKKuLr8W1i2AshUat/0aUgraoht6itGuKJ7JnK9G9x1UZ2/fZ0+R3n+E6I1PRViIx U6uXdQxaDbUwSFhsGzwiC//nJ/HGOXQaFarorQi/oFMSA6+lGEMiEu8VCyRqdZnK/MVs w+gQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x189si3165139oig.188.2019.12.04.07.14.12; Wed, 04 Dec 2019 07:14:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728143AbfLDPOL (ORCPT + 27 others); Wed, 4 Dec 2019 10:14:11 -0500 Received: from inva021.nxp.com ([92.121.34.21]:36900 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727828AbfLDPOK (ORCPT ); Wed, 4 Dec 2019 10:14:10 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 287A42011F5; Wed, 4 Dec 2019 16:14:09 +0100 (CET) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 1C4F62011ED; Wed, 4 Dec 2019 16:14:09 +0100 (CET) Received: from fsr-ub1864-103.ro-buh02.nxp.com (fsr-ub1864-103.ea.freescale.net [10.171.82.17]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 89D92205C5; Wed, 4 Dec 2019 16:14:08 +0100 (CET) From: Daniel Baluta To: broonie@kernel.org, lgirdwood@gmail.com Cc: tiwai@suse.com, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Daniel Baluta Subject: [PATCH] ASoC: soc-core: Set dpcm_playback / dpcm_capture Date: Wed, 4 Dec 2019 17:13:33 +0200 Message-Id: <20191204151333.26625-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.17.1 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; /* override any BE fixups */ dai_link->be_hw_params_fixup =