mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
Merge branch 'mixer' of ssh://moule/~alex/git/sndio into mixer
This commit is contained in:
commit
ff2f89680e
@ -270,7 +270,7 @@ scanvol(struct siomix_sun_hdl *hdl, struct wskbd_vol *vol)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
int
|
||||||
siomix_sun_getfd(const char *str, unsigned int mode, int nbio)
|
siomix_sun_getfd(const char *str, unsigned int mode, int nbio)
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
@ -278,6 +278,9 @@ siomix_sun_getfd(const char *str, unsigned int mode, int nbio)
|
|||||||
unsigned int devnum;
|
unsigned int devnum;
|
||||||
int fd, flags;
|
int fd, flags;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
_sndio_debug_init();
|
||||||
|
#endif
|
||||||
p = _sndio_parsetype(str, "rsnd");
|
p = _sndio_parsetype(str, "rsnd");
|
||||||
if (p == NULL) {
|
if (p == NULL) {
|
||||||
DPRINTF("siomix_sun_getfd: %s: \"rsnd\" expected\n", str);
|
DPRINTF("siomix_sun_getfd: %s: \"rsnd\" expected\n", str);
|
||||||
@ -310,11 +313,14 @@ siomix_sun_getfd(const char *str, unsigned int mode, int nbio)
|
|||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct siomix_hdl *
|
struct siomix_hdl *
|
||||||
siomix_sun_fdopen(int fd, unsigned int mode, int nbio)
|
siomix_sun_fdopen(int fd, unsigned int mode, int nbio)
|
||||||
{
|
{
|
||||||
struct siomix_sun_hdl *hdl;
|
struct siomix_sun_hdl *hdl;
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
_sndio_debug_init();
|
||||||
|
#endif
|
||||||
hdl = malloc(sizeof(struct siomix_sun_hdl));
|
hdl = malloc(sizeof(struct siomix_sun_hdl));
|
||||||
if (hdl == NULL)
|
if (hdl == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -195,6 +195,8 @@ int mio_rmidi_getfd(const char *, unsigned int, int);
|
|||||||
struct mio_hdl *mio_rmidi_fdopen(int, unsigned int, int);
|
struct mio_hdl *mio_rmidi_fdopen(int, unsigned int, int);
|
||||||
int sio_sun_getfd(const char *, unsigned int, int);
|
int sio_sun_getfd(const char *, unsigned int, int);
|
||||||
struct sio_hdl *sio_sun_fdopen(int, unsigned int, int);
|
struct sio_hdl *sio_sun_fdopen(int, unsigned int, int);
|
||||||
|
int siomix_sun_getfd(const char *, unsigned int, int);
|
||||||
|
struct siomix_hdl *siomix_sun_fdopen(int, unsigned int, int);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user