@@ -36,7 +36,7 @@ static inline int _soc_pcm_ret(struct snd_soc_pcm_runtime *rtd,
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,7 +45,7 @@ static int snd_soc_dpcm_fe_can_update(struct snd_soc_pcm_runtime *fe, int stream
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,7 +1632,7 @@ void dpcm_be_dai_stop(struct snd_soc_pcm_runtime *fe, int stream,
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,7 +1682,7 @@ int dpcm_be_dai_startup(struct snd_soc_pcm_runtime *fe, int stream)
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,7 +2007,7 @@ void dpcm_be_dai_hw_free(struct snd_soc_pcm_runtime *fe, int stream)
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,7 +2073,7 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
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,7 +2118,7 @@ int dpcm_be_dai_hw_params(struct snd_soc_pcm_runtime *fe, int stream)
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,7 +2188,7 @@ int dpcm_be_dai_trigger(struct snd_soc_pcm_runtime *fe, int stream,
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,7 +2465,7 @@ int dpcm_be_dai_prepare(struct snd_soc_pcm_runtime *fe, int stream)
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,7 +2623,7 @@ static int dpcm_run_update_startup(struct snd_soc_pcm_runtime *fe, int 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 ||
0 commit comments