summaryrefslogtreecommitdiff
path: root/include/linux/tegra_audio.h
diff options
context:
space:
mode:
authorChris Fries <C.Fries@motorola.com>2010-10-08 13:54:28 -0500
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:36:00 -0800
commita03bc0f71c14b962b27ef64c3420e29ab42ac99d (patch)
tree9e4dab71b365680502bba8780386ce0322b44f74 /include/linux/tegra_audio.h
parentdbe0cd38cbe40e797683d01e5df50470a9087174 (diff)
[ARM] tegra: i2s: Add I2S ioctl for setting bit format
Added an ioctl to set the bit format for I2S between "DSP"/"PCM" mode and normal mode (set by board file) Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'include/linux/tegra_audio.h')
-rw-r--r--include/linux/tegra_audio.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/tegra_audio.h b/include/linux/tegra_audio.h
index 07192b28a936..b97b640819a0 100644
--- a/include/linux/tegra_audio.h
+++ b/include/linux/tegra_audio.h
@@ -72,4 +72,11 @@ struct tegra_audio_out_preload {
#define TEGRA_AUDIO_OUT_PRELOAD_FIFO _IOWR(TEGRA_AUDIO_MAGIC, 10, \
struct tegra_audio_out_preload *)
+#define TEGRA_AUDIO_BIT_FORMAT_DEFAULT 0
+#define TEGRA_AUDIO_BIT_FORMAT_DSP 1
+#define TEGRA_AUDIO_SET_BIT_FORMAT _IOW(TEGRA_AUDIO_MAGIC, 11, \
+ unsigned int *)
+#define TEGRA_AUDIO_GET_BIT_FORMAT _IOR(TEGRA_AUDIO_MAGIC, 12, \
+ unsigned int *)
+
#endif/*_CPCAP_AUDIO_H*/