mirror of https://github.com/ericonr/sndio.git
alsa has no volume knob
This commit is contained in:
parent
16a36fa53e
commit
6c0895ba37
|
@ -84,8 +84,8 @@ static struct sio_ops sio_alsa_ops = {
|
|||
sio_alsa_nfds,
|
||||
sio_alsa_pollfd,
|
||||
sio_alsa_revents,
|
||||
sio_alsa_setvol,
|
||||
sio_alsa_getvol
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
/*
|
||||
|
@ -273,20 +273,6 @@ sio_alsa_getcap(struct sio_hdl *sh, struct sio_cap *cap)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void
|
||||
sio_alsa_getvol(struct sio_hdl *sh)
|
||||
{
|
||||
struct sio_alsa_hdl *hdl = (struct sio_alsa_hdl *)sh;
|
||||
|
||||
sio_onvol_cb(&hdl->sio, SIO_MAXVOL);
|
||||
}
|
||||
|
||||
int
|
||||
sio_alsa_setvol(struct sio_hdl *sh, unsigned vol)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct sio_hdl *
|
||||
sio_alsa_open(const char *str, unsigned mode, int nbio)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue