diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /include/asm-arm/arcaudio.h | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'include/asm-arm/arcaudio.h')
-rw-r--r-- | include/asm-arm/arcaudio.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/include/asm-arm/arcaudio.h b/include/asm-arm/arcaudio.h new file mode 100644 index 000000000..43a31bc79 --- /dev/null +++ b/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 |