OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-armnommu/] [arcaudio.h] - Blame information for rev 1633

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
/*
2
 * arcaudio.h
3
 *
4
 */
5
 
6
#ifndef _LINUX_ARCAUDIO_H
7
#define _LINUX_ARCAUDIO_H
8
 
9
#define ARCAUDIO_MAXCHANNELS    8
10
 
11
enum ch_type
12
{
13
  ARCAUDIO_NONE,                        /* No sound (muted) */
14
  ARCAUDIO_8BITSIGNED,                  /* signed 8 bits per samples */
15
  ARCAUDIO_8BITUNSIGNED,                /* unsigned 8 bits per samples */
16
  ARCAUDIO_16BITSIGNED,                 /* signed 16 bits per samples (little endian) */
17
  ARCAUDIO_16BITUNSIGNED,               /* unsigned 16 bits per samples (little endian) */
18
  ARCAUDIO_LOG                          /* Vidc Log */
19
};
20
 
21
/*
22
 * Global information
23
 */
24
struct arcaudio
25
{
26
  int           sample_rate;            /* sample rate (Hz) */
27
  int           num_channels;           /* number of channels */
28
  int           volume;                 /* overall system volume */
29
};
30
 
31
/*
32
 * Per channel information
33
 */
34
struct arcaudio_channel
35
{
36
  int           stereo_position;        /* Channel position */
37
  int           channel_volume;         /* Channel volume */
38
  enum ch_type  channel_type;           /* Type of channel */
39
  int           buffer_size;            /* Size of channel buffer */
40
};
41
 
42
/* IOCTLS */
43
#define ARCAUDIO_GETINFO        0x6101
44
#define ARCAUDIO_SETINFO        0x6102
45
#define ARCAUDIO_GETCHANNELINFO 0x6111
46
#define ARCAUDIO_SETCHANNELINFO 0x6112
47
#define ARCAUDIO_GETOPTS        0x61f0
48
#define ARCAUDIO_SETOPTS        0x61f1
49
#define  ARCAUDIO_OPTSPKR       1<<0
50
 
51
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.