Linux Packages Manuals » alsa-lib-devel-1.1.1
ALSA project - the C library reference
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Enumerations | Functions
hwdep.h File Reference

Application interface library for the ALSA driver. More...

Go to the source code of this file.

Macros

#define SND_HWDEP_DLSYM_VERSION   _dlsym_hwdep_001
 
#define SND_HWDEP_OPEN_READ   (O_RDONLY)
 
#define SND_HWDEP_OPEN_WRITE   (O_WRONLY)
 
#define SND_HWDEP_OPEN_DUPLEX   (O_RDWR)
 
#define SND_HWDEP_OPEN_NONBLOCK   (O_NONBLOCK)
 
#define snd_hwdep_info_alloca(ptr)   __snd_alloca(ptr, snd_hwdep_info)
 
#define snd_hwdep_dsp_status_alloca(ptr)   __snd_alloca(ptr, snd_hwdep_dsp_status)
 
#define snd_hwdep_dsp_image_alloca(ptr)   __snd_alloca(ptr, snd_hwdep_dsp_image)
 

Typedefs

typedef struct _snd_hwdep_info snd_hwdep_info_t
 
typedef struct
_snd_hwdep_dsp_status 
snd_hwdep_dsp_status_t
 
typedef struct _snd_hwdep_dsp_image snd_hwdep_dsp_image_t
 
typedef struct _snd_hwdep snd_hwdep_t
 

Enumerations

enum  snd_hwdep_iface_t {
  SND_HWDEP_IFACE_OPL2 = 0, SND_HWDEP_IFACE_OPL3, SND_HWDEP_IFACE_OPL4, SND_HWDEP_IFACE_SB16CSP,
  SND_HWDEP_IFACE_EMU10K1, SND_HWDEP_IFACE_YSS225, SND_HWDEP_IFACE_ICS2115, SND_HWDEP_IFACE_SSCAPE,
  SND_HWDEP_IFACE_VX, SND_HWDEP_IFACE_MIXART, SND_HWDEP_IFACE_USX2Y, SND_HWDEP_IFACE_EMUX_WAVETABLE,
  SND_HWDEP_IFACE_BLUETOOTH, SND_HWDEP_IFACE_USX2Y_PCM, SND_HWDEP_IFACE_PCXHR, SND_HWDEP_IFACE_SB_RC,
  SND_HWDEP_IFACE_HDA, SND_HWDEP_IFACE_USB_STREAM, SND_HWDEP_IFACE_FW_DICE, SND_HWDEP_IFACE_FW_FIREWORKS,
  SND_HWDEP_IFACE_FW_BEBOB, SND_HWDEP_IFACE_FW_OXFW, SND_HWDEP_IFACE_FW_DIGI00X, SND_HWDEP_IFACE_FW_TASCAM,
  SND_HWDEP_IFACE_LAST = SND_HWDEP_IFACE_FW_TASCAM
}
 
enum  snd_hwdep_type_t { SND_HWDEP_TYPE_HW, SND_HWDEP_TYPE_SHM, SND_HWDEP_TYPE_INET }
 

Functions

int snd_hwdep_open (snd_hwdep_t **hwdep, const char *name, int mode)
 Opens a new connection to the HwDep interface. More...
 
int snd_hwdep_close (snd_hwdep_t *hwdep)
 close HwDep handle More...
 
int snd_hwdep_poll_descriptors (snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space)
 get poll descriptors More...
 
int snd_hwdep_poll_descriptors_count (snd_hwdep_t *hwdep)
 get count of poll descriptors for HwDep handle More...
 
int snd_hwdep_poll_descriptors_revents (snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
 get returned events from poll descriptors More...
 
int snd_hwdep_nonblock (snd_hwdep_t *hwdep, int nonblock)
 set nonblock mode More...
 
int snd_hwdep_info (snd_hwdep_t *hwdep, snd_hwdep_info_t *info)
 get information about HwDep handle More...
 
int snd_hwdep_dsp_status (snd_hwdep_t *hwdep, snd_hwdep_dsp_status_t *status)
 get the DSP status information More...
 
int snd_hwdep_dsp_load (snd_hwdep_t *hwdep, snd_hwdep_dsp_image_t *block)
 load the DSP block More...
 
int snd_hwdep_ioctl (snd_hwdep_t *hwdep, unsigned int request, void *arg)
 do hardware dependent ioctl More...
 
ssize_t snd_hwdep_write (snd_hwdep_t *hwdep, const void *buffer, size_t size)
 write bytes using HwDep handle More...
 
ssize_t snd_hwdep_read (snd_hwdep_t *hwdep, void *buffer, size_t size)
 read bytes using HwDep handle More...
 
size_t snd_hwdep_info_sizeof (void)
 get size of the snd_hwdep_info_t structure in bytes More...
 
int snd_hwdep_info_malloc (snd_hwdep_info_t **ptr)
 allocate a new snd_hwdep_info_t structure More...
 
void snd_hwdep_info_free (snd_hwdep_info_t *obj)
 frees the snd_hwdep_info_t structure More...
 
void snd_hwdep_info_copy (snd_hwdep_info_t *dst, const snd_hwdep_info_t *src)
 copy one snd_hwdep_info_t structure to another More...
 
unsigned int snd_hwdep_info_get_device (const snd_hwdep_info_t *obj)
 get hwdep device number More...
 
int snd_hwdep_info_get_card (const snd_hwdep_info_t *obj)
 get hwdep card number More...
 
const char * snd_hwdep_info_get_id (const snd_hwdep_info_t *obj)
 get hwdep driver identifier More...
 
const char * snd_hwdep_info_get_name (const snd_hwdep_info_t *obj)
 get hwdep driver name More...
 
snd_hwdep_iface_t snd_hwdep_info_get_iface (const snd_hwdep_info_t *obj)
 get hwdep protocol interface More...
 
void snd_hwdep_info_set_device (snd_hwdep_info_t *obj, unsigned int val)
 set hwdep device number More...
 
size_t snd_hwdep_dsp_status_sizeof (void)
 get size of the snd_hwdep_dsp_status_t structure in bytes More...
 
int snd_hwdep_dsp_status_malloc (snd_hwdep_dsp_status_t **ptr)
 allocate a new snd_hwdep_dsp_status_t structure More...
 
void snd_hwdep_dsp_status_free (snd_hwdep_dsp_status_t *obj)
 frees the snd_hwdep_dsp_status_t structure More...
 
void snd_hwdep_dsp_status_copy (snd_hwdep_dsp_status_t *dst, const snd_hwdep_dsp_status_t *src)
 copy one snd_hwdep_dsp_status_t structure to another More...
 
unsigned int snd_hwdep_dsp_status_get_version (const snd_hwdep_dsp_status_t *obj)
 get the driver version of dsp loader More...
 
const char * snd_hwdep_dsp_status_get_id (const snd_hwdep_dsp_status_t *obj)
 get the driver id of dsp loader More...
 
unsigned int snd_hwdep_dsp_status_get_num_dsps (const snd_hwdep_dsp_status_t *obj)
 get number of dsp blocks More...
 
unsigned int snd_hwdep_dsp_status_get_dsp_loaded (const snd_hwdep_dsp_status_t *obj)
 get the bit flags of the loaded dsp blocks More...
 
unsigned int snd_hwdep_dsp_status_get_chip_ready (const snd_hwdep_dsp_status_t *obj)
 get the chip status of dsp loader More...
 
size_t snd_hwdep_dsp_image_sizeof (void)
 get size of the snd_hwdep_dsp_image_t structure in bytes More...
 
int snd_hwdep_dsp_image_malloc (snd_hwdep_dsp_image_t **ptr)
 allocate a new snd_hwdep_dsp_image_t structure More...
 
void snd_hwdep_dsp_image_free (snd_hwdep_dsp_image_t *obj)
 frees the snd_hwdep_dsp_image_t structure More...
 
void snd_hwdep_dsp_image_copy (snd_hwdep_dsp_image_t *dst, const snd_hwdep_dsp_image_t *src)
 copy one snd_hwdep_dsp_image_t structure to another More...
 
unsigned int snd_hwdep_dsp_image_get_index (const snd_hwdep_dsp_image_t *obj)
 get the DSP block index More...
 
const char * snd_hwdep_dsp_image_get_name (const snd_hwdep_dsp_image_t *obj)
 get the name of the DSP block More...
 
const void * snd_hwdep_dsp_image_get_image (const snd_hwdep_dsp_image_t *obj)
 get the image pointer of the DSP block More...
 
size_t snd_hwdep_dsp_image_get_length (const snd_hwdep_dsp_image_t *obj)
 get the length of the DSP block More...
 
void snd_hwdep_dsp_image_set_index (snd_hwdep_dsp_image_t *obj, unsigned int _index)
 set the DSP block index More...
 
void snd_hwdep_dsp_image_set_name (snd_hwdep_dsp_image_t *obj, const char *name)
 set the name of the DSP block More...
 
void snd_hwdep_dsp_image_set_image (snd_hwdep_dsp_image_t *obj, void *buffer)
 set the DSP block image pointer More...
 
void snd_hwdep_dsp_image_set_length (snd_hwdep_dsp_image_t *obj, size_t length)
 set the DSP block length More...
 

Detailed Description

Application interface library for the ALSA driver.

Author
Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz
Abramo Bagnara abram.nosp@m.o@al.nosp@m.sa-pr.nosp@m.ojec.nosp@m.t.org
Takashi Iwai tiwai.nosp@m.@sus.nosp@m.e.de
Date
1998-2001

Application interface library for the ALSA driver


Generated for ALSA project - the C library reference by doxygen 1.8.5