aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajesha Kini <rkini@codeaurora.org>2010-08-07 04:32:17 +0530
committerRajesha Kini <rkini@codeaurora.org>2010-08-07 04:32:17 +0530
commite37a2946f3cb0c934a99a523d651a2e808dcf311 (patch)
treeb1dcf03a5cebaba462fba3c80aafd083cad3bc17
parentac51a6183c4388dab525a5f943fce571ab8bf697 (diff)
downloadandroid_bionic-e37a2946f3cb0c934a99a523d651a2e808dcf311.tar.gz
android_bionic-e37a2946f3cb0c934a99a523d651a2e808dcf311.tar.bz2
android_bionic-e37a2946f3cb0c934a99a523d651a2e808dcf311.zip
bionic: Add SBC encoder specific header file
Added msm_audio_sbc.h to support sbc encoder specific configuration. Change-Id: I3441efa8eca2ea7a86c04b6ccbc5bd26942a4a9c
-rw-r--r--libc/kernel/common/linux/msm_audio_sbc.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/libc/kernel/common/linux/msm_audio_sbc.h b/libc/kernel/common/linux/msm_audio_sbc.h
new file mode 100644
index 000000000..322856ce8
--- /dev/null
+++ b/libc/kernel/common/linux/msm_audio_sbc.h
@@ -0,0 +1,45 @@
+/****************************************************************************
+ ****************************************************************************
+ ***
+ *** This header was automatically generated from a Linux kernel header
+ *** of the same name, to make information necessary for userspace to
+ *** call into the kernel available to libc. It contains only constants,
+ *** structures, and macros generated from the original header, and thus,
+ *** contains no copyrightable information.
+ ***
+ ****************************************************************************
+ ****************************************************************************/
+#ifndef __MSM_AUDIO_SBC_H
+#define __MSM_AUDIO_SBC_H
+
+#include <linux/msm_audio.h>
+
+#define AUDIO_SET_SBC_ENC_CONFIG _IOW(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+0), struct msm_audio_sbc_enc_config)
+
+#define AUDIO_GET_SBC_ENC_CONFIG _IOR(AUDIO_IOCTL_MAGIC, (AUDIO_MAX_COMMON_IOCTL_NUM+1), struct msm_audio_sbc_enc_config)
+
+#define AUDIO_SBC_BA_LOUDNESS 0x0
+#define AUDIO_SBC_BA_SNR 0x1
+
+#define AUDIO_SBC_MODE_MONO 0x0
+#define AUDIO_SBC_MODE_DUAL 0x1
+#define AUDIO_SBC_MODE_STEREO 0x2
+#define AUDIO_SBC_MODE_JSTEREO 0x3
+
+#define AUDIO_SBC_BANDS_8 0x1
+
+#define AUDIO_SBC_BLOCKS_4 0x0
+#define AUDIO_SBC_BLOCKS_8 0x1
+#define AUDIO_SBC_BLOCKS_12 0x2
+#define AUDIO_SBC_BLOCKS_16 0x3
+
+struct msm_audio_sbc_enc_config {
+ uint32_t channels;
+ uint32_t sample_rate;
+ uint32_t bit_allocation;
+ uint32_t number_of_subbands;
+ uint32_t number_of_blocks;
+ uint32_t bit_rate;
+ uint32_t mode;
+};
+#endif