ALSA project - the C library reference
|
Go to the documentation of this file.
28 #ifndef __ALSA_HWDEP_H
29 #define __ALSA_HWDEP_H
42 #define SND_HWDEP_DLSYM_VERSION _dlsym_hwdep_001
77 SND_HWDEP_IFACE_FW_DIGI00X,
78 SND_HWDEP_IFACE_FW_TASCAM,
79 SND_HWDEP_IFACE_LINE6,
80 SND_HWDEP_IFACE_FW_MOTU,
81 SND_HWDEP_IFACE_FW_FIREFACE,
87 #define SND_HWDEP_OPEN_READ (O_RDONLY)
89 #define SND_HWDEP_OPEN_WRITE (O_WRONLY)
91 #define SND_HWDEP_OPEN_DUPLEX (O_RDWR)
93 #define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)
123 #define snd_hwdep_info_alloca(ptr) __snd_alloca(ptr, snd_hwdep_info)
137 #define snd_hwdep_dsp_status_alloca(ptr) __snd_alloca(ptr, snd_hwdep_dsp_status)
150 #define snd_hwdep_dsp_image_alloca(ptr) __snd_alloca(ptr, snd_hwdep_dsp_image)
struct _snd_hwdep_dsp_image snd_hwdep_dsp_image_t
Definition: hwdep.h:51
struct _snd_hwdep_dsp_status snd_hwdep_dsp_status_t
Definition: hwdep.h:48
@ SND_HWDEP_IFACE_FW_OXFW
Definition: hwdep.h:76
void snd_hwdep_dsp_image_set_length(snd_hwdep_dsp_image_t *obj, size_t length)
set the DSP block length
Definition: hwdep.c:749
@ SND_HWDEP_IFACE_USX2Y_PCM
Definition: hwdep.h:68
@ SND_HWDEP_IFACE_USB_STREAM
Definition: hwdep.h:72
@ SND_HWDEP_TYPE_INET
Definition: hwdep.h:102
ssize_t snd_hwdep_read(snd_hwdep_t *hwdep, void *buffer, size_t size)
read bytes using HwDep handle
Definition: hwdep.c:488
@ SND_HWDEP_IFACE_OPL4
Definition: hwdep.h:57
int snd_hwdep_dsp_image_malloc(snd_hwdep_dsp_image_t **ptr)
allocate a new snd_hwdep_dsp_image_t structure
Definition: hwdep.c:644
int snd_hwdep_dsp_load(snd_hwdep_t *hwdep, snd_hwdep_dsp_image_t *block)
load the DSP block
Definition: hwdep.c:515
@ SND_HWDEP_IFACE_SSCAPE
Definition: hwdep.h:62
size_t snd_hwdep_dsp_image_sizeof(void)
get size of the snd_hwdep_dsp_image_t structure in bytes
Definition: hwdep.c:631
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
Definition: hwdep.c:566
@ SND_HWDEP_IFACE_FW_FIREWORKS
Definition: hwdep.h:74
@ SND_HWDEP_IFACE_BLUETOOTH
Definition: hwdep.h:67
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
Definition: hwdep.c:671
int snd_hwdep_poll_descriptors_count(snd_hwdep_t *hwdep)
get count of poll descriptors for HwDep handle
Definition: hwdep.c:253
const char * snd_hwdep_dsp_status_get_id(const snd_hwdep_dsp_status_t *obj)
get the driver id of dsp loader
Definition: hwdep.c:588
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
Definition: hwdep.c:297
@ SND_HWDEP_IFACE_VX
Definition: hwdep.h:63
unsigned int snd_hwdep_dsp_status_get_num_dsps(const snd_hwdep_dsp_status_t *obj)
get number of dsp blocks
Definition: hwdep.c:599
@ SND_HWDEP_IFACE_USX2Y
Definition: hwdep.h:65
@ SND_HWDEP_IFACE_HDA
Definition: hwdep.h:71
void snd_hwdep_dsp_image_free(snd_hwdep_dsp_image_t *obj)
frees the snd_hwdep_dsp_image_t structure
Definition: hwdep.c:660
unsigned int snd_hwdep_dsp_status_get_version(const snd_hwdep_dsp_status_t *obj)
get the driver version of dsp loader
Definition: hwdep.c:577
unsigned int snd_hwdep_dsp_image_get_index(const snd_hwdep_dsp_image_t *obj)
get the DSP block index
Definition: hwdep.c:682
@ SND_HWDEP_IFACE_OPL3
Definition: hwdep.h:56
@ SND_HWDEP_IFACE_YSS225
Definition: hwdep.h:60
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
Definition: hwdep.c:370
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
Definition: hwdep.c:610
@ SND_HWDEP_IFACE_EMU10K1
Definition: hwdep.h:59
int snd_hwdep_nonblock(snd_hwdep_t *hwdep, int nonblock)
set nonblock mode
Definition: hwdep.c:313
int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t *info)
get information about HwDep handle
Definition: hwdep.c:448
_snd_hwdep_iface
Definition: hwdep.h:54
int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space)
get poll descriptors
Definition: hwdep.c:266
int snd_hwdep_ioctl(snd_hwdep_t *hwdep, unsigned int request, void *arg)
do hardware dependent ioctl
Definition: hwdep.c:462
size_t snd_hwdep_info_sizeof(void)
get size of the snd_hwdep_info_t structure in bytes
Definition: hwdep.c:330
void snd_hwdep_dsp_image_set_index(snd_hwdep_dsp_image_t *obj, unsigned int _index)
set the DSP block index
Definition: hwdep.c:726
struct _snd_hwdep snd_hwdep_t
Definition: hwdep.h:106
void snd_hwdep_info_free(snd_hwdep_info_t *obj)
frees the snd_hwdep_info_t structure
Definition: hwdep.c:359
unsigned int snd_hwdep_info_get_device(const snd_hwdep_info_t *obj)
get hwdep device number
Definition: hwdep.c:392
void snd_hwdep_dsp_status_free(snd_hwdep_dsp_status_t *obj)
frees the snd_hwdep_dsp_status_t structure
Definition: hwdep.c:555
@ SND_HWDEP_IFACE_PCXHR
Definition: hwdep.h:69
int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode)
Opens a new connection to the HwDep interface.
Definition: hwdep.c:169
void snd_hwdep_dsp_image_set_image(snd_hwdep_dsp_image_t *obj, void *buffer)
set the DSP block image pointer
Definition: hwdep.c:760
const char * snd_hwdep_info_get_id(const snd_hwdep_info_t *obj)
get hwdep driver identifier
Definition: hwdep.c:403
const char * snd_hwdep_info_get_name(const snd_hwdep_info_t *obj)
get hwdep driver name
Definition: hwdep.c:414
void * ptr
Definition: seq_event.h:199
ssize_t snd_hwdep_write(snd_hwdep_t *hwdep, const void *buffer, size_t size)
write bytes using HwDep handle
Definition: hwdep.c:474
snd_hwdep_iface_t snd_hwdep_info_get_iface(const snd_hwdep_info_t *obj)
get hwdep protocol interface
Definition: hwdep.c:425
unsigned int snd_hwdep_dsp_status_get_chip_ready(const snd_hwdep_dsp_status_t *obj)
get the chip status of dsp loader
Definition: hwdep.c:621
_snd_hwdep_type
Definition: hwdep.h:96
int snd_hwdep_info_get_card(const snd_hwdep_info_t *obj)
get hwdep card number
Definition: hwdep.c:381
@ SND_HWDEP_TYPE_HW
Definition: hwdep.h:98
@ SND_HWDEP_IFACE_ICS2115
Definition: hwdep.h:61
void snd_hwdep_info_set_device(snd_hwdep_info_t *obj, unsigned int val)
set hwdep device number
Definition: hwdep.c:436
int snd_hwdep_dsp_status(snd_hwdep_t *hwdep, snd_hwdep_dsp_status_t *status)
get the DSP status information
Definition: hwdep.c:502
@ SND_HWDEP_IFACE_FW_BEBOB
Definition: hwdep.h:75
size_t snd_hwdep_dsp_image_get_length(const snd_hwdep_dsp_image_t *obj)
get the length of the DSP block
Definition: hwdep.c:704
int snd_hwdep_info_malloc(snd_hwdep_info_t **ptr)
allocate a new snd_hwdep_info_t structure
Definition: hwdep.c:343
int snd_hwdep_dsp_status_malloc(snd_hwdep_dsp_status_t **ptr)
allocate a new snd_hwdep_dsp_status_t structure
Definition: hwdep.c:539
int snd_hwdep_close(snd_hwdep_t *hwdep)
close HwDep handle
Definition: hwdep.c:209
struct _snd_hwdep_info snd_hwdep_info_t
Definition: hwdep.h:45
size_t snd_hwdep_dsp_status_sizeof(void)
get size of the snd_hwdep_dsp_status_t structure in bytes
Definition: hwdep.c:526
void snd_hwdep_dsp_image_set_name(snd_hwdep_dsp_image_t *obj, const char *name)
set the name of the DSP block
Definition: hwdep.c:737
@ SND_HWDEP_IFACE_MIXART
Definition: hwdep.h:64
@ SND_HWDEP_IFACE_SB16CSP
Definition: hwdep.h:58
@ SND_HWDEP_TYPE_SHM
Definition: hwdep.h:100
const void * snd_hwdep_dsp_image_get_image(const snd_hwdep_dsp_image_t *obj)
get the image pointer of the DSP block
Definition: hwdep.c:715
@ SND_HWDEP_IFACE_SB_RC
Definition: hwdep.h:70
const char * snd_hwdep_dsp_image_get_name(const snd_hwdep_dsp_image_t *obj)
get the name of the DSP block
Definition: hwdep.c:693
@ SND_HWDEP_IFACE_LAST
Definition: hwdep.h:83
@ SND_HWDEP_IFACE_EMUX_WAVETABLE
Definition: hwdep.h:66
@ SND_HWDEP_IFACE_OPL2
Definition: hwdep.h:55
@ SND_HWDEP_IFACE_FW_DICE
Definition: hwdep.h:73