summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorIliyan Malchev <malchev@google.com>2010-08-06 15:41:26 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:35:03 -0800
commit8884df284552c4543c24adcbd5991326411cb679 (patch)
tree642ba7078343ce712de4ac8322c4ca66cf1f62c7 /include/linux
parent7dc7d25e524e79700261534d084033e26ed94eeb (diff)
[ARM] tegra: audio_i2s_audio: clean up & support for recording audio
-- add audio_in_stream (identical to audio_out_stream, may merge them later) -- add support for DMA and PIO recording -- add ioctls for /dev/audio<n>_in to start and stop recording Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tegra_audio.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h
new file mode 100644
index 000000000000..25bf3af611e3
--- /dev/null
+++ b/include/linux/tegra_audio.h
@@ -0,0 +1,29 @@
+/* include/linux/tegra_audio.h
+ *
+ * Copyright (C) 2010 Google, Inc.
+ *
+ * Author:
+ * Iliyan Malchev <malchev@google.com>
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ */
+
+#ifndef _TEGRA_AUDIO_H
+#define _TEGRA_AUDIO_H
+
+#include <linux/ioctl.h>
+
+#define TEGRA_AUDIO_MAGIC 't'
+
+#define TEGRA_AUDIO_IN_START _IO(TEGRA_AUDIO_MAGIC, 0)
+#define TEGRA_AUDIO_IN_STOP _IO(TEGRA_AUDIO_MAGIC, 1)
+
+#endif/*_CPCAP_AUDIO_H*/