patch-2.1.80 linux/include/asm-arm/arcaudio.h
Next file: linux/include/asm-arm/arch-a5k/a.out.h
Previous file: linux/include/asm-arm/a.out.h
Back to the patch index
Back to the overall index
- Lines: 52
- Date:
Tue Jan 20 16:39:42 1998
- Orig file:
v2.1.79/linux/include/asm-arm/arcaudio.h
- Orig date:
Wed Dec 31 16:00:00 1969
diff -u --recursive --new-file v2.1.79/linux/include/asm-arm/arcaudio.h linux/include/asm-arm/arcaudio.h
@@ -0,0 +1,51 @@
+/*
+ * arcaudio.h
+ *
+ */
+
+#ifndef _LINUX_ARCAUDIO_H
+#define _LINUX_ARCAUDIO_H
+
+#define ARCAUDIO_MAXCHANNELS 8
+
+enum ch_type
+{
+ ARCAUDIO_NONE, /* No sound (muted) */
+ ARCAUDIO_8BITSIGNED, /* signed 8 bits per samples */
+ ARCAUDIO_8BITUNSIGNED, /* unsigned 8 bits per samples */
+ ARCAUDIO_16BITSIGNED, /* signed 16 bits per samples (little endian) */
+ ARCAUDIO_16BITUNSIGNED, /* unsigned 16 bits per samples (little endian) */
+ ARCAUDIO_LOG /* Vidc Log */
+};
+
+/*
+ * Global information
+ */
+struct arcaudio
+{
+ int sample_rate; /* sample rate (Hz) */
+ int num_channels; /* number of channels */
+ int volume; /* overall system volume */
+};
+
+/*
+ * Per channel information
+ */
+struct arcaudio_channel
+{
+ int stereo_position; /* Channel position */
+ int channel_volume; /* Channel volume */
+ enum ch_type channel_type; /* Type of channel */
+ int buffer_size; /* Size of channel buffer */
+};
+
+/* IOCTLS */
+#define ARCAUDIO_GETINFO 0x6101
+#define ARCAUDIO_SETINFO 0x6102
+#define ARCAUDIO_GETCHANNELINFO 0x6111
+#define ARCAUDIO_SETCHANNELINFO 0x6112
+#define ARCAUDIO_GETOPTS 0x61f0
+#define ARCAUDIO_SETOPTS 0x61f1
+#define ARCAUDIO_OPTSPKR 1<<0
+
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov