Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp684535pxb; Tue, 5 Apr 2022 18:41:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRxJHuem7wLZD/re6NaaKzJ+qizEUEGiE1YRw71NQavxuWCjhHjXCYbD/ICab3fZU9nzKi X-Received: by 2002:a50:ee05:0:b0:419:39d9:ccd8 with SMTP id g5-20020a50ee05000000b0041939d9ccd8mr6372782eds.369.1649209318596; Tue, 05 Apr 2022 18:41:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649209318; cv=none; d=google.com; s=arc-20160816; b=VDGjGne5mlqJQ6l4tiEqNGoxdoAhzdGDpVWTiAqljK+BwHsP4+UauHPmYyNNQ57C3P lBxiOY7lKhMQowGkKVQzSm1N+APhytmdXfvC29UhCPGBK221tUkqE42lgq7RiCum7vdP JBPYglcQccpJT+aU71SiLwhFBtqR67m0S0Ye4HsRdoHg7waisTY0o0EwVmw2j3/Jt/A4 duUHtWHkMqIj5Z2p1WsE/y9adsT86nDoevSmnuay7/yrn7+GXD877u+ls6Uz4YzGmAMN rPxCdw1o+wMsORMKKVlUtskBaPj9XOkjAF8LLcYR477ys2z6Gs9TGaukdHMWuRE4ZJTz kWNQ== 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=OEPI2GrvvA9LNLAU9/X1Sb1c7tBPIJnk0FXze4sYAH8=; b=bK34ZIqBCA+vrOYfj45knR1gRMvGB4t/4IVJS9eePZVRiM/pmKboB1C8XGa9Q1J+wS PK0/tF5roZPxllgxPq2fyu5vtdceTzM5pgzWQDMV3vLNm7++d+41GAnOMUlsFUh+qr2N DGey8lksxrLBfpFCpUIZ++232cDLcweTsUdqdNyqSLEd/KSpqvJtvZLplbJ82SSrSDM0 I9V0yRezIT55GLEo3eYHauZu34AJV1krqL37YupG40BAtdaxWRlb0Us0fmQ8mY9x33YH K3/sxMp0kcAFLJH1Q/kYwHQt9IpyIIL1JkQWt1Y02teaZE/7tmLj0/grjYk4lTfPc9nh MiqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IzfDuBtk; 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 j7-20020a05640211c700b00418c2b5bd71si12702045edw.83.2022.04.05.18.41.30; Tue, 05 Apr 2022 18:41:58 -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=IzfDuBtk; 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 S1351334AbiDEKCM (ORCPT + 99 others); Tue, 5 Apr 2022 06:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233975AbiDEIYn (ORCPT ); Tue, 5 Apr 2022 04:24:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C17B12AA8; Tue, 5 Apr 2022 01:20:15 -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 dfw.source.kernel.org (Postfix) with ESMTPS id BF53860B12; Tue, 5 Apr 2022 08:20:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0B0FC385A0; Tue, 5 Apr 2022 08:20:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649146814; bh=yGnjY+lYxJXOnr0rrff8LCirneIsgVl27V7mWnMwbyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IzfDuBtk3IVygzvX9QBtQbbO2yFEFqsfhKcGJaB13X7eitKAJYRF8bS0e1VSc6P1u btPFFg+zQKapiNE3+hglTWuaHTJ+mygi3nVKJU0rFvmK8VHwsCBe68csKFoyikitJm Q17y5mjCYatMGT3X6PAVac+QlveX9hm/z5ljshlA= 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.17 0898/1126] ASoC: SOF: Intel: hda: Remove link assignment limitation Date: Tue, 5 Apr 2022 09:27:25 +0200 Message-Id: <20220405070433.883456893@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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 cd12589355ef..28a54145c150 100644 --- a/sound/soc/sof/intel/hda-dai.c +++ b/sound/soc/sof/intel/hda-dai.c @@ -59,6 +59,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; @@ -77,9 +79,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