summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/intel/shim.h
diff options
context:
space:
mode:
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>2021-11-19 20:26:12 +0100
committerMark Brown <broonie@kernel.org>2021-11-22 16:40:15 +0100
commit81ed6770ba67358b07e96a277206f6c742737dab (patch)
tree1703934b6a439e6fdc3ac0e11d9a451b47541199 /sound/soc/sof/intel/shim.h
parentASoC: SOF: Add support for Mediatek MT8195 (diff)
downloadlinux-81ed6770ba67358b07e96a277206f6c742737dab.tar.xz
linux-81ed6770ba67358b07e96a277206f6c742737dab.zip
ASoC: SOF: Intel: hda: expose get_chip_info()
expose get_chip_info(). Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Link: https://lore.kernel.org/r/20211119192621.4096077-2-kai.vehmanen@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/intel/shim.h')
-rw-r--r--sound/soc/sof/intel/shim.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/soc/sof/intel/shim.h b/sound/soc/sof/intel/shim.h
index e9f7d4d7fcce..08c53cb41ea7 100644
--- a/sound/soc/sof/intel/shim.h
+++ b/sound/soc/sof/intel/shim.h
@@ -177,4 +177,11 @@ struct sof_intel_stream {
size_t posn_offset;
};
+static inline const struct sof_intel_dsp_desc *get_chip_info(struct snd_sof_pdata *pdata)
+{
+ const struct sof_dev_desc *desc = pdata->desc;
+
+ return desc->chip_info;
+}
+
#endif