Unverified Commit 0386dd91 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: SOF: Rework the firmware ready message handling

Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>:

The firmware ready (fw_ready) message is sent by the firmware to notify the host
that it has been booted up and caries additional information about it's
configuration.
All of this is IPC specific, the message itself is IPC version specific and the
information itself also.

Move the code to handle the fw_ready message under ipc3.c since the parsing and
interpretation is IPC specific.

A followup series is going to take care of the rest of the loader.c to make it
IPC agnostic.
parents 9a2fb6e7 19faf9ee
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -152,7 +152,6 @@ struct snd_sof_dsp_ops sof_renoir_ops = {
	.ipc_msg_data		= acp_sof_ipc_msg_data,
	.get_mailbox_offset	= acp_sof_ipc_get_mailbox_offset,
	.irq_thread		= acp_sof_ipc_irq_thread,
	.fw_ready		= sof_fw_ready,

	/* DAI drivers */
	.drv			= renoir_sof_dai,
+1 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ int snd_sof_device_probe(struct device *dev, struct snd_sof_pdata *plat_data)
	if (!sof_ops(sdev) || !sof_ops(sdev)->probe || !sof_ops(sdev)->run ||
	    !sof_ops(sdev)->block_read || !sof_ops(sdev)->block_write ||
	    !sof_ops(sdev)->send_msg || !sof_ops(sdev)->load_firmware ||
	    !sof_ops(sdev)->ipc_msg_data || !sof_ops(sdev)->fw_ready) {
	    !sof_ops(sdev)->ipc_msg_data) {
		dev_err(dev, "error: missing mandatory ops\n");
		return -EINVAL;
	}
+0 −2
Original line number Diff line number Diff line
@@ -504,7 +504,6 @@ static struct snd_sof_dsp_ops sof_imx8_ops = {

	/* ipc */
	.send_msg	= imx8_send_msg,
	.fw_ready	= sof_fw_ready,
	.get_mailbox_offset	= imx8_get_mailbox_offset,
	.get_window_offset	= imx8_get_window_offset,

@@ -567,7 +566,6 @@ static struct snd_sof_dsp_ops sof_imx8x_ops = {

	/* ipc */
	.send_msg	= imx8_send_msg,
	.fw_ready	= sof_fw_ready,
	.get_mailbox_offset	= imx8_get_mailbox_offset,
	.get_window_offset	= imx8_get_window_offset,

+0 −1
Original line number Diff line number Diff line
@@ -430,7 +430,6 @@ static struct snd_sof_dsp_ops sof_imx8m_ops = {

	/* ipc */
	.send_msg	= imx8m_send_msg,
	.fw_ready	= sof_fw_ready,
	.get_mailbox_offset	= imx8m_get_mailbox_offset,
	.get_window_offset	= imx8m_get_window_offset,

+0 −1
Original line number Diff line number Diff line
@@ -591,7 +591,6 @@ static struct snd_sof_dsp_ops sof_bdw_ops = {

	/* ipc */
	.send_msg	= bdw_send_msg,
	.fw_ready	= sof_fw_ready,
	.get_mailbox_offset = bdw_get_mailbox_offset,
	.get_window_offset = bdw_get_window_offset,

Loading