projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74e0fcb
)
ASoC: soc-pcm: no need to check dpcm->fe on dpcm_be_connect()
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Wed, 12 Feb 2025 02:23:20 +0000
(
02:23
+0000)
committer
Mark Brown
<broonie@kernel.org>
Sun, 16 Feb 2025 23:51:00 +0000
(23:51 +0000)
All dpcm from for_each_dpcm_be(fe, ...) loop has same fe
(that is the reason to connected to this list). We don't need to
check (dpcm->fe == fe) in this loop.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link:
https://patch.msgid.link/87wmdvyk87.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/soc-pcm.c
b/sound/soc/soc-pcm.c
index ebe99d369ca9ecad667c2fe1f1c432782795a475..0d556d35056028c8db21cfb3d81101a2e38c28de 100644
(file)
--- a/
sound/soc/soc-pcm.c
+++ b/
sound/soc/soc-pcm.c
@@
-1304,10
+1304,9
@@
static int dpcm_be_connect(struct snd_soc_pcm_runtime *fe,
snd_soc_dpcm_mutex_assert_held(fe);
/* only add new dpcms */
- for_each_dpcm_be(fe, stream, dpcm)
{
- if (dpcm->be == be
&& dpcm->fe == fe
)
+ for_each_dpcm_be(fe, stream, dpcm)
+ if (dpcm->be == be)
return 0;
- }
fe_substream = snd_soc_dpcm_get_substream(fe, stream);
be_substream = snd_soc_dpcm_get_substream(be, stream);