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: soc-pcm: tidyup function name to snd_soc_dpcm_be_can_xxx()

We have similar but different function names

snd_soc_dpcm_fe_can_xxx()
snd_soc_dpcm_be_can_xxx()
snd_soc_dpcm_can_be_xxx()
~~~~~~
Let's unified these to can_xx

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://patch.msgid.link/87plip7ie4.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
ede6445d 02026aab

+10 -10
+10 -10
sound/soc/soc-pcm.c
··· 36 36 37 37 /* is the current PCM operation for this FE ? */ 38 38 #if 0 39 - static int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream) 39 + static int snd_soc_dpcm_can_fe_update(struct snd_soc_pcm_runtime *fe, int stream) 40 40 { 41 41 if (fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) 42 42 return 1; ··· 45 45 #endif 46 46 47 47 /* is the current PCM operation for this BE ? */ 48 - static int snd_soc_dpcm_be_can_update(struct snd_soc_pcm_runtime *fe, 48 + static int snd_soc_dpcm_can_be_update(struct snd_soc_pcm_runtime *fe, 49 49 struct snd_soc_pcm_runtime *be, int stream) 50 50 { 51 51 if ((fe->dpcm[stream].runtime_update == SND_SOC_DPCM_UPDATE_FE) || ··· 1632 1632 return; 1633 1633 1634 1634 /* is this op for this BE ? */ 1635 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 1635 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 1636 1636 continue; 1637 1637 1638 1638 if (be->dpcm[stream].users == 0) { ··· 1682 1682 } 1683 1683 1684 1684 /* is this op for this BE ? */ 1685 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 1685 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 1686 1686 continue; 1687 1687 1688 1688 /* first time the dpcm is open ? */ ··· 2007 2007 snd_soc_dpcm_get_substream(be, stream); 2008 2008 2009 2009 /* is this op for this BE ? */ 2010 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2010 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2011 2011 continue; 2012 2012 2013 2013 /* only free hw when no longer used - check all FEs */ ··· 2073 2073 be_substream = snd_soc_dpcm_get_substream(be, stream); 2074 2074 2075 2075 /* is this op for this BE ? */ 2076 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2076 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2077 2077 continue; 2078 2078 2079 2079 /* copy params for each dpcm */ ··· 2118 2118 be = dpcm->be; 2119 2119 be_substream = snd_soc_dpcm_get_substream(be, stream); 2120 2120 2121 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2121 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2122 2122 continue; 2123 2123 2124 2124 /* only allow hw_free() if no connected FEs are running */ ··· 2188 2188 snd_pcm_stream_lock_irqsave_nested(be_substream, flags); 2189 2189 2190 2190 /* is this op for this BE ? */ 2191 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2191 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2192 2192 goto next; 2193 2193 2194 2194 dev_dbg(be->dev, "ASoC: trigger BE %s cmd %d\n", ··· 2465 2465 snd_soc_dpcm_get_substream(be, stream); 2466 2466 2467 2467 /* is this op for this BE ? */ 2468 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2468 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2469 2469 continue; 2470 2470 2471 2471 if (!snd_soc_dpcm_can_be_prepared(fe, be, stream)) ··· 2623 2623 struct snd_soc_pcm_runtime *be = dpcm->be; 2624 2624 2625 2625 /* is this op for this BE ? */ 2626 - if (!snd_soc_dpcm_be_can_update(fe, be, stream)) 2626 + if (!snd_soc_dpcm_can_be_update(fe, be, stream)) 2627 2627 continue; 2628 2628 2629 2629 if (be->dpcm[stream].state == SND_SOC_DPCM_STATE_CLOSE ||