diff options
author | Iliyan Malchev <malchev@google.com> | 2010-10-04 12:10:29 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:35:53 -0800 |
commit | c30561110dbf4f50af5bbe29608ff01e040e23e4 (patch) | |
tree | 57e72b2811e90eb1fe40b082a8447b807b2d329c /include/linux | |
parent | 4db707be4182d1767ccb6bede38e371002fd1d1b (diff) |
[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>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/tegra_audio.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h index 15139cc31d84..07192b28a936 100644 --- a/include/linux/tegra_audio.h +++ b/include/linux/tegra_audio.h @@ -52,11 +52,16 @@ struct tegra_audio_buf_config { #define TEGRA_AUDIO_OUT_GET_BUF_CONFIG _IOR(TEGRA_AUDIO_MAGIC, 7, \ struct tegra_audio_buf_config *) +struct tegra_audio_error_counts { + unsigned late_dma; + unsigned full_empty; /* empty for playback, full for recording */ +}; + #define TEGRA_AUDIO_IN_GET_ERROR_COUNT _IOR(TEGRA_AUDIO_MAGIC, 8, \ - unsigned *) + struct tegra_audio_error_counts *) #define TEGRA_AUDIO_OUT_GET_ERROR_COUNT _IOR(TEGRA_AUDIO_MAGIC, 9, \ - unsigned *) + struct tegra_audio_error_counts *) struct tegra_audio_out_preload { void *data; |