mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 21:21:41 +00:00
ASoC: remove unused substream in macro soc_link_mark_pop
The soc_link_mark_pop don't need substream, therefore we can remove it. Signed-off-by: Hongbo Li <lihongbo22@huawei.com> Link: https://patch.msgid.link/20240821070815.2326534-5-lihongbo22@huawei.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
7215afbd8c
commit
2f12d0de77
@ -35,7 +35,7 @@ static inline int _soc_link_ret(struct snd_soc_pcm_runtime *rtd,
|
||||
* In such case, we can update these macros.
|
||||
*/
|
||||
#define soc_link_mark_push(rtd, substream, tgt) ((rtd)->mark_##tgt = substream)
|
||||
#define soc_link_mark_pop(rtd, substream, tgt) ((rtd)->mark_##tgt = NULL)
|
||||
#define soc_link_mark_pop(rtd, tgt) ((rtd)->mark_##tgt = NULL)
|
||||
#define soc_link_mark_match(rtd, substream, tgt) ((rtd)->mark_##tgt == substream)
|
||||
|
||||
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
|
||||
@ -94,7 +94,7 @@ void snd_soc_link_shutdown(struct snd_pcm_substream *substream,
|
||||
rtd->dai_link->ops->shutdown(substream);
|
||||
|
||||
/* remove marked substream */
|
||||
soc_link_mark_pop(rtd, substream, startup);
|
||||
soc_link_mark_pop(rtd, startup);
|
||||
}
|
||||
|
||||
int snd_soc_link_prepare(struct snd_pcm_substream *substream)
|
||||
@ -138,7 +138,7 @@ void snd_soc_link_hw_free(struct snd_pcm_substream *substream, int rollback)
|
||||
rtd->dai_link->ops->hw_free(substream);
|
||||
|
||||
/* remove marked substream */
|
||||
soc_link_mark_pop(rtd, substream, hw_params);
|
||||
soc_link_mark_pop(rtd, hw_params);
|
||||
}
|
||||
|
||||
static int soc_link_trigger(struct snd_pcm_substream *substream, int cmd)
|
||||
@ -175,7 +175,7 @@ int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd,
|
||||
break;
|
||||
|
||||
ret = soc_link_trigger(substream, cmd);
|
||||
soc_link_mark_pop(rtd, substream, startup);
|
||||
soc_link_mark_pop(rtd, startup);
|
||||
}
|
||||
|
||||
return ret;
|
||||
@ -209,7 +209,7 @@ void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream,
|
||||
rtd->dai_link->compr_ops->shutdown)
|
||||
rtd->dai_link->compr_ops->shutdown(cstream);
|
||||
|
||||
soc_link_mark_pop(rtd, cstream, compr_startup);
|
||||
soc_link_mark_pop(rtd, compr_startup);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(snd_soc_link_compr_shutdown);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user