Unverified Commit 2f1315ae authored by Bard Liao's avatar Bard Liao Committed by Mark Brown
Browse files

ASoC: SOF: intel: move sof_intel_dsp_desc() forward

parent 781dd3c8
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -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;