Skip to content

Commit a9262a8

Browse files
Sheetalujfalusi
authored andcommitted
ASoC: soc-pcm: Optimize hw_params() BE DAI call
The hw_params() function for BE DAI was being called multiple times due to an unnecessary SND_SOC_DPCM_STATE_HW_PARAMS state check. Remove the redundant state check to ensure hw_params() is called only once per BE DAI configuration. Signed-off-by: Sheetal <sheetal@nvidia.com>
1 parent 12a9259 commit a9262a8

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

sound/soc/soc-pcm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2097,7 +2097,6 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
20972097
continue;
20982098

20992099
if ((be->dpcm[stream].state != SND_SOC_DPCM_STATE_OPEN) &&
2100-
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_PARAMS) &&
21012100
(be->dpcm[stream].state != SND_SOC_DPCM_STATE_HW_FREE))
21022101
continue;
21032102

0 commit comments

Comments
 (0)