ALSA: asihpi: Handle playback drained status better
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Tue, 5 Apr 2011 08:55:43 +0000 (20:55 +1200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 5 Apr 2011 09:47:08 +0000 (11:47 +0200)
commit0b7ce9e2bd2d9dbc8f4797b0cd5e0d138cb529e1
treecefa6f59f25f536b0f1f84bd161297ed02729b12
parenta6477134db119a22aa30911ff18e440b8db9df65
ALSA: asihpi: Handle playback drained status better

Use the card drained status reporting for playback,
but allow it to persist for a few timer cycles before
signalling XRUN, to allow card to recover by itself.

Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/asihpi.c