From patchwork Tue Nov 13 23:10: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: 151011 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp5003926ljp; Tue, 13 Nov 2018 15:10:50 -0800 (PST) X-Google-Smtp-Source: AJdET5dS9jn/4wtFEQgtOriVQX0nzfHFM0uvQkcKcO84uPZTJwkIjFtsjhy1GdmVUGh2chxOpAba X-Received: by 2002:adf:9dd1:: with SMTP id q17-v6mr6572070wre.12.1542150650817; Tue, 13 Nov 2018 15:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542150650; cv=none; d=google.com; s=arc-20160816; b=oF9HCuIpmOWqarJGrh786tTb+qjtIhnVhfkX9aqhB0/yPZM4oiZN5ksj/PeG3PZ76e QF6uIkMz0M+Lu/SOAybc6NyOn3DeRSITEbfyNQjwIjgcvHW/6SbWZj4n8d0rCWwIbb3S At4kYzPpnFewtyau1NAGesnnvD3f21wPyEstMvTzInyGhNf+9gIp7uvLW//GwjjD+5DY 4VJzQDBcyPxvRLPpB0yIugErrw0CAvhL3u2X9U2LU8jM/hJCQseNPGARClLF3YUSGcGx 4LrUIFxi6Z8rCb1U/HpcjD76XubdpybIvxewlYtWEH2Zcts70BfYgCeahOHtj6ygbkMz tniA== 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; bh=30YlBBjzFd5C97mWSaC65Kdxd/Gg55fRWkGbwwqgdKk=; b=WknJUD4UnmC+mfBolno7FythipTn027rmsE99zO1D8uBlVDXHsne0LjwhkJG4ujd+7 czj8E29WAT6BqSTa07UeSXVVGRgNsji7LdZFr6UCCCkV8lroqKbZ1vGNP2H2joVVsqmj hJ+OpxMCjDwhoLyulvHVbiR5UWWRQWp+47YE8o20Xn4DCcTg2UF8QZ0V1zuPrBQkzqMV 1McwmsnxtYWGDwmv3WulLYUXmvYCmbL5DNOBtH0mhn77irwtcs6WYwYc0vmMEYDe/RzM jv9EC49kdMApr03ICz56yKiSI95JA06pnJNTNId4OYPnU/INW2+NBW7O7T/+6sQDlY2Y HDvQ== 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=qGgYqiz1; 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 y5-v6si16960742wrn.359.2018.11.13.15.10.50; Tue, 13 Nov 2018 15:10:50 -0800 (PST) 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=qGgYqiz1; 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 D250B267A61; Wed, 14 Nov 2018 00:10:48 +0100 (CET) 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 CB170267AB9; Wed, 14 Nov 2018 00:10:46 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE 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 57CF92677E4 for ; Wed, 14 Nov 2018 00:10:43 +0100 (CET) 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=AvFhduuovMio+6bQLoCW3ujoJpG1xlDvpRiy88WRqoM=; b=qGgYqiz1tE0w d8Mcl3vHeifc2/lrlzAqvV9K6rBVHyyv85Yyx2giCf5IGllTMGuM56ayut/37bRVW6YGQf6i0RGai FMy1ooGbNirmSIIo/27HRYf4tRwUpsjcoGRlGYtJjG/7N2Vbt7CN6rHx1A30PdeigZmLlfHFMqDvy VWPwE=; Received: from [64.114.255.97] (helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gMhpR-0002jZ-Gk; Tue, 13 Nov 2018 23:10:41 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 527E4440078; Tue, 13 Nov 2018 23:10:35 +0000 (GMT) From: Mark Brown To: Rohit kumar In-Reply-To: <1541684500-32728-1-git-send-email-rohitkr@codeaurora.org> Message-Id: <20181113231035.527E4440078@finisterre.ee.mobilebroadband> Date: Tue, 13 Nov 2018 23:10:35 +0000 (GMT) Cc: rohkumar@qti.qualcomm.com, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, linux-kernel@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, broonie@kernel.org, srinivas.kandagatla@linaro.org Subject: [alsa-devel] Applied "ASoC: qcom: Set dai_link id to each dai_link" 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: qcom: Set dai_link id to each dai_link 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 67fd1437d11620de8768b22fe20942e752ed52e9 Mon Sep 17 00:00:00 2001 From: Rohit kumar Date: Thu, 8 Nov 2018 19:11:40 +0530 Subject: [PATCH] ASoC: qcom: Set dai_link id to each dai_link Frontend dai_link id is used for closing ADM sessions. During concurrent usecase when one session is closed, it closes other ADM session associated with other usecase too. Dai_link->id should always point to Frontend dai id. Set cpu_dai id as dai_link id to fix the issue. Signed-off-by: Rohit kumar Acked-by: Srinivas Kandagatla Signed-off-by: Mark Brown --- sound/soc/qcom/common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.19.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/sound/soc/qcom/common.c b/sound/soc/qcom/common.c index eb1b9da05dd4..4715527054e5 100644 --- a/sound/soc/qcom/common.c +++ b/sound/soc/qcom/common.c @@ -13,6 +13,7 @@ int qcom_snd_parse_of(struct snd_soc_card *card) struct device_node *cpu = NULL; struct device *dev = card->dev; struct snd_soc_dai_link *link; + struct of_phandle_args args; int ret, num_links; ret = snd_soc_of_parse_card_name(card, "model"); @@ -47,12 +48,14 @@ int qcom_snd_parse_of(struct snd_soc_card *card) goto err; } - link->cpu_of_node = of_parse_phandle(cpu, "sound-dai", 0); - if (!link->cpu_of_node) { + ret = of_parse_phandle_with_args(cpu, "sound-dai", + "#sound-dai-cells", 0, &args); + if (ret) { dev_err(card->dev, "error getting cpu phandle\n"); - ret = -EINVAL; goto err; } + link->cpu_of_node = args.np; + link->id = args.args[0]; ret = snd_soc_of_get_dai_name(cpu, &link->cpu_dai_name); if (ret) {