ALSA: pcm: Update hardware pointer before start capture
authorRicardo Biehl Pasquali <pasqualirb@gmail.com>
Fri, 7 Sep 2018 19:58:54 +0000 (16:58 -0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Sep 2018 07:06:55 +0000 (09:06 +0200)
commit64b6acf60b665fffd419c23886a1cbeeb253cfb4
treefab5203c85f05f492949543c37d2e2994979eea1
parent70f7922c25cfb4cc7757f0964919d7d87e2ba250
ALSA: pcm: Update hardware pointer before start capture

This ensures the transfer loop won't waste a run to read
the few frames (if any) between start and hw_ptr update.
It will wait for the next interrupt with wait_for_avail().

Signed-off-by: Ricardo Biehl Pasquali <pasqualirb@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_lib.c