mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-08 10:06:19 -05:00
huge correction of tabulators and whitespaces
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b37ac0982b
commit
66a3d542ac
157 changed files with 2008 additions and 2008 deletions
|
|
@ -86,7 +86,7 @@ is passed to \link ::snd_rawmidi_open() \endlink or \link ::snd_rawmidi_open_lco
|
|||
It contains two parts: device name and arguments. Devices and arguments are described
|
||||
in configuration files. The usual place for default definitions is at /usr/share/alsa/alsa.conf.
|
||||
|
||||
\subsection rawmidi_dev_names_default
|
||||
\subsection rawmidi_dev_names_default
|
||||
|
||||
The default device is equal to hw device. The defaults are used:
|
||||
|
||||
|
|
@ -143,7 +143,7 @@ This example shows open and read/write rawmidi operations.
|
|||
* \anchor example_test_rawmidi
|
||||
* Shows open and read/write rawmidi operations.
|
||||
*/
|
||||
|
||||
|
||||
#include "rawmidi_local.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -360,7 +360,7 @@ int snd_rawmidi_open_lconf(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
|
|||
int snd_rawmidi_close(snd_rawmidi_t *rawmidi)
|
||||
{
|
||||
int err;
|
||||
assert(rawmidi);
|
||||
assert(rawmidi);
|
||||
err = rawmidi->ops->close(rawmidi);
|
||||
free(rawmidi->name);
|
||||
if (rawmidi->open_func)
|
||||
|
|
@ -448,12 +448,12 @@ int snd_rawmidi_poll_descriptors(snd_rawmidi_t *rawmidi, struct pollfd *pfds, un
|
|||
*/
|
||||
int snd_rawmidi_poll_descriptors_revents(snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
|
||||
{
|
||||
assert(rawmidi && pfds && revents);
|
||||
if (nfds == 1) {
|
||||
*revents = pfds->revents;
|
||||
return 0;
|
||||
}
|
||||
return -EINVAL;
|
||||
assert(rawmidi && pfds && revents);
|
||||
if (nfds == 1) {
|
||||
*revents = pfds->revents;
|
||||
return 0;
|
||||
}
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
|
|||
*outputp = NULL;
|
||||
if (!inputp && !outputp)
|
||||
return -EINVAL;
|
||||
|
||||
|
||||
if ((ret = snd_ctl_hw_open(&ctl, NULL, card, 0)) < 0)
|
||||
return ret;
|
||||
if (is_ump)
|
||||
|
|
@ -344,11 +344,11 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
|
|||
sprintf(filename, SNDRV_FILE_RAWMIDI, card, device);
|
||||
|
||||
__again:
|
||||
if (attempt++ > 3) {
|
||||
snd_ctl_close(ctl);
|
||||
return -EBUSY;
|
||||
}
|
||||
ret = snd_ctl_rawmidi_prefer_subdevice(ctl, subdevice);
|
||||
if (attempt++ > 3) {
|
||||
snd_ctl_close(ctl);
|
||||
return -EBUSY;
|
||||
}
|
||||
ret = snd_ctl_rawmidi_prefer_subdevice(ctl, subdevice);
|
||||
if (ret < 0) {
|
||||
snd_ctl_close(ctl);
|
||||
return ret;
|
||||
|
|
@ -369,7 +369,7 @@ int snd_rawmidi_hw_open(snd_rawmidi_t **inputp, snd_rawmidi_t **outputp,
|
|||
if (mode & SND_RAWMIDI_NONBLOCK) {
|
||||
fmode |= O_NONBLOCK;
|
||||
}
|
||||
|
||||
|
||||
if (mode & SND_RAWMIDI_SYNC) {
|
||||
fmode |= O_SYNC;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ static const char **snd_rawmidi_open_objects[] = {
|
|||
&_snd_module_rawmidi_virt
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
void *snd_rawmidi_open_symbols(void)
|
||||
{
|
||||
return snd_rawmidi_open_objects;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ typedef struct {
|
|||
int pending;
|
||||
} snd_rawmidi_virtual_t;
|
||||
|
||||
int _snd_seq_open_lconf(snd_seq_t **seqp, const char *name,
|
||||
int _snd_seq_open_lconf(snd_seq_t **seqp, const char *name,
|
||||
int streams, int mode, snd_config_t *lconf,
|
||||
snd_config_t *parent_conf);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue