blob: 58dc6f3f9f670413ec677409ac200a8001f42dfe [file] [log] [blame]
The Android Open Source Project6d6c82c2009-01-09 17:50:54 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 ****************************************************************************
11 ****************************************************************************/
12#ifndef __LINUX_MSM_AUDIO_H
13#define __LINUX_MSM_AUDIO_H
14
15#include <linux/types.h>
16#include <linux/ioctl.h>
17#include <asm/sizes.h>
18
19#define AUDIO_IOCTL_MAGIC 'a'
20
21#define AUDIO_START _IOW(AUDIO_IOCTL_MAGIC, 0, unsigned)
22#define AUDIO_STOP _IOW(AUDIO_IOCTL_MAGIC, 1, unsigned)
23#define AUDIO_FLUSH _IOW(AUDIO_IOCTL_MAGIC, 2, unsigned)
24#define AUDIO_GET_CONFIG _IOR(AUDIO_IOCTL_MAGIC, 3, unsigned)
25#define AUDIO_SET_CONFIG _IOW(AUDIO_IOCTL_MAGIC, 4, unsigned)
26#define AUDIO_GET_STATS _IOR(AUDIO_IOCTL_MAGIC, 5, unsigned)
27#define AUDIO_ENABLE_AUDPP _IOW(AUDIO_IOCTL_MAGIC, 6, unsigned)
28#define AUDIO_SET_ADRC _IOW(AUDIO_IOCTL_MAGIC, 7, unsigned)
29#define AUDIO_SET_EQ _IOW(AUDIO_IOCTL_MAGIC, 8, unsigned)
30#define AUDIO_SET_RX_IIR _IOW(AUDIO_IOCTL_MAGIC, 9, unsigned)
31#define AUDIO_SET_VOLUME _IOW(AUDIO_IOCTL_MAGIC, 10, unsigned)
32
33struct msm_audio_config {
34 uint32_t buffer_size;
35 uint32_t buffer_count;
36 uint32_t channel_count;
37 uint32_t sample_rate;
38 uint32_t type;
39 uint32_t unused[3];
40};
41
42struct msm_audio_stats {
43 uint32_t byte_count;
44 uint32_t sample_count;
45 uint32_t unused[2];
46};
47
48#define SND_IOCTL_MAGIC 's'
49
50#define SND_MUTE_UNMUTED 0
51#define SND_MUTE_MUTED 1
52
53struct msm_snd_device_config {
54 uint32_t device;
55 uint32_t ear_mute;
56 uint32_t mic_mute;
57};
58
59#define SND_SET_DEVICE _IOW(SND_IOCTL_MAGIC, 2, struct msm_device_config *)
60
61#define SND_METHOD_VOICE 0
62
63struct msm_snd_volume_config {
64 uint32_t device;
65 uint32_t method;
66 uint32_t volume;
67};
68
69#define SND_SET_VOLUME _IOW(SND_IOCTL_MAGIC, 3, struct msm_snd_volume_config *)
70
71#define SND_GET_NUM_ENDPOINTS _IOR(SND_IOCTL_MAGIC, 4, unsigned *)
72
73struct msm_snd_endpoint {
74 int id;
75 char name[64];
76};
77
78#define SND_GET_ENDPOINT _IOWR(SND_IOCTL_MAGIC, 5, struct msm_snd_endpoint *)
79
80#endif
81