From patchwork Fri Nov 11 04:26:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bard Liao X-Patchwork-Id: 18448 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp535223wru; Thu, 10 Nov 2022 20:31:07 -0800 (PST) X-Google-Smtp-Source: AA0mqf5GkZP2Me525WSrHhAqeuqXOwI3QoSebHBu4IsYxYw52Ds6SWxEZu9vVTAF8A9nD579GW1o X-Received: by 2002:a17:902:6ac6:b0:186:a8c1:884f with SMTP id i6-20020a1709026ac600b00186a8c1884fmr987306plt.25.1668141067331; Thu, 10 Nov 2022 20:31:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668141067; cv=none; d=google.com; s=arc-20160816; b=Tqy4gsKg9x/3A4ycIbgr70CKYR6ap9YRY4FM1y+e1KFxxAydFdYVqqjkAJh9YilR2a CGHjUEUk4WcAZ7eVrmdFW0QAZBz6fWNbYCRjIqToIvaszrkDrQ8iuTOp3jYCowQ3zvrj BOwE8fzBPtIrey+XMMRaD8DsS/LzGr/yRkOc0tJ51jfK5ywr2XdZYaowQVf27/kXrvpN jtLz/gLzDH17QHXbPxcnALFTP0Ib0pBAyjHmgUvQovevSP6jfJ/nLaFza/KZAY/CUm8c gyjV5wkzViVMPRzsnCH7QJ0ThshWGlRbCrt0B1GgGRq7+O75ds+nzjuYBY25Ef4yoLiD Z+fw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QurMgAlubU6fA+5HD7GpncXThvwczNk5/QXDWtgG+HI=; b=kB6jCHN4IwJa1QlSGaseHpHaF7rwMR44ZXabPNnL5ydjLX3brP8rIpnuWuvL4clWNY T+1mc0+WBDOwFFNB65O2BwROCs9rxgJpGhlCKnF/9gvgobpyMtvW4m7aU49dcYmvCBC/ 3WpvtxVXxM70tc5klwDgJsuK2kzFCoW212NcXuwSPPJcKmMpjbOVYq7pbZ7vl6A26nku HgOQCo+4q5AbaFEs2UFEy/Civqr3ckfiQ1WsKC/ulO0vVozfvq555/JLqiv1GoHZjd76 6u9jMi+TPQTwG+L7NZMgXQydt+WekvNDD/cZHYExZMIu5Qk1CyhnoJiH5kMHzfH8begn srQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="EHFg45A/"; 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=intel.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f19-20020a170902ab9300b001836e51050esi1240098plr.572.2022.11.10.20.30.53; Thu, 10 Nov 2022 20:31:07 -0800 (PST) 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=@intel.com header.s=Intel header.b="EHFg45A/"; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232804AbiKKE0D (ORCPT + 99 others); Thu, 10 Nov 2022 23:26:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232207AbiKKEZk (ORCPT ); Thu, 10 Nov 2022 23:25:40 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12DCF69DFD for ; Thu, 10 Nov 2022 20:25:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668140724; x=1699676724; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0rMVWGRMLBg4bFMV6J3jYFGlZ2aidsgYINzFQt3VnEY=; b=EHFg45A/reSh2vcmlC14SWfKui11xwqqFx4I/V0OjwUngSD76ntQV5T3 UA+28OR6wtipZHwF4CdAhoRFFDrGNdLHp7SxvmburRTbmS2ttZ9Aepy+g Yp07qWDyp8M18uahwwArP0LSOIXG69+g8dqQZ+cK9FmH9DD6cKkt4PMjv u8Sqlazyppne1NsS9xSBTugbHRvJ733VSDa+x41XSz23XSFuiaUqWd5vv aPnK/ygGUqfee/Ox2VSRd5TOcWURzhKjW3tYn9Q1NaDfSnY0aXtnbgAwB y+rXmi58KiSTy2m5M7JwopJHGNDsbQ9m04tAO76KX3RVlrB0e/0bpePSt w==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="397816327" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="397816327" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 20:25:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="588440803" X-IronPort-AV: E=Sophos;i="5.96,155,1665471600"; d="scan'208";a="588440803" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2022 20:25:21 -0800 From: Bard Liao To: alsa-devel@alsa-project.org, vkoul@kernel.org Cc: vinod.koul@linaro.org, linux-kernel@vger.kernel.org, tiwai@suse.de, broonie@kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: [PATCH 8/8] ASoC: SOF: Intel: hda: read multi-link capabilities earlier Date: Fri, 11 Nov 2022 12:26:53 +0800 Message-Id: <20221111042653.45520-9-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221111042653.45520-1-yung-chuan.liao@linux.intel.com> References: <20221111042653.45520-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749172688244331400?= X-GMAIL-MSGID: =?utf-8?q?1749172688244331400?= From: Pierre-Louis Bossart There's no reason to delay the multi-link parsing, this can be done earlier before checking the SoundWire capabilities. Signed-off-by: Pierre-Louis Bossart Reviewed-by: Péter Ujfalusi Reviewed-by: Ranjani Sridharan Signed-off-by: Bard Liao --- sound/soc/sof/intel/hda.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index 2f9d69e64091..14a2f8701350 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -944,6 +944,8 @@ static int hda_init_caps(struct snd_sof_dev *sdev) return ret; } + hda_bus_ml_get_capabilities(bus); + /* scan SoundWire capabilities exposed by DSDT */ ret = hda_sdw_acpi_scan(sdev); if (ret < 0) { @@ -972,8 +974,6 @@ static int hda_init_caps(struct snd_sof_dev *sdev) skip_soundwire: - hda_bus_ml_get_capabilities(bus); - /* create codec instances */ hda_codec_probe_bus(sdev);