[PATCH] ASoC: SOF: Declare sof_compress_ops in sof-priv.h
Peter Ujfalusi
peter.ujfalusi at linux.intel.com
Thu Feb 24 18:23:24 CET 2022
Fix the following sparse error:
sound/soc/sof/compress.c:310:25: error: symbol 'sof_compressed_ops' was not declared. Should it be static?
Do not enable set the pd->compress_ops yet as it is not a valid assumption
that real compress support really works when CONFIG_SND_SOC_SOF_COMPRESS
is set as the HDA Probes support also selects it, but compressed audio
is not supported (yet) on Intel platforms.
Fixes: 6324cf901e14c ("ASoC: SOF: compr: Add compress ops implementation")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi at linux.intel.com>
---
sound/soc/sof/sof-priv.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index 2c8e556cd5cc..2e19ac619ad5 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -497,6 +497,11 @@ void snd_sof_complete(struct device *dev);
void snd_sof_new_platform_drv(struct snd_sof_dev *sdev);
+/*
+ * Compress support
+ */
+extern struct snd_compress_ops sof_compressed_ops;
+
/*
* Firmware loading.
*/
--
2.35.1
More information about the Alsa-devel
mailing list