Skip to content

Commit

Permalink
ASoC: SOF: Intel: lnl: Do not use resource managed allocation for ipc…
Browse files Browse the repository at this point in the history
…4_data

Manage the ipc4_data allocation in code instead of devm since the ops_init
might be called more than once due to IPC type fallback.

This needs to be squashed for upstreaming if the ipc type fallback is
sent earlier.

Signed-off-by: Peter Ujfalusi <[email protected]>
  • Loading branch information
ujfalusi committed Jun 6, 2023
1 parent 4b483dc commit e951ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/intel/lnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ int sof_lnl_ops_init(struct snd_sof_dev *sdev)

sof_lnl_ops.get_stream_position = mtl_dsp_get_stream_hda_link_position;

sdev->private = devm_kzalloc(sdev->dev, sizeof(struct sof_ipc4_fw_data), GFP_KERNEL);
sdev->private = kzalloc(sizeof(struct sof_ipc4_fw_data), GFP_KERNEL);
if (!sdev->private)
return -ENOMEM;

Expand Down

0 comments on commit e951ce8

Please sign in to comment.