Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1987709imu; Fri, 14 Dec 2018 04:07:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/UCxSM9I5yipduJxM3fcHhuZ8t2UqffPh9xe6q+I6YjfgR3lo/zin47OJ/Z5AD80jE6f7wj X-Received: by 2002:a65:4ccb:: with SMTP id n11mr2511587pgt.257.1544789267604; Fri, 14 Dec 2018 04:07:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789267; cv=none; d=google.com; s=arc-20160816; b=vQyRdRS5JIqcXkwTzA4dtcZaz0PLn0Hkc4Vv0mYbqhAAePYPCnQk1tV0r0X1IyOoni 0kbZVM73UdB2jgtp8f9+kDaa/3Oz3NR4VdmfAsiBGh9nhM2sYA6G2Py9274vW7EKmK4z 8YYVyRK6L40YlMXj0MUqDvEkYpBMLIyQ9Wd49LpMmPK1rRch2pImULcXBo2S9JCQT2C5 vue87pvX/71bpfYoTmMORVnIUlcpaUidL3UZOMgBE5ADUJgWwfMW1/nt1AjEuY1D+ul0 RK3F1kuxFFWuLnreOdUZdYsOXshi2swehuRkV7FQTR5Pb7Y3IcXIo9bHa+fFjlYbb2FA sLdA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gfL6M4NfjX+LeFcadnvUsdmOw/1NkjhEmlmw2tiRYTo=; b=dKY6Jm3oh/g+6Q+D+uhM1nxL4HNqBmtJ/SG1YjIp0SSn7ui91ZrC539b7tLSK6oMbQ m+PAov289e78Qr4au+GRyC76myHn6Wv3ViTArD9X2bH01ETfT1gVuj5XJzv1xOdgYQW4 h5Iv1IY/E6tAYdhji5l2ReDrjQQA3aWi1TZixqhofDEGCVmZdgRGKXXLMRCapSIrH5Hi MOOZ8LmuTC8nMMrXCSGWNSPLKZdXk3W3bkbFIdGiZca0w0YwvVpUq1nGmDDQkYP5JhPh t6Hadp3O19SB0SRJOidBcafz0+wgpTvUPUxRtuxN4WQvJXdz94KdCir9nr7QWgfWZCme 5dig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=kXp2WJxQ; 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 h69si2479316pge.121.2018.12.14.04.07.31; Fri, 14 Dec 2018 04:07:47 -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=@kernel.org header.s=default header.b=kXp2WJxQ; 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 S1730445AbeLNMEJ (ORCPT + 99 others); Fri, 14 Dec 2018 07:04:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:48658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729764AbeLNMEI (ORCPT ); Fri, 14 Dec 2018 07:04:08 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1C362146F; Fri, 14 Dec 2018 12:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789047; bh=BGf8r2ELi+gVM6Jjwi9TSeywR+iQggwnTBvUN9jICSk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kXp2WJxQxcEsCIHQ7brIPu5x+0yChFJcvZ9CtuRsf39LrAVlNpRnCEeYZCjCekIQM AU63rE1HLQhKokNpFfwP6fKtJi7RXync1DKJCTVoOs84W/SQ3ppuUB44ONYEgshj7A YWuyluuNu3k0D5jjKW4l/UgKODZhU6k/p5kvyW14= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Rohit kumar , Srinivas Kandagatla , Mark Brown , Sasha Levin Subject: [PATCH 4.19 051/142] ASoC: qcom: Set dai_link id to each dai_link Date: Fri, 14 Dec 2018 12:58:56 +0100 Message-Id: <20181214115749.102220471@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115747.053633987@linuxfoundation.org> References: <20181214115747.053633987@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 67fd1437d11620de8768b22fe20942e752ed52e9 ] 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 Signed-off-by: Sasha Levin --- sound/soc/qcom/common.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.19.1