OSDN Git Service

ALSA: pcm: Unify delay calculation in snd_pcm_status() and snd_pcm_delay()
authorTakashi Iwai <tiwai@suse.de>
Wed, 11 Apr 2018 16:07:27 +0000 (18:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Apr 2018 11:01:16 +0000 (13:01 +0200)
commitc99c5a3bb575f67700f9d1b216652750ea4a31a5
treec52bc5e77af50bf4eaed2683d613a4901e928294
parent6448fcba2a7fe6856ba74bef623559a00267f54e
ALSA: pcm: Unify delay calculation in snd_pcm_status() and snd_pcm_delay()

Yet another slight code cleanup: there are two places where
calculating the PCM delay, and they can be unified in a single
helper.  It reduces the multiple open codes.

Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c