提交 98204646 编写于 作者: T Takashi Iwai

ALSA: pcm - avoid unnecessary inline

Remove unnecessary explicit inlininig of internal functions.
Let compiler optimize.
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 cad377ac
...@@ -148,8 +148,9 @@ static void xrun(struct snd_pcm_substream *substream) ...@@ -148,8 +148,9 @@ static void xrun(struct snd_pcm_substream *substream)
} }
} }
static inline snd_pcm_uframes_t snd_pcm_update_hw_ptr_pos(struct snd_pcm_substream *substream, static snd_pcm_uframes_t
struct snd_pcm_runtime *runtime) snd_pcm_update_hw_ptr_pos(struct snd_pcm_substream *substream,
struct snd_pcm_runtime *runtime)
{ {
snd_pcm_uframes_t pos; snd_pcm_uframes_t pos;
...@@ -167,8 +168,8 @@ static inline snd_pcm_uframes_t snd_pcm_update_hw_ptr_pos(struct snd_pcm_substre ...@@ -167,8 +168,8 @@ static inline snd_pcm_uframes_t snd_pcm_update_hw_ptr_pos(struct snd_pcm_substre
return pos; return pos;
} }
static inline int snd_pcm_update_hw_ptr_post(struct snd_pcm_substream *substream, static int snd_pcm_update_hw_ptr_post(struct snd_pcm_substream *substream,
struct snd_pcm_runtime *runtime) struct snd_pcm_runtime *runtime)
{ {
snd_pcm_uframes_t avail; snd_pcm_uframes_t avail;
...@@ -200,7 +201,7 @@ static inline int snd_pcm_update_hw_ptr_post(struct snd_pcm_substream *substream ...@@ -200,7 +201,7 @@ static inline int snd_pcm_update_hw_ptr_post(struct snd_pcm_substream *substream
} \ } \
} while (0) } while (0)
static inline int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream) static int snd_pcm_update_hw_ptr_interrupt(struct snd_pcm_substream *substream)
{ {
struct snd_pcm_runtime *runtime = substream->runtime; struct snd_pcm_runtime *runtime = substream->runtime;
snd_pcm_uframes_t pos; snd_pcm_uframes_t pos;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册