Received: by 2002:a9a:4c47:0:b029:116:c383:538 with SMTP id u7csp1215648lko; Tue, 13 Jul 2021 19:48:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3PcrcCvMWzaUeSq/k7gpKkMKeegEoWbYzk3+4CKpsl/inyd2x8dxxM72oxg3T3YSWBjTi X-Received: by 2002:a17:906:990f:: with SMTP id zl15mr9564681ejb.34.1626230926823; Tue, 13 Jul 2021 19:48:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626230926; cv=none; d=google.com; s=arc-20160816; b=oJ3s1L4pM/Bn1bfot4M+dt1ZnuJDKmqpwfv0hoBRQh9t2rwRJVue/CZVibiyV6/c4b pjhTgD0T5XA7wv4ZXMnolivMx7HdIacX7RoKi5xRkC6dTxrfg8Xo7/U5mQVb9cSJbUTQ yG/Q000Yh6TpkfsQWY3sF2QeC+l+bYTfy6wQAASEholRaPhCN5WR4qdYb4jO29A+wXnL UZ3pda2Is0LUfTKJaDtxALQNSIfk1eZXjxquvZ1cAF4cz6g2X7QnBcN1XAscc116wDVU yLzJdXivbOBAuekckIFBG28qcJHN7eU2W4BEVyjijyv+Y/enmZW4PUiuN0Sm+Pe54ZTV 8sHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=c4A8SgLBBmTBrXsBbEtl6iUpS3OWt/Q4TzQtr/LThlA=; b=RA1zBNsTz2+jQa1Q+IPHbREq07X3wEV2utvqVZacJMHB7Fifw0oSn2C4QDBE0HWrtg TCDlRe/2bCKRT3lMCR11Mpnn4O5Qf1zSPdjUXsuSyW2PfL+/KZ6f/TDFfIEQ7cUpJnd8 QduJ0da1Kc5U77dAp0quQTxrF90uhZZBlxxhNTASnrD7aXApRMREaUYxw67lNWX+GgwE f38ibhhc6SaG+FbAQZ71AilUkNNTrjUdMwvuHWU8dplxMdMRTnk8QxYXgYJ0tv5Rnj2P tXMKa/j2xXdw8qKHcEKy90pUddcMby6WqM7cJE6sHiIcoKF2uo7hKZBCtECEn9XxyvPN Xygg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si840227ejl.332.2021.07.13.19.48.24; Tue, 13 Jul 2021 19:48:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237675AbhGNCt1 (ORCPT + 99 others); Tue, 13 Jul 2021 22:49:27 -0400 Received: from mga09.intel.com ([134.134.136.24]:8778 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237678AbhGNCt0 (ORCPT ); Tue, 13 Jul 2021 22:49:26 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10044"; a="210253422" X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="210253422" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 19:46:35 -0700 X-IronPort-AV: E=Sophos;i="5.84,238,1620716400"; d="scan'208";a="493593226" Received: from bard-ubuntu.sh.intel.com ([10.239.185.57]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2021 19:46:33 -0700 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, gregkh@linuxfoundation.org, srinivas.kandagatla@linaro.org, pierre-louis.bossart@linux.intel.com, sanyog.r.kale@intel.com, bard.liao@intel.com Subject: [PATCH 4/6] ASoC: SOF: intel: move sof_intel_dsp_desc() forward Date: Wed, 14 Jul 2021 10:46:12 +0800 Message-Id: <20210714024614.9357-5-yung-chuan.liao@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210714024614.9357-1-yung-chuan.liao@linux.intel.com> References: <20210714024614.9357-1-yung-chuan.liao@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sof_intel_dsp_desc() will be used by hda_dsp_check_sdw_irq() in the following commit. Signed-off-by: Bard Liao Reviewed-by: Pierre-Louis Bossart Reviewed-by: Ranjani Sridharan --- sound/soc/sof/intel/hda.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index e48e030f6005..79388489c4e2 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -41,6 +41,17 @@ #define EXCEPT_MAX_HDR_SIZE 0x400 #define HDA_EXT_ROM_STATUS_SIZE 8 +static const struct sof_intel_dsp_desc + *get_chip_info(struct snd_sof_pdata *pdata) +{ + const struct sof_dev_desc *desc = pdata->desc; + const struct sof_intel_dsp_desc *chip_info; + + chip_info = desc->chip_info; + + return chip_info; +} + #if IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE) /* @@ -668,17 +679,6 @@ static int hda_init_caps(struct snd_sof_dev *sdev) return 0; } -static const struct sof_intel_dsp_desc - *get_chip_info(struct snd_sof_pdata *pdata) -{ - const struct sof_dev_desc *desc = pdata->desc; - const struct sof_intel_dsp_desc *chip_info; - - chip_info = desc->chip_info; - - return chip_info; -} - static irqreturn_t hda_dsp_interrupt_handler(int irq, void *context) { struct snd_sof_dev *sdev = context; -- 2.17.1