From: Daniel Baluta Date: Wed, 23 Feb 2022 15:38:49 +0000 (+0200) Subject: ASoC: SOF: pcm: Add compress_ops for SOF platform component driver X-Git-Tag: v6.6.17~6759^2~120^2~141 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=76cdd90b27b4e7379ce4d9032dda1927ac69ad01;p=platform%2Fkernel%2Flinux-rpi.git ASoC: SOF: pcm: Add compress_ops for SOF platform component driver Now that sof_compressed_ops initial implementation was merged we can enable it in SOF platform component driver. This partially reverts commit 8a720724589e ("ASoC: SOF: pcm: Remove non existent CONFIG_SND_SOC_SOF_COMPRESS reference") Reported-by: Peter Ujfalusi Signed-off-by: Daniel Baluta Link: https://lore.kernel.org/r/20220223153849.84471-1-daniel.baluta@oss.nxp.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index 137f8ed..a312ed8 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -922,6 +922,10 @@ void snd_sof_new_platform_drv(struct snd_sof_dev *sdev) pd->pointer = sof_pcm_pointer; pd->ack = sof_pcm_ack; +#if IS_ENABLED(CONFIG_SND_SOC_SOF_COMPRESS) + pd->compress_ops = &sof_compressed_ops; +#endif + pd->pcm_construct = sof_pcm_new; pd->ignore_machine = drv_name; pd->be_hw_params_fixup = sof_pcm_dai_link_fixup; diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h index 2c8e556..886787a 100644 --- a/sound/soc/sof/sof-priv.h +++ b/sound/soc/sof/sof-priv.h @@ -557,6 +557,11 @@ int snd_sof_debugfs_add_region_item_iomem(struct snd_sof_dev *sdev, const char *name, enum sof_debugfs_access_type access_type); /* + * Platform specific ops. + */ +extern struct snd_compress_ops sof_compressed_ops; + +/* * DSP Architectures. */ static inline void sof_stack(struct snd_sof_dev *sdev, const char *level,