ASoC: Intel: atom: Remove unused functions
Subsystems (3)
PATCH 1/1 ASoC: Intel: atom: Remove unused functions
From: "Dr. David Alan Gilbert" <[email protected]>
sst_cdev_fragment_elapsed() was added in 2014 by
commit 7adab122a57c ("ASoC: Intel: sst - add compressed ops handling") but has remained unused.
sst_get_stream_allocated() was added in 2014 by commit cc547054d312 ("ASoC: Intel: sst - add pcm ops handling") but has remained unused.
sst_wait_interruptible() was added in 2014 by
commit 60dc8dbacb00 ("ASoC: Intel: sst: Add some helper functions") but has remained unused.
Remove them.
--- sound/soc/intel/atom/sst/sst.h | 6 ---- sound/soc/intel/atom/sst/sst_drv_interface.c | 24 -------------- sound/soc/intel/atom/sst/sst_pvt.c | 33 -------------------- 3 files changed, 63 deletions(-)
sound/soc/intel/atom/sst/sst.h +0 -6
@@ -443,9 +443,6 @@ int sst_set_stream_param(int str_id, struct snd_sst_params *str_param);int sst_set_metadata (int str_id,char *params);int sst_get_stream (struct intel_sst_drv *ctx,struct snd_sst_params *str_param); -int sst_get_stream_allocated (struct intel_sst_drv *ctx, -struct snd_sst_params *str_param, -struct snd_sst_lib_download **lib_dnld);int sst_drain_stream (struct intel_sst_drv *sst_drv_ctx,int str_id,bool partial_drain); int sst_post_message_mrfld(struct intel_sst_drv *sst_drv_ctx,
@@ -461,8 +458,6 @@ void sst_post_download_mrfld(struct intel_sst_drv *ctx);int sst_get_block_stream (struct intel_sst_drv *sst_drv_ctx);void sst_memcpy_free_resources (struct intel_sst_drv *sst_drv_ctx); -int sst_wait_interruptible (struct intel_sst_drv *sst_drv_ctx, -struct sst_block *block);int sst_wait_timeout (struct intel_sst_drv *sst_drv_ctx,struct sst_block *block);int sst_create_ipc_msg (struct ipc_post **arg,bool large);
@@ -470,7 +465,6 @@ int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id);void sst_clean_stream (struct stream_info *stream);int intel_sst_register_compress (struct intel_sst_drv *sst);int intel_sst_remove_compress (struct intel_sst_drv *sst); -void sst_cdev_fragment_elapsed (struct intel_sst_drv *ctx,int str_id);int sst_send_sync_msg (int ipc,int str_id);int sst_get_num_channel (struct snd_sst_params *str_param);int sst_get_sfreq (struct snd_sst_params *str_param);
sound/soc/intel/atom/sst/sst_drv_interface.c +0 -24
@@ -55,19 +55,6 @@ int free_stream_context(struct intel_sst_drv *ctx, unsigned int str_id)return ret; } -int sst_get_stream_allocated (struct intel_sst_drv *ctx, -struct snd_sst_params *str_param, -struct snd_sst_lib_download **lib_dnld) -{ -int retval; - - retval = ctx->ops->alloc_stream (ctx, str_param); -if (retval >0 ) -dev_dbg (ctx->dev,"Stream allocated %d\n" , retval); -return retval; - -} -/* * sst_get_sfreq - this function returns the frequency of the stream *
@@ -430,17 +417,6 @@ static int sst_cdev_codec_caps(struct snd_compr_codec_caps *codec)return 0 ; } -void sst_cdev_fragment_elapsed (struct intel_sst_drv *ctx,int str_id) -{ -struct stream_info *stream; - -dev_dbg (ctx->dev,"fragment elapsed from firmware for str_id %d\n" , - str_id); - stream = &ctx->streams[str_id]; -if (stream->compr_cb) - stream->compr_cb (stream->compr_cb_param); -} -/* * sst_close_pcm_stream - Close PCM interface *
sound/soc/intel/atom/sst/sst_pvt.c +0 -33
@@ -69,39 +69,6 @@ void sst_set_fw_state_locked(mutex_unlock (&sst_drv_ctx->sst_lock); } -/* -* sst_wait_interruptible - wait on event -* -* @sst_drv_ctx: Driver context -* @block: Driver block to wait on -* -* This function waits without a timeout (and is interruptable) for a -* given block event -*/ -int sst_wait_interruptible (struct intel_sst_drv *sst_drv_ctx, -struct sst_block *block) -{ -int retval =0 ; - -if (!wait_event_interruptible (sst_drv_ctx->wait_queue, - block->condition)) { -/* event wake */ -if (block->ret_code <0 ) { -dev_err (sst_drv_ctx->dev, -"stream failed %d\n" , block->ret_code); - retval = -EBUSY ; - }else { -dev_dbg (sst_drv_ctx->dev,"event up\n" ); - retval =0 ; - } - }else { -dev_err (sst_drv_ctx->dev,"signal interrupted\n" ); - retval = -EINTR ; - } -return retval; - -} -/* * sst_wait_timeout - wait on event for timeout *
Signature · 1 line
2.49.0
Mark Brown
maintainerQuoted 9 lines · On Fri, 09 May 2025 01:37:16 +0100, [email protected] wrote:
sst_cdev_fragment_elapsed()was added in 2014 by
commit7adab122a57c("ASoC: Intel: sst - add compressed ops handling") but has remained unused.
sst_get_stream_allocated()was added in 2014 by commitcc547054d312("ASoC: Intel: sst - add pcm ops handling") but has remained unused.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: Intel: atom: Remove unused functions
commit: 248b75f89e99e59e5362d02d4df3f5e698137c29
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark