2000-01-10 10:07:53 +00:00
|
|
|
/****************************************************************************
|
|
|
|
|
* *
|
|
|
|
|
* hwdep.h *
|
|
|
|
|
* Hardware depedent interface *
|
|
|
|
|
* *
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
2001-02-05 15:44:42 +00:00
|
|
|
typedef struct _snd_hwdep_info snd_hwdep_info_t;
|
|
|
|
|
|
|
|
|
|
#ifdef SND_ENUM_TYPECHECK
|
|
|
|
|
typedef struct __snd_hwdep_type *snd_hwdep_type_t;
|
|
|
|
|
#else
|
2001-01-30 16:51:26 +00:00
|
|
|
typedef enum sndrv_hwdep_type snd_hwdep_type_t;
|
2001-02-05 15:44:42 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define SND_HWDEP_TYPE_OPL2 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL2)
|
|
|
|
|
#define SND_HWDEP_TYPE_OPL3 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL3)
|
|
|
|
|
#define SND_HWDEP_TYPE_OPL4 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_OPL4)
|
|
|
|
|
#define SND_HWDEP_TYPE_SB16CSP ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_SB16CSP)
|
|
|
|
|
#define SND_HWDEP_TYPE_EMU10K1 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_EMU10K1)
|
|
|
|
|
#define SND_HWDEP_TYPE_YSS225 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_YSS225)
|
|
|
|
|
#define SND_HWDEP_TYPE_ICS2115 ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_ICS2115)
|
|
|
|
|
#define SND_HWDEP_TYPE_LAST ((snd_hwdep_type_t) SNDRV_HWDEP_TYPE_LAST)
|
2001-01-30 16:51:26 +00:00
|
|
|
|
2000-01-10 10:07:53 +00:00
|
|
|
#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)
|
|
|
|
|
|
2001-02-01 07:52:30 +00:00
|
|
|
typedef struct _snd_hwdep snd_hwdep_t;
|
|
|
|
|
|
2000-01-10 10:07:53 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
2001-02-12 23:51:49 +00:00
|
|
|
int snd_hwdep_open(snd_hwdep_t **hwdep, int card, int device, int mode);
|
|
|
|
|
int snd_hwdep_close(snd_hwdep_t *hwdep);
|
|
|
|
|
int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space);
|
|
|
|
|
int snd_hwdep_block_mode(snd_hwdep_t *hwdep, int enable);
|
|
|
|
|
int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t * info);
|
|
|
|
|
int snd_hwdep_ioctl(snd_hwdep_t *hwdep, int request, void * arg);
|
|
|
|
|
ssize_t snd_hwdep_write(snd_hwdep_t *hwdep, const void *buffer, size_t size);
|
|
|
|
|
ssize_t snd_hwdep_read(snd_hwdep_t *hwdep, void *buffer, size_t size);
|
2000-01-10 10:07:53 +00:00
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|