mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-06 04:06:34 -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
|
|
@ -248,7 +248,7 @@ int snd_timer_open_lconf(snd_timer_t **timer, const char *name,
|
|||
int snd_timer_close(snd_timer_t *timer)
|
||||
{
|
||||
int err;
|
||||
assert(timer);
|
||||
assert(timer);
|
||||
while (!list_empty(&timer->async_handlers)) {
|
||||
snd_async_handler_t *h = list_entry(timer->async_handlers.next, snd_async_handler_t, hlist);
|
||||
snd_async_del_handler(h);
|
||||
|
|
@ -335,7 +335,7 @@ snd_timer_t *snd_async_handler_get_timer(snd_async_handler_t *handler)
|
|||
return NULL;
|
||||
}
|
||||
return handler->u.timer;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief get count of poll descriptors for timer handle
|
||||
|
|
@ -388,12 +388,12 @@ int snd_timer_poll_descriptors(snd_timer_t *timer, struct pollfd *pfds, unsigned
|
|||
*/
|
||||
int snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
|
||||
{
|
||||
assert(timer && pfds && revents);
|
||||
if (nfds == 1) {
|
||||
*revents = pfds->revents;
|
||||
return 0;
|
||||
}
|
||||
return -EINVAL;
|
||||
assert(timer && pfds && revents);
|
||||
if (nfds == 1) {
|
||||
*revents = pfds->revents;
|
||||
return 0;
|
||||
}
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -428,8 +428,8 @@ int snd_timer_nonblock(snd_timer_t *timer, int nonblock)
|
|||
int snd_timer_async(snd_timer_t *timer, int sig, pid_t pid)
|
||||
{
|
||||
assert(timer);
|
||||
if (sig == 0)
|
||||
sig = SIGIO;
|
||||
if (sig == 0)
|
||||
sig = SIGIO;
|
||||
if (pid == 0)
|
||||
pid = getpid();
|
||||
return timer->ops->async(timer, sig, pid);
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int snd_timer_hw_open(snd_timer_t **handle, const char *name, int dev_class, int
|
|||
|
||||
tmode = O_RDONLY;
|
||||
if (mode & SND_TIMER_OPEN_NONBLOCK)
|
||||
tmode |= O_NONBLOCK;
|
||||
tmode |= O_NONBLOCK;
|
||||
fd = snd_open_device(SNDRV_FILE_TIMER, tmode);
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ int snd_timer_query_open_lconf(snd_timer_query_t **timer, const char *name,
|
|||
int snd_timer_query_close(snd_timer_query_t *timer)
|
||||
{
|
||||
int err;
|
||||
assert(timer);
|
||||
assert(timer);
|
||||
err = timer->ops->close(timer);
|
||||
if (timer->dl_handle)
|
||||
snd_dlclose(timer->dl_handle);
|
||||
|
|
@ -220,8 +220,8 @@ int snd_timer_query_close(snd_timer_query_t *timer)
|
|||
*/
|
||||
int snd_timer_query_next_device(snd_timer_query_t *timer, snd_timer_id_t *tid)
|
||||
{
|
||||
assert(timer);
|
||||
assert(tid);
|
||||
assert(timer);
|
||||
assert(tid);
|
||||
return timer->ops->next_device(timer, tid);
|
||||
}
|
||||
|
||||
|
|
@ -261,9 +261,9 @@ int snd_timer_ginfo_malloc(snd_timer_ginfo_t **info)
|
|||
void snd_timer_ginfo_free(snd_timer_ginfo_t *info)
|
||||
{
|
||||
assert(info);
|
||||
free(info);
|
||||
free(info);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* \brief copy one snd_timer_info_t structure to another
|
||||
* \param dst destination snd_timer_info_t structure
|
||||
|
|
@ -389,8 +389,8 @@ EXPORT_SYMBOL int INTERNAL(snd_timer_query_info)(snd_timer_query_t *timer, snd_t
|
|||
int snd_timer_query_info(snd_timer_query_t *timer, snd_timer_ginfo_t *info)
|
||||
#endif
|
||||
{
|
||||
assert(timer);
|
||||
assert(info);
|
||||
assert(timer);
|
||||
assert(info);
|
||||
return timer->ops->info(timer, info);
|
||||
}
|
||||
use_default_symbol_version(__snd_timer_query_info, snd_timer_query_info, ALSA_0.9.0);
|
||||
|
|
@ -407,8 +407,8 @@ EXPORT_SYMBOL int INTERNAL(snd_timer_query_params)(snd_timer_query_t *timer, snd
|
|||
int snd_timer_query_params(snd_timer_query_t *timer, snd_timer_gparams_t *params)
|
||||
#endif
|
||||
{
|
||||
assert(timer);
|
||||
assert(params);
|
||||
assert(timer);
|
||||
assert(params);
|
||||
return timer->ops->params(timer, params);
|
||||
}
|
||||
use_default_symbol_version(__snd_timer_query_params, snd_timer_query_params, ALSA_0.9.0);
|
||||
|
|
@ -425,8 +425,8 @@ EXPORT_SYMBOL int INTERNAL(snd_timer_query_status)(snd_timer_query_t *timer, snd
|
|||
int snd_timer_query_status(snd_timer_query_t *timer, snd_timer_gstatus_t *status)
|
||||
#endif
|
||||
{
|
||||
assert(timer);
|
||||
assert(status);
|
||||
assert(timer);
|
||||
assert(status);
|
||||
return timer->ops->status(timer, status);
|
||||
}
|
||||
use_default_symbol_version(__snd_timer_query_status, snd_timer_query_status, ALSA_0.9.0);
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ int snd_timer_query_hw_open(snd_timer_query_t **handle, const char *name, int mo
|
|||
|
||||
tmode = O_RDONLY;
|
||||
if (mode & SND_TIMER_OPEN_NONBLOCK)
|
||||
tmode |= O_NONBLOCK;
|
||||
tmode |= O_NONBLOCK;
|
||||
fd = snd_open_device(SNDRV_FILE_TIMER, tmode);
|
||||
if (fd < 0)
|
||||
return -errno;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ extern const char *_snd_module_timer_hw;
|
|||
static const char **snd_timer_open_objects[] = {
|
||||
&_snd_module_timer_hw
|
||||
};
|
||||
|
||||
|
||||
void *snd_timer_open_symbols(void)
|
||||
{
|
||||
return (void *)snd_timer_open_objects[0];
|
||||
|
|
@ -37,7 +37,7 @@ extern const char *_snd_module_timer_query_hw;
|
|||
static const char **snd_timer_query_open_objects[] = {
|
||||
&_snd_module_timer_query_hw
|
||||
};
|
||||
|
||||
|
||||
void *snd_timer_query_open_symbols(void)
|
||||
{
|
||||
return snd_timer_query_open_objects;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue