diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2022-08-30 06:17:03 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-05 15:09:05 +0300 |
commit | 10d5d8cbf6268e612bacac29c0beef489d3c1398 (patch) | |
tree | c4f6b7c07479583aa1a8e8cc535c55cab47d1b84 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 376be51caf8871419bbcbb755e1e615d30dc3153 (diff) | |
download | linux-10d5d8cbf6268e612bacac29c0beef489d3c1398.tar.xz |
ASoC: soc-pcm.c: remove unnecessary codec2codec_close_delayed_work()
commit 4bf2e385aa59c2fae ("ASoC: core: Init pcm runtime work early to
avoid warnings") has added generic close_delayed_work() which checks
close_delayed_work_func
static void close_delayed_work(...) {
...
=> if (rtd->close_delayed_work_func)
rtd->close_delayed_work_func(rtd);
}
So, we don't need to have NULL function for Codec2Codec.
=> static void codec2codec_close_delayed_work()
{
/*
* Currently nothing to do for c2c links
* Since c2c links are internal nodes in the DAPM graph and
* don't interface with the outside world or application layer
* we don't have to do any special handling on close.
*/
}
int soc_new_pcm(...)
{
...
if (rtd->dai_link->params)
=> rtd->close_delayed_work_func = codec2codec_close_delayed_work;
else
rtd->close_delayed_work_func = snd_soc_close_delayed_work;
...
}
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87sfle4dzk.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions