Skip to content

Commit

Permalink
[NOT FOR UPSTREAM] ASoC: SOF: Intel: mtl: temporarily disable GPU bind
Browse files Browse the repository at this point in the history
Prevent GPU bind until all drivers are upstream.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Oct 19, 2023
1 parent ca1b0c9 commit 803ef8d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sound/soc/sof/intel/mtl.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <linux/firmware.h>
#include <sound/hda_i915.h>
#include <sound/sof/ipc4/header.h>
#include <trace/events/sof_intel.h>
#include "../ipc4-priv.h"
Expand Down Expand Up @@ -672,13 +673,22 @@ static int mtl_dsp_core_put(struct snd_sof_dev *sdev, int core)
struct snd_sof_dsp_ops sof_mtl_ops;
EXPORT_SYMBOL_NS(sof_mtl_ops, SND_SOC_SOF_INTEL_HDA_COMMON);

static int mtl_hda_dsp_probe_early(struct snd_sof_dev *sdev)
{
snd_hdac_i915_bind(sof_to_bus(sdev), 0);
return hda_dsp_probe_early(sdev);
}

int sof_mtl_ops_init(struct snd_sof_dev *sdev)
{
struct sof_ipc4_fw_data *ipc4_data;

/* common defaults */
memcpy(&sof_mtl_ops, &sof_hda_common_ops, sizeof(struct snd_sof_dsp_ops));

/* probe_early */
sof_mtl_ops.probe_early = mtl_hda_dsp_probe_early;

/* shutdown */
sof_mtl_ops.shutdown = hda_dsp_shutdown;

Expand Down

0 comments on commit 803ef8d

Please sign in to comment.