mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-12-19 08:57:08 -05:00
Transformed PAGE_SIZE in sysconf(_SC_PAGE_SIZE)
This commit is contained in:
parent
1dfd70d11e
commit
c663f4f4f7
4 changed files with 26 additions and 18 deletions
|
|
@ -25,7 +25,6 @@
|
|||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <dlfcn.h>
|
||||
#include <asm/page.h>
|
||||
#include "rawmidi_local.h"
|
||||
|
||||
const char *snd_rawmidi_name(snd_rawmidi_t *rawmidi)
|
||||
|
|
@ -160,7 +159,7 @@ int snd_rawmidi_params_default(snd_rawmidi_t *rmidi, snd_rawmidi_params_t *param
|
|||
{
|
||||
assert(rmidi);
|
||||
assert(params);
|
||||
params->buffer_size = PAGE_SIZE;
|
||||
params->buffer_size = page_size();
|
||||
params->avail_min = 1;
|
||||
params->no_active_sensing = 0;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue