summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel/pci-apl.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>2022-04-14 20:48:11 +0200
committerMark Brown <broonie@kernel.org>2022-04-19 13:03:40 +0200
commit37e809d5f8a7bfbf0abbd4666d0b8ad499f12b7f (patch)
tree9b769001929dfc594b3f0c969589586cf6b5d782 /sound/soc/sof/intel/pci-apl.c
parentASoC: SOF: remove const qualifier for 'struct snd_sof_dsp_ops' (diff)
downloadlinux-37e809d5f8a7bfbf0abbd4666d0b8ad499f12b7f.tar.xz
linux-37e809d5f8a7bfbf0abbd4666d0b8ad499f12b7f.zip
ASoC: SOF: Intel: hda: use common ops across platforms
The dsp_ops are mostly common between platforms. Introduce a common structure and an init function to set platform-specific values. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Reviewed-by: Rander Wang <rander.wang@intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Link: https://lore.kernel.org/r/20220414184817.362215-10-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/pci-apl.c')
-rw-r--r--sound/soc/sof/intel/pci-apl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/pci-apl.c b/sound/soc/sof/intel/pci-apl.c
index 1f0e509738dc..2de3658eb817 100644
--- a/sound/soc/sof/intel/pci-apl.c
+++ b/sound/soc/sof/intel/pci-apl.c
@@ -43,6 +43,7 @@ static const struct sof_dev_desc bxt_desc = {
},
.nocodec_tplg_filename = "sof-apl-nocodec.tplg",
.ops = &sof_apl_ops,
+ .ops_init = sof_apl_ops_init,
};
static const struct sof_dev_desc glk_desc = {
@@ -69,6 +70,7 @@ static const struct sof_dev_desc glk_desc = {
},
.nocodec_tplg_filename = "sof-glk-nocodec.tplg",
.ops = &sof_apl_ops,
+ .ops_init = sof_apl_ops_init,
};
/* PCI IDs */