diff options
author | Iliyan Malchev <malchev@google.com> | 2010-08-17 18:36:41 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:35:14 -0800 |
commit | 1bb235b3119e31d8cefa745de84957f7ee3a3846 (patch) | |
tree | 1a232b5dce8c3bd0e57426626c4495ed23d8460b /include | |
parent | efea6a1ee6b0dbdc3bdf87ccf39eb2c473f57dba (diff) |
[ARM] tegra: tegra_i2s_audio: clean up handling of state
-- Use consistently the various state flags:
-- active is set only when there is a read or write in flight
-- recording_canncelled is set only when recording is stopped via the ioctl()
-- dma_has_it is used to determine whether DMA is already in flight; do not
use the state of the fifos for this (e.g., if the TX fifo is empty, do not
assume that playback is stopped)
-- added a stop_completion (implemented for readers only) so that readers
closing a stream can wait until DMA or PIO transactions are stopped
-- Split /dev/audio0_{in,out} into /dev/audio0_{in,in_ctl,out,out_ctl} where the
_ctl versions have the ioctl()s
-- Introduced an error count per audio_stream; error count is reset on open, can
be read back & reset through an ioctl
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tegra_audio.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h index 9461a5f2eda9..48590daa06a5 100644 --- a/include/linux/tegra_audio.h +++ b/include/linux/tegra_audio.h @@ -52,4 +52,11 @@ struct tegra_audio_buf_config { #define TEGRA_AUDIO_OUT_GET_BUF_CONFIG _IOR(TEGRA_AUDIO_MAGIC, 7, \ struct tegra_audio_buf_config *) +#define TEGRA_AUDIO_IN_GET_ERROR_COUNT _IOR(TEGRA_AUDIO_MAGIC, 8, \ + unsigned *) + +#define TEGRA_AUDIO_OUT_GET_ERROR_COUNT _IOR(TEGRA_AUDIO_MAGIC, 9, \ + unsigned *) + + #endif/*_CPCAP_AUDIO_H*/ |