Skip to content

Commit

Permalink
ASoC: SOF: Intel: lnl: Do not use LNL specific wrappers in DSPless mode
Browse files Browse the repository at this point in the history
When DSPless mode is selected the DMIC/SSP offload status should not be
changed since the DSP is not in use.

Signed-off-by: Peter Ujfalusi <[email protected]>
  • Loading branch information
ujfalusi authored and bardliao committed Dec 19, 2023
1 parent 27d2982 commit 1c838fb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions sound/soc/sof/intel/lnl.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ int sof_lnl_ops_init(struct snd_sof_dev *sdev)
sof_lnl_ops.probe_early = lnl_hda_dsp_probe_early;

/* probe/remove */
sof_lnl_ops.probe = lnl_hda_dsp_probe;
sof_lnl_ops.remove = lnl_hda_dsp_remove;
if (!sdev->dspless_mode_selected) {
sof_lnl_ops.probe = lnl_hda_dsp_probe;
sof_lnl_ops.remove = lnl_hda_dsp_remove;
}

/* shutdown */
sof_lnl_ops.shutdown = hda_dsp_shutdown;
Expand Down Expand Up @@ -157,8 +159,10 @@ int sof_lnl_ops_init(struct snd_sof_dev *sdev)
/* TODO: add core_get and core_put */

/* PM */
sof_lnl_ops.resume = lnl_hda_dsp_resume;
sof_lnl_ops.runtime_resume = lnl_hda_dsp_runtime_resume;
if (!sdev->dspless_mode_selected) {
sof_lnl_ops.resume = lnl_hda_dsp_resume;
sof_lnl_ops.runtime_resume = lnl_hda_dsp_runtime_resume;
}

sof_lnl_ops.get_stream_position = mtl_dsp_get_stream_hda_link_position;

Expand Down

0 comments on commit 1c838fb

Please sign in to comment.