ASoC: SOF: intel: move sof_intel_dsp_desc() forward
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 23 Jul 2021 11:54:49 +0000 (19:54 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 2 Aug 2021 14:45:39 +0000 (15:45 +0100)
sof_intel_dsp_desc() will be used by hda_dsp_check_sdw_irq() in the
following commit.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210723115451.7245-5-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda.c

index e48e030f6005c2771dbc0a382e4d67377b50f013..79388489c4e2027b68eb9544a6e4d7f728320849 100644 (file)
 #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 @@ skip_soundwire:
        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;