[ARM] tegra_i2s_audio: add more elaborate error counts
authorIliyan Malchev <malchev@google.com>
Mon, 4 Oct 2010 19:10:29 +0000 (12:10 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:29:10 +0000 (16:29 -0700)
commit49c9a88333e015b3494de923f84db6d9e61077a6
tree0ff214a899fef070d130f8cd9f4a73cb80b86f6a
parentd25a67d8d27f5ac796ceeade975d08350786b01c
[ARM] tegra_i2s_audio: add more elaborate error counts

This patch replaces the error counter with two separate error counters, one for
late dma callbacks, and another for overruns (during recording) or underruns
(during playback).  The ioctls TEGRA_AUDIO_IN_GET_ERROR_COUNT and
TEGRA_AUDIO_OUT_GET_ERROR_COUNT now take a pointer to a struct containing both
error counters.

Signed-off-by: Iliyan Malchev <malchev@google.com>
arch/arm/mach-tegra/tegra_i2s_audio.c
include/linux/tegra_audio.h