Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp661892pxb; Tue, 5 Apr 2022 17:46:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/1s0trHH6bf8zoujrQbtu05Cfg1Bi0XT11qA4XmKL3qUn5VpGIcm3zI/jcx3U2wqhrtrp X-Received: by 2002:a17:906:c145:b0:6da:aaaf:770c with SMTP id dp5-20020a170906c14500b006daaaaf770cmr5911053ejc.504.1649205883481; Tue, 05 Apr 2022 17:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649205883; cv=none; d=google.com; s=arc-20160816; b=psvDiAfTLoalBqgKeqlIeSIsdUfnVB1su8HxGQcY7heHVBmRmenJDgMAn/S96qYnFm I9uljWCEzvm7h9YBmFN0ouxV4J8M4tZwrK4rxYG361qg/YiGfX8AuqJ2zYGwwOi4NIqA Ip4a8S0CBgVvh5X+fr3IU/YTw2z1oWomIskiLSRI3FLYx3Dbp4ENGH5ntX/PLUKl/j1t uawrUvhNkuw9ZEtgVymVNb2IOriIrmhBwjaEjGxkknvpDrQ7r7tp1dDleVnSyCW3jtjv TAVBdV8LMenXPjM6oLk1gIWRttrwNrJ3quBGKuvwkPo6YkGrnIa5093cOzcYhvlBBJ8b Z/rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=TgEPM+ZVK7JvT9CbeMToZQWgbsG7M0Z/el51VgT44PE=; b=edvoF+3yUnaNPtYvWSLWPMMdm70NkUuP6LwGblcSG9VEYadhP4W/drbaC4WrvyHOmt HEFa0TC322Weu4YSuKo282Bk3OLK0h47I7tR9Qr8ADK3vwvetQEWHUQfoUJeBGzFgA+N /GWxx6lT0e1EXR+YPd8g2tm3OwfRrsPy1IA66X4dd3KOLJaeUxhZ28jnIJ5cJ2tieLLq CJtj1e7BQ5MQVM9F5gbVmD0oAPwhX0ePyFg2sy2ySaxW0469nMvM66eV2JJqqeSwK/Ot N6Ikp+8bTnzvLmiDLUQxZ7wbVrVnO0UYINoH7JBQLCbKDJ2aJ67T4uO6gqXznIrKykAc TqiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KjaZKviZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id de11-20020a1709069bcb00b006e7f65c37aasi4944401ejc.985.2022.04.05.17.44.17; Tue, 05 Apr 2022 17:44:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KjaZKviZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388318AbiDENV4 (ORCPT + 99 others); Tue, 5 Apr 2022 09:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344592AbiDEJUo (ORCPT ); Tue, 5 Apr 2022 05:20:44 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A3C11A3B8; Tue, 5 Apr 2022 02:08:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 02DD7B81A12; Tue, 5 Apr 2022 09:08:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 504B2C385A1; Tue, 5 Apr 2022 09:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149704; bh=hM7XmzpCz1LY2zUE0Z1Ob1vRypXKE20pNn9jFFw1gE0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KjaZKviZmVmabpDMFFjoC7lUhg2SVY1yaHKOrsfZVhOAtm3pCZGhtGgGtrEVZOWo0 /5PjwGsi8czrwZH7ns8dXdFtTDoo9uYnrsXKaseB+ya0nW2roBwdwgX57SMw5vGL7v CrD2vxXhZo0QcBDd5ovCD+mYTKd+xfN5m3oNgGns= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ranjani Sridharan , Pierre-Louis Bossart , Rander Wang , Kai Vehmanen , Peter Ujfalusi , Mark Brown , Sasha Levin Subject: [PATCH 5.16 0812/1017] ASoC: SOF: Intel: hda: Remove link assignment limitation Date: Tue, 5 Apr 2022 09:28:45 +0200 Message-Id: <20220405070418.350864176@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ranjani Sridharan [ Upstream commit 2ce0d008dcc59f9c01f43277b9f9743af7b01dad ] The limitation to assign a link DMA channel for a BE iff the corresponding host DMA channel is assigned to a connected FE is only applicable if the PROCEN_FMT_QUIRK is set. So, remove it for platforms that do not enable the quirk. Complements: a792bfc1c2bc ("ASoC: SOF: Intel: hda-stream: limit PROCEN workaround") Signed-off-by: Ranjani Sridharan Reviewed-by: Pierre-Louis Bossart Reviewed-by: Rander Wang Reviewed-by: Kai Vehmanen Reviewed-by: Peter Ujfalusi Signed-off-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20220128130017.28508-1-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown Signed-off-by: Sasha Levin --- sound/soc/sof/intel/hda-dai.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sound/soc/sof/intel/hda-dai.c b/sound/soc/sof/intel/hda-dai.c index 76579383d290..1b7ba7f3e99b 100644 --- a/sound/soc/sof/intel/hda-dai.c +++ b/sound/soc/sof/intel/hda-dai.c @@ -62,6 +62,8 @@ static struct hdac_ext_stream * { struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); struct sof_intel_hda_stream *hda_stream; + const struct sof_intel_dsp_desc *chip; + struct snd_sof_dev *sdev; struct hdac_ext_stream *res = NULL; struct hdac_stream *stream = NULL; @@ -80,9 +82,20 @@ static struct hdac_ext_stream * continue; hda_stream = hstream_to_sof_hda_stream(hstream); + sdev = hda_stream->sdev; + chip = get_chip_info(sdev->pdata); /* check if link is available */ if (!hstream->link_locked) { + /* + * choose the first available link for platforms that do not have the + * PROCEN_FMT_QUIRK set. + */ + if (!(chip->quirks & SOF_INTEL_PROCEN_FMT_QUIRK)) { + res = hstream; + break; + } + if (stream->opened) { /* * check if the stream tag matches the stream -- 2.34.1