Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ASoC: SOF: intel: move sof_intel_dsp_desc() forward

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>

authored by

Bard Liao and committed by
Mark Brown
2f1315ae 781dd3c8

+11 -11
+11 -11
sound/soc/sof/intel/hda.c
··· 41 41 #define EXCEPT_MAX_HDR_SIZE 0x400 42 42 #define HDA_EXT_ROM_STATUS_SIZE 8 43 43 44 + static const struct sof_intel_dsp_desc 45 + *get_chip_info(struct snd_sof_pdata *pdata) 46 + { 47 + const struct sof_dev_desc *desc = pdata->desc; 48 + const struct sof_intel_dsp_desc *chip_info; 49 + 50 + chip_info = desc->chip_info; 51 + 52 + return chip_info; 53 + } 54 + 44 55 #if IS_ENABLED(CONFIG_SND_SOC_SOF_INTEL_SOUNDWIRE) 45 56 46 57 /* ··· 677 666 snd_hdac_ext_bus_link_put(bus, hlink); 678 667 #endif 679 668 return 0; 680 - } 681 - 682 - static const struct sof_intel_dsp_desc 683 - *get_chip_info(struct snd_sof_pdata *pdata) 684 - { 685 - const struct sof_dev_desc *desc = pdata->desc; 686 - const struct sof_intel_dsp_desc *chip_info; 687 - 688 - chip_info = desc->chip_info; 689 - 690 - return chip_info; 691 669 } 692 670 693 671 static irqreturn_t hda_dsp_interrupt_handler(int irq, void *context)