From patchwork Tue May 29 14:59:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 137178 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp4160668lji; Tue, 29 May 2018 08:00:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIK7q7iq+c/o6PXSIyNCl3+fNHYazwUWANoFxS58qiXnUsj8yaYC+TnAEGV7SUn0AlWmoKz X-Received: by 2002:a1c:e384:: with SMTP id a126-v6mr14007327wmh.93.1527606048470; Tue, 29 May 2018 08:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527606048; cv=none; d=google.com; s=arc-20160816; b=Yl9hSyba37IN5JmhEd5VHETnR5OSDvWuIQS2jQ4WCgE1hAmDT6t0Ks9Mm8i2C40tCk ruEWSw5oWoaVqklHfLlATbfpj1KJ735a6zWlsiGh5NTEf0+cXSjhmsztvJMpAaXd0xJ9 kHhlBTu/yM2nfzYGrjUatwcoEXq+ebKrqoRrcKDI3ogGUhWMO2qRNKL5yjFanqqLoZyJ n8c4y8qYY2GDRiFm5y4ItbpKBMG3TeSJY6LVmctQUzbZBmWHMymh57x4LxVcrXOlrkul EA9yrdEFlVIp7DNIz4oipADI2D+iNdFQXdarrDVJ3AXzTtg72FCBvmkZ0E+00szlFgLW lvYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=RHuLoR5mPwweIt4e6QQLeKsqSYqRXht9Nm78JiypF/U=; b=ill/F9WZAtOqIeYFK92Bl4wLq8xxL69XQEw4v0WAiWBZBMGiSgRwwp74VZsVsPc8jB CJYk2XKX4P3GfAmYoKE+Q+OR0wgu2JoXjafJg1kRnkw1ZVjniTCWHoNHaYJ2ILuEGafa d6lxnCtLtsW0RrpVwkdD2aca0XwEOCrV3xNRuD4dVBbj9Bas5+s3nMeBOnwl8q18nr5L oiqhqXFUGX9A9UbkvYbz+tqCHPZC1usi9CRq1Z1FegCf1V2ZKDSptJbXP7dzVE37f1mK ND89zV50HvDRyLHIt+RK+q8ATDSOISe+iNEHrBKP2uXpsBcU/P9Po0uiHLrcJbRjQ3vG 9muQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fr/Pn94F; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id m187-v6si11512042wma.134.2018.05.29.08.00.48; Tue, 29 May 2018 08:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=fr/Pn94F; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id A074626772E; Tue, 29 May 2018 16:59:59 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4E277267730; Tue, 29 May 2018 16:59:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 42248267712 for ; Tue, 29 May 2018 16:59:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=vqP0thduq5Au0wJnu5U/lXsw5TRgkBQT7aIdbQoLef8=; b=fr/Pn94Fczv7 hXdGpVafoE73dvSZpDY9zQgoF8ptqRQtYKR+axci1bYvyirG9f5VtCeck5ldCORa9gthlR3wSHvQb L499MaK8idJrM/PijYrBPagKXiTAHqyW4j85NyqpghbumMTaeek/zH6SMOwrXnD0AqwGbwzwB2kbV 5yikY=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1fNg64-0005bf-0P; Tue, 29 May 2018 14:59:36 +0000 Received: from broonie by debutante with local (Exim 4.91) (envelope-from ) id 1fNg63-000678-HT; Tue, 29 May 2018 15:59:35 +0100 From: Mark Brown To: Kai Chieh Chuang In-Reply-To: <1526980408-1935-3-git-send-email-kaichieh.chuang@mediatek.com> Message-Id: Date: Tue, 29 May 2018 15:59:35 +0100 Cc: alsa-devel@alsa-project.org, broonie@kernel.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, kaichieh.chuang@mediatek.com Subject: [alsa-devel] Applied "ASoC: dpcm: symmetry constraint on FE substream" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org The patch ASoC: dpcm: symmetry constraint on FE substream has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark >From 99bcedbdebc57fe5d02fb470b7265f2208c2cf96 Mon Sep 17 00:00:00 2001 From: Kai Chieh Chuang Date: Mon, 28 May 2018 10:18:19 +0800 Subject: [PATCH] ASoC: dpcm: symmetry constraint on FE substream We should set BE symmetric constraint on FE substream. in case one BE is used by two FE1/FE2, the first BE runtime will use FE1's substream->runtime. hence the FE1's will be constrained by BE symmetry property. Though, second FE2 call dpcm_apply_symmetry, the be_substream->runtime == FE1's substream->runtime. The FE2's substream->runtime will not be constrained by BE's symmetry property. Signed-off-by: KaiChieh Chuang Signed-off-by: Mark Brown --- sound/soc/soc-pcm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c index 2d846b3dd70c..0e2b2c6c60bd 100644 --- a/sound/soc/soc-pcm.c +++ b/sound/soc/soc-pcm.c @@ -1779,14 +1779,15 @@ static int dpcm_apply_symmetry(struct snd_pcm_substream *fe_substream, /* Symmetry only applies if we've got an active stream. */ if (rtd->cpu_dai->active) { - err = soc_pcm_apply_symmetry(be_substream, rtd->cpu_dai); + err = soc_pcm_apply_symmetry(fe_substream, + rtd->cpu_dai); if (err < 0) return err; } for (i = 0; i < rtd->num_codecs; i++) { if (rtd->codec_dais[i]->active) { - err = soc_pcm_apply_symmetry(be_substream, + err = soc_pcm_apply_symmetry(fe_substream, rtd->codec_dais[i]); if (err < 0) return err;