blob: fcdaf205ba3039e473f7036b7bdcf55a47881442 [file] [log] [blame]
Iliyan Malcheva169e312010-08-23 21:01:55 -07001/****************************************************************************
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 ***
Ben Cheng94a85f62012-03-06 15:45:52 -080010 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
Iliyan Malcheva169e312010-08-23 21:01:55 -070017 ****************************************************************************
18 ****************************************************************************/
19#ifndef _TEGRA_AUDIO_H
20#define _TEGRA_AUDIO_H
Iliyan Malcheva169e312010-08-23 21:01:55 -070021#include <linux/ioctl.h>
Iliyan Malcheva169e312010-08-23 21:01:55 -070022#define TEGRA_AUDIO_MAGIC 't'
Ben Cheng94a85f62012-03-06 15:45:52 -080023/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070024#define TEGRA_AUDIO_IN_START _IO(TEGRA_AUDIO_MAGIC, 0)
25#define TEGRA_AUDIO_IN_STOP _IO(TEGRA_AUDIO_MAGIC, 1)
Iliyan Malcheva169e312010-08-23 21:01:55 -070026struct tegra_audio_in_config {
27 int rate;
Ben Cheng94a85f62012-03-06 15:45:52 -080028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malcheva169e312010-08-23 21:01:55 -070029 int stereo;
30};
Iliyan Malcheva169e312010-08-23 21:01:55 -070031#define TEGRA_AUDIO_IN_SET_CONFIG _IOW(TEGRA_AUDIO_MAGIC, 2, const struct tegra_audio_in_config *)
32#define TEGRA_AUDIO_IN_GET_CONFIG _IOR(TEGRA_AUDIO_MAGIC, 3, struct tegra_audio_in_config *)
Ben Cheng94a85f62012-03-06 15:45:52 -080033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchevc1974ee2010-11-22 16:52:22 -080034#define TEGRA_AUDIO_IN_SET_NUM_BUFS _IOW(TEGRA_AUDIO_MAGIC, 4, const unsigned int *)
35#define TEGRA_AUDIO_IN_GET_NUM_BUFS _IOW(TEGRA_AUDIO_MAGIC, 5, unsigned int *)
36#define TEGRA_AUDIO_OUT_SET_NUM_BUFS _IOW(TEGRA_AUDIO_MAGIC, 6, const unsigned int *)
37#define TEGRA_AUDIO_OUT_GET_NUM_BUFS _IOW(TEGRA_AUDIO_MAGIC, 7, unsigned int *)
Ben Cheng94a85f62012-03-06 15:45:52 -080038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev9883f392010-10-19 15:23:42 -070039#define TEGRA_AUDIO_OUT_FLUSH _IO(TEGRA_AUDIO_MAGIC, 10)
Iliyan Malchev9883f392010-10-19 15:23:42 -070040#define TEGRA_AUDIO_BIT_FORMAT_DEFAULT 0
41#define TEGRA_AUDIO_BIT_FORMAT_DSP 1
Iliyan Malchevc1974ee2010-11-22 16:52:22 -080042#define TEGRA_AUDIO_SET_BIT_FORMAT _IOW(TEGRA_AUDIO_MAGIC, 11, const unsigned int *)
Ben Cheng94a85f62012-03-06 15:45:52 -080043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Iliyan Malchev9883f392010-10-19 15:23:42 -070044#define TEGRA_AUDIO_GET_BIT_FORMAT _IOR(TEGRA_AUDIO_MAGIC, 12, unsigned int *)
Iliyan Malcheva169e312010-08-23 21:01:55 -070045#endif