From patchwork Wed Sep 25 18:33:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Baluta X-Patchwork-Id: 174400 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp1038968oce; Wed, 25 Sep 2019 11:34:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzm3Ton8V0prU7wIVxe7Ed/LbrjZQ6x8eA1TTzCAZypnbYRKs4C9RN6gMZsRyLLLpgx+2tZ X-Received: by 2002:a50:c3c7:: with SMTP id i7mr4544130edf.138.1569436458273; Wed, 25 Sep 2019 11:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569436458; cv=none; d=google.com; s=arc-20160816; b=g8A3Mdu6dFLVQF/Gg26S0ZJtXfLcICSkP/xnpgWmElmPxldU8CJslsoQ3+HSleT2bu 7x6BHOaoqA89rAKqBz1ffmCddtTFOKcdjNGb1VCc9FOFGSlew5VbesPCRp7vS6YOBkQ+ UEuU3C9hafTXdIBOK+LTBsH8PE4qTbd1m1JXzzYY77Kzqa0pfUfzEA2rVfT9aInCW7zN EWuj7yvGxfmu1xtm3HzGVu0hEtnuF0hdOjgNOimlV4bz68wbQZz5o/BgprPM1PdX4BbQ vrBsKi9A+2GYyeJ7nA5GdjlHUY7tMgWh4MSS0rt14SZc0V4+rkIVZnwfaJkAajVS+qlO xc7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=V6Aj82V6v0/iBsnKzmnRm8HYQetnlAUsXunQwbNAOv8=; b=rxZg1L1Ct2k5AWj1GhkyPS+Q4esQxRqltOqPf0VDWf9P7Cvpl7mOmrupU1dD1jRfe1 Id6wJBIewn6eWGmgx2coDbtP9x8gpjePA4CTH/6/P+TDKybhTHwZkXvEz3OJBzJ1pFIk B068pLHG9w1y2vh2IrejeKPWw2/m5cQL+GaBJWjweo7fMH5Sj2y7KuiXAVd8oeofvIBt S4wZDrFcfiLNUC/UVvu0+h9kUUJiYBQG+ozlWf7hyaq/e7CzIHhKvds2N8KcHre0nvjk C3JLOFgI+aQsziqKAnaQlDO1igzMcjN7KR//j+GbKjCJ4wWDEiKsHd3HodOfx7n645Hp 3UbQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b50si3931611ede.28.2019.09.25.11.34.17; Wed, 25 Sep 2019 11:34:18 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2443201AbfIYSeN (ORCPT + 26 others); Wed, 25 Sep 2019 14:34:13 -0400 Received: from inva021.nxp.com ([92.121.34.21]:41344 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437947AbfIYSeN (ORCPT ); Wed, 25 Sep 2019 14:34:13 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 51CFD200090; Wed, 25 Sep 2019 20:34:11 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 45014200043; Wed, 25 Sep 2019 20:34:11 +0200 (CEST) Received: from fsr-ub1864-103.ea.freescale.net (fsr-ub1864-103.ea.freescale.net [10.171.82.17]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id D458F20634; Wed, 25 Sep 2019 20:34:10 +0200 (CEST) From: Daniel Baluta To: broonie@kernel.org Cc: lgirdwood@gmail.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, ranjani.sridharan@intel.com, pierre-louis.bossart@intel.com, linux-imx@nxp.com, Daniel Baluta Subject: [PATCH] ASoC: core: Clarify usage of ignore_machine Date: Wed, 25 Sep 2019 21:33:58 +0300 Message-Id: <20190925183358.11955-1-daniel.baluta@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For a sound card ignore_machine means that existing FEs links should be ignored and existing BEs links should be overridden with some information from the matching component driver. Current code make some confusions about this so fix it! Signed-off-by: Daniel Baluta --- sound/soc/soc-core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 88978a3036c4..e32a45f6bd88 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c @@ -1853,7 +1853,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) for_each_component(component) { - /* does this component override FEs ? */ + /* does this component override BEs ? */ if (!component->driver->ignore_machine) continue; @@ -1874,7 +1874,7 @@ static void soc_check_tplg_fes(struct snd_soc_card *card) continue; } - dev_info(card->dev, "info: override FE DAI link %s\n", + dev_info(card->dev, "info: override BE DAI link %s\n", card->dai_link[i].name); /* override platform component */