Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: Intel: atom: Remove unused functions

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.

Signed-off-by: "Dr. David Alan Gilbert" <linux@treblig.org>
Link: https://patch.msgid.link/20250509003716.278416-1-linux@treblig.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Dr. David Alan Gilbert and committed by
Mark Brown
248b75f8 4815e9fc

-63
-6
sound/soc/intel/atom/sst/sst.h
··· 443 443 int sst_set_metadata(int str_id, char *params); 444 444 int sst_get_stream(struct intel_sst_drv *ctx, 445 445 struct snd_sst_params *str_param); 446 - int sst_get_stream_allocated(struct intel_sst_drv *ctx, 447 - struct snd_sst_params *str_param, 448 - struct snd_sst_lib_download **lib_dnld); 449 446 int sst_drain_stream(struct intel_sst_drv *sst_drv_ctx, 450 447 int str_id, bool partial_drain); 451 448 int sst_post_message_mrfld(struct intel_sst_drv *sst_drv_ctx, ··· 458 461 int sst_get_block_stream(struct intel_sst_drv *sst_drv_ctx); 459 462 void sst_memcpy_free_resources(struct intel_sst_drv *sst_drv_ctx); 460 463 461 - int sst_wait_interruptible(struct intel_sst_drv *sst_drv_ctx, 462 - struct sst_block *block); 463 464 int sst_wait_timeout(struct intel_sst_drv *sst_drv_ctx, 464 465 struct sst_block *block); 465 466 int sst_create_ipc_msg(struct ipc_post **arg, bool large); ··· 465 470 void sst_clean_stream(struct stream_info *stream); 466 471 int intel_sst_register_compress(struct intel_sst_drv *sst); 467 472 int intel_sst_remove_compress(struct intel_sst_drv *sst); 468 - void sst_cdev_fragment_elapsed(struct intel_sst_drv *ctx, int str_id); 469 473 int sst_send_sync_msg(int ipc, int str_id); 470 474 int sst_get_num_channel(struct snd_sst_params *str_param); 471 475 int sst_get_sfreq(struct snd_sst_params *str_param);
-24
sound/soc/intel/atom/sst/sst_drv_interface.c
··· 55 55 return ret; 56 56 } 57 57 58 - int sst_get_stream_allocated(struct intel_sst_drv *ctx, 59 - struct snd_sst_params *str_param, 60 - struct snd_sst_lib_download **lib_dnld) 61 - { 62 - int retval; 63 - 64 - retval = ctx->ops->alloc_stream(ctx, str_param); 65 - if (retval > 0) 66 - dev_dbg(ctx->dev, "Stream allocated %d\n", retval); 67 - return retval; 68 - 69 - } 70 - 71 58 /* 72 59 * sst_get_sfreq - this function returns the frequency of the stream 73 60 * ··· 415 428 return -EINVAL; 416 429 417 430 return 0; 418 - } 419 - 420 - void sst_cdev_fragment_elapsed(struct intel_sst_drv *ctx, int str_id) 421 - { 422 - struct stream_info *stream; 423 - 424 - dev_dbg(ctx->dev, "fragment elapsed from firmware for str_id %d\n", 425 - str_id); 426 - stream = &ctx->streams[str_id]; 427 - if (stream->compr_cb) 428 - stream->compr_cb(stream->compr_cb_param); 429 431 } 430 432 431 433 /*
-33
sound/soc/intel/atom/sst/sst_pvt.c
··· 70 70 } 71 71 72 72 /* 73 - * sst_wait_interruptible - wait on event 74 - * 75 - * @sst_drv_ctx: Driver context 76 - * @block: Driver block to wait on 77 - * 78 - * This function waits without a timeout (and is interruptable) for a 79 - * given block event 80 - */ 81 - int sst_wait_interruptible(struct intel_sst_drv *sst_drv_ctx, 82 - struct sst_block *block) 83 - { 84 - int retval = 0; 85 - 86 - if (!wait_event_interruptible(sst_drv_ctx->wait_queue, 87 - block->condition)) { 88 - /* event wake */ 89 - if (block->ret_code < 0) { 90 - dev_err(sst_drv_ctx->dev, 91 - "stream failed %d\n", block->ret_code); 92 - retval = -EBUSY; 93 - } else { 94 - dev_dbg(sst_drv_ctx->dev, "event up\n"); 95 - retval = 0; 96 - } 97 - } else { 98 - dev_err(sst_drv_ctx->dev, "signal interrupted\n"); 99 - retval = -EINTR; 100 - } 101 - return retval; 102 - 103 - } 104 - 105 - /* 106 73 * sst_wait_timeout - wait on event for timeout 107 74 * 108 75 * @sst_drv_ctx: Driver context